Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 221.4 MB / 236 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 83.91 kB / 287 MB, free: 192 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2376/0.2376, allocations: 44.15 MB / 382 MB, free: 14.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.884e-05/5.894e-05, allocations: 4 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1574, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5126/0.6701, allocations: 106.4 MB / 0.6057 GB, free: 14.76 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.6704, allocations: 67.97 kB / 0.6058 GB, free: 14.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1435/0.8139, allocations: 50.07 MB / 0.6547 GB, free: 12.45 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.8139, allocations: 3.938 kB / 0.6547 GB, free: 12.45 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001185/0.8141, allocations: 51.98 kB / 0.6548 GB, free: 12.4 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.006924/0.821, allocations: 2.344 MB / 0.657 GB, free: 9.996 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.8211, allocations: 8.031 kB / 0.6571 GB, free: 9.988 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007929/0.8219, allocations: 303.9 kB / 0.6573 GB, free: 9.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/0.823, allocations: 296.9 kB / 0.6576 GB, free: 9.387 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.8252, allocations: 0.9745 MB / 0.6586 GB, free: 8.355 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009007/0.8261, allocations: 472 kB / 0.659 GB, free: 7.848 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005857/0.8267, allocations: 243.7 kB / 0.6593 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004826/0.8315, allocations: 2.343 MB / 0.6615 GB, free: 5.18 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.8316, allocations: 31.7 kB / 0.6616 GB, free: 5.148 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/0.8319, allocations: 88 kB / 0.6617 GB, free: 5.062 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/0.8319, allocations: 52 kB / 0.6617 GB, free: 5.012 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004016/0.836, allocations: 2.203 MB / 0.6639 GB, free: 2.801 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.8496, allocations: 6.768 MB / 0.6705 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00398/0.8536, allocations: 2.238 MB / 0.6727 GB, free: 9.555 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.8558, allocations: 1.207 MB / 0.6738 GB, free: 8.332 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002844/0.8561, allocations: 123 kB / 0.674 GB, free: 8.191 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.685e-05/0.8561, allocations: 72.48 kB / 0.674 GB, free: 8.109 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 5.17e-06/0.8562, allocations: 0 / 0.674 GB, free: 8.109 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.01989/0.876, allocations: 11.12 MB / 0.6849 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/0.8762, allocations: 329.4 kB / 0.6852 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.8776, allocations: 0.9042 MB / 0.6861 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003989/0.8781, allocations: 105.7 kB / 0.6862 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005828/0.8787, allocations: 0.6752 MB / 0.6868 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.8797, allocations: 1.135 MB / 0.6879 GB, free: 9.258 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.8799, allocations: 64 kB / 0.688 GB, free: 9.195 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000222/0.8801, allocations: 428.6 kB / 0.6884 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/0.8819, allocations: 1.014 MB / 0.6894 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.8841, allocations: 1.42 MB / 0.6908 GB, free: 6.211 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.8858, allocations: 1.017 MB / 0.6918 GB, free: 5.203 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.8859, allocations: 4 kB / 0.6918 GB, free: 5.199 MB / 0.4948 GB Notification: Performance of matching and sorting (n=407) (initialization): time 0.005998/0.8919, allocations: 3.274 MB / 0.695 GB, free: 1.895 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.8919, allocations: 8 kB / 0.695 GB, free: 1.887 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/0.8919, allocations: 12 kB / 0.695 GB, free: 1.875 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.8943, allocations: 1.03 MB / 0.696 GB, free: 0.8359 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/0.8975, allocations: 0.7528 MB / 0.6967 GB, free: 84 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.9077, allocations: 7.385 MB / 0.704 GB, free: 8.359 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/0.9109, allocations: 295.7 kB / 0.7042 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004294/0.9113, allocations: 128 kB / 0.7044 GB, free: 7.945 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009028/0.9122, allocations: 292.3 kB / 0.7046 GB, free: 7.652 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/0.9134, allocations: 217.5 kB / 0.7049 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005215/0.9187, allocations: 2.292 MB / 0.7071 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.172e-05/0.9187, allocations: 32 kB / 0.7071 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-05/0.9187, allocations: 4.094 kB / 0.7071 GB, free: 5.074 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.13e-05/0.9188, allocations: 27.81 kB / 0.7072 GB, free: 5.047 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3838/1.303, allocations: 7.343 MB / 0.7143 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.782e-05/1.303, allocations: 8.953 kB / 0.7143 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003663/1.306, allocations: 0.7395 MB / 0.7151 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002573/1.309, allocations: 1.006 MB / 0.716 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006229/1.31, allocations: 110.6 kB / 0.7161 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/1.32, allocations: 10.02 MB / 0.7259 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.846e-05/1.32, allocations: 19.98 kB / 0.7259 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/1.331, allocations: 5.738 MB / 0.7315 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/1.333, allocations: 0.529 MB / 0.7321 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003864/1.333, allocations: 91.83 kB / 0.7321 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/1.335, allocations: 300.1 kB / 0.7324 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001375/1.337, allocations: 456.8 kB / 0.7329 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003277/1.337, allocations: 125.8 kB / 0.733 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001174/1.338, allocations: 0.7048 MB / 0.7337 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/1.338, allocations: 0 / 0.7337 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003858/1.342, allocations: 0.7276 MB / 0.7344 GB, free: 136.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01081/1.353, allocations: 8.848 MB / 0.743 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00525/1.358, allocations: 3.098 MB / 0.7461 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/1.358, allocations: 3.812 kB / 0.7461 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005043/1.363, allocations: 2.651 MB / 0.7486 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/1.366, allocations: 315.6 kB / 0.7489 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/1.38, allocations: 6.184 MB / 0.755 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/1.381, allocations: 1.59 MB / 0.7565 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00167/1.383, allocations: 309.5 kB / 0.7568 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/1.384, allocations: 0.8693 MB / 0.7577 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.273e-06/1.384, allocations: 0 / 0.7577 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08395/1.468, allocations: 53.63 MB / 0.8101 GB, free: 93.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/1.468, allocations: 175.3 kB / 0.8102 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.267/5.735, allocations: 0 / 0.8102 GB, free: 93.21 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat