Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00093/0.00093, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008163/0.0008164, allocations: 85.31 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3723/0.3723, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.756e-05/2.758e-05, allocations: 8 kB / 425.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 58.83 MB / 484.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4862, allocations: 105.1 MB / 0.5754 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4864, allocations: 63.27 kB / 0.5755 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1345/0.6209, allocations: 49.28 MB / 0.6236 GB, free: 7.246 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.621, allocations: 4 kB / 0.6236 GB, free: 7.242 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001043/0.6211, allocations: 51.98 kB / 0.6236 GB, free: 7.191 MB / 442.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.005385/0.6265, allocations: 2.338 MB / 0.6259 GB, free: 4.934 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6266, allocations: 8.031 kB / 0.6259 GB, free: 4.926 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009236/0.6275, allocations: 300.1 kB / 0.6262 GB, free: 4.633 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.629, allocations: 0.9868 MB / 0.6272 GB, free: 3.781 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007021/0.6297, allocations: 458.7 kB / 0.6276 GB, free: 3.363 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000404/0.6301, allocations: 246.7 kB / 0.6279 GB, free: 3.199 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003748/0.6339, allocations: 2.352 MB / 0.6302 GB, free: 1.523 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.776e-05/0.634, allocations: 34.95 kB / 0.6302 GB, free: 1.492 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002085/0.6342, allocations: 85.44 kB / 0.6303 GB, free: 1.477 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-05/0.6343, allocations: 52 kB / 0.6303 GB, free: 1.426 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003643/0.6379, allocations: 2.2 MB / 0.6325 GB, free: 15.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01307/0.651, allocations: 6.763 MB / 0.6391 GB, free: 8.551 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003658/0.6547, allocations: 2.249 MB / 0.6413 GB, free: 6.164 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.6567, allocations: 1.213 MB / 0.6425 GB, free: 4.934 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.657, allocations: 130.9 kB / 0.6426 GB, free: 4.785 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.6571, allocations: 68.38 kB / 0.6426 GB, free: 4.707 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 5.06e-06/0.6571, allocations: 4 kB / 0.6426 GB, free: 4.703 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.01868/0.6758, allocations: 11.1 MB / 0.6535 GB, free: 9.105 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.676, allocations: 325.5 kB / 0.6538 GB, free: 8.723 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.6773, allocations: 0.9081 MB / 0.6547 GB, free: 7.805 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004989/0.6778, allocations: 93.69 kB / 0.6548 GB, free: 7.707 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005507/0.6784, allocations: 0.6752 MB / 0.6554 GB, free: 7.023 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.6795, allocations: 1.136 MB / 0.6565 GB, free: 5.871 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.6797, allocations: 68 kB / 0.6566 GB, free: 5.805 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.6799, allocations: 428.6 kB / 0.657 GB, free: 5.379 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.6817, allocations: 1.014 MB / 0.658 GB, free: 4.363 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.6838, allocations: 1.428 MB / 0.6594 GB, free: 2.812 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.6855, allocations: 1.009 MB / 0.6604 GB, free: 1.812 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.6855, allocations: 4 kB / 0.6604 GB, free: 1.809 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.005801/0.6913, allocations: 3.286 MB / 0.6636 GB, free: 14.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.6914, allocations: 12 kB / 0.6636 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.6914, allocations: 8 kB / 0.6636 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/0.6936, allocations: 1.019 MB / 0.6646 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/0.6964, allocations: 0.749 MB / 0.6654 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008139/0.7046, allocations: 7.406 MB / 0.6726 GB, free: 4.957 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/0.7069, allocations: 299.7 kB / 0.6729 GB, free: 4.664 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002845/0.7072, allocations: 128 kB / 0.673 GB, free: 4.539 MB / 490.7 MB 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.0005876/0.7078, allocations: 292.7 kB / 0.6733 GB, free: 4.246 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004814/0.7083, allocations: 213.4 kB / 0.6735 GB, free: 4.035 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00414/0.7124, allocations: 2.289 MB / 0.6757 GB, free: 1.711 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.212e-05/0.7125, allocations: 39.98 kB / 0.6757 GB, free: 1.672 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/0.7125, allocations: 4 kB / 0.6758 GB, free: 1.668 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.963e-05/0.7125, allocations: 15.94 kB / 0.6758 GB, free: 1.652 MB / 490.7 MB 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.01284/0.7254, allocations: 7.356 MB / 0.6829 GB, free: 10.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.7254, allocations: 8 kB / 0.683 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002912/0.7283, allocations: 0.7336 MB / 0.6837 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/0.7305, allocations: 1.013 MB / 0.6847 GB, free: 8.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002846/0.7308, allocations: 103.9 kB / 0.6848 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2454/0.9762, allocations: 10.01 MB / 0.6945 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/0.9763, allocations: 12.38 kB / 0.6945 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009631/0.9859, allocations: 5.758 MB / 0.7002 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/0.9878, allocations: 0.5286 MB / 0.7007 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005313/0.9883, allocations: 87.31 kB / 0.7008 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002602/0.991, allocations: 303.8 kB / 0.7011 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/0.9921, allocations: 453.7 kB / 0.7015 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002866/0.9924, allocations: 128.3 kB / 0.7016 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001079/0.9935, allocations: 0.6993 MB / 0.7023 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9935, allocations: 0 / 0.7023 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002947/0.9964, allocations: 0.7307 MB / 0.703 GB, free: 117.2 MB / 0.4948 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.0005075/0.9969, allocations: 269.7 kB / 0.7033 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004834/1.002, allocations: 3.089 MB / 0.7063 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.002, allocations: 0.9375 kB / 0.7063 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004949/1.007, allocations: 2.656 MB / 0.7089 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/1.009, allocations: 317.4 kB / 0.7092 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009211/1.018, allocations: 5.707 MB / 0.7148 GB, free: 114.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/1.019, allocations: 1.595 MB / 0.7163 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001549/1.021, allocations: 308 kB / 0.7166 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/1.022, allocations: 185 kB / 0.7168 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.283e-06/1.022, allocations: 5.875 kB / 0.7168 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.05819/1.08, allocations: 36.23 MB / 0.7522 GB, free: 111.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches