Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001696/0.001696, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.586/2.586, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0007648/0.0007649, allocations: 85.42 kB / 271.9 MB, free: 8.258 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.6435/0.6435, allocations: 43.56 MB / 363.8 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006091/0.0006093, allocations: 16 kB / 432.6 MB, free: 5.668 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1832, allocations: 58.85 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5754/0.7586, allocations: 105.3 MB / 0.5827 GB, free: 12.95 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/0.7591, allocations: 67.97 kB / 0.5828 GB, free: 12.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2235/0.9826, allocations: 49.12 MB / 0.6308 GB, free: 11.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.428e-06/0.9827, allocations: 0 / 0.6308 GB, free: 11.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001775/0.9829, allocations: 51.98 kB / 0.6308 GB, free: 11.63 MB / 458.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.0121/0.995, allocations: 2.507 MB / 0.6333 GB, free: 9.059 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.245e-05/0.9951, allocations: 12.03 kB / 0.6333 GB, free: 9.047 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002649/0.9978, allocations: 293.8 kB / 0.6336 GB, free: 8.758 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004301/1.002, allocations: 1.034 MB / 0.6346 GB, free: 7.668 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001374/1.004, allocations: 468.1 kB / 0.635 GB, free: 7.164 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/1.005, allocations: 247.6 kB / 0.6353 GB, free: 6.922 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01026/1.015, allocations: 2.604 MB / 0.6378 GB, free: 4.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002066/1.015, allocations: 27.7 kB / 0.6378 GB, free: 4.203 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003944/1.016, allocations: 88 kB / 0.6379 GB, free: 4.117 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.844e-05/1.016, allocations: 59.94 kB / 0.638 GB, free: 4.059 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/1.027, allocations: 2.664 MB / 0.6406 GB, free: 1.395 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02306/1.05, allocations: 6.776 MB / 0.6472 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007951/1.058, allocations: 2.52 MB / 0.6496 GB, free: 7.871 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005442/1.064, allocations: 1.439 MB / 0.651 GB, free: 6.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004912/1.064, allocations: 131.1 kB / 0.6512 GB, free: 6.258 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.188e-05/1.064, allocations: 76.88 kB / 0.6512 GB, free: 6.176 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 9.618e-06/1.064, allocations: 0 / 0.6512 GB, free: 6.176 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.05/1.114, allocations: 14.56 MB / 0.6655 GB, free: 7.031 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002865/1.115, allocations: 329.4 kB / 0.6658 GB, free: 6.641 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/1.117, allocations: 1.057 MB / 0.6668 GB, free: 5.574 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00104/1.118, allocations: 97.69 kB / 0.6669 GB, free: 5.473 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009192/1.119, allocations: 0.6753 MB / 0.6676 GB, free: 4.789 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00189/1.121, allocations: 1.136 MB / 0.6687 GB, free: 3.637 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003289/1.121, allocations: 64 kB / 0.6687 GB, free: 3.574 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003403/1.122, allocations: 428.6 kB / 0.6691 GB, free: 3.148 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003932/1.126, allocations: 1.099 MB / 0.6702 GB, free: 2.047 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00424/1.13, allocations: 1.514 MB / 0.6717 GB, free: 424 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3728/1.503, allocations: 2.454 MB / 0.6741 GB, free: 111.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.359e-05/1.503, allocations: 2.906 kB / 0.6741 GB, free: 111.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01398/1.517, allocations: 3.49 MB / 0.6775 GB, free: 111.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.907e-05/1.517, allocations: 9 kB / 0.6775 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.54e-05/1.517, allocations: 11.8 kB / 0.6775 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00407/1.521, allocations: 1.046 MB / 0.6785 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004749/1.526, allocations: 0.7496 MB / 0.6793 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/1.539, allocations: 7.428 MB / 0.6865 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003889/1.543, allocations: 298.8 kB / 0.6868 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008591/1.544, allocations: 124.4 kB / 0.6869 GB, free: 107.5 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 () * Number of clocked 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.0022/1.546, allocations: 482.2 kB / 0.6874 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009324/1.547, allocations: 216 kB / 0.6876 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007314/1.555, allocations: 2.508 MB / 0.69 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.932e-05/1.555, allocations: 37.94 kB / 0.6901 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-05/1.555, allocations: 8.219 kB / 0.6901 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-05/1.555, allocations: 16.69 kB / 0.6901 GB, free: 107.2 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02592/1.581, allocations: 7.807 MB / 0.6977 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.165e-05/1.581, allocations: 9.25 kB / 0.6977 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00455/1.586, allocations: 0.7355 MB / 0.6985 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003291/1.589, allocations: 1.046 MB / 0.6995 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008252/1.59, allocations: 100.7 kB / 0.6996 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/1.603, allocations: 10.07 MB / 0.7094 GB, free: 97.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-05/1.603, allocations: 12.34 kB / 0.7094 GB, free: 97.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01745/1.62, allocations: 6.007 MB / 0.7153 GB, free: 94.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00231/1.623, allocations: 0.5306 MB / 0.7158 GB, free: 93.81 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/1.624, allocations: 84.25 kB / 0.7159 GB, free: 93.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003763/1.627, allocations: 302.9 kB / 0.7162 GB, free: 93.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001693/1.629, allocations: 455.4 kB / 0.7166 GB, free: 93.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007646/1.63, allocations: 127.8 kB / 0.7167 GB, free: 93.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002139/1.632, allocations: 0.7184 MB / 0.7174 GB, free: 93.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.632, allocations: 0 / 0.7174 GB, free: 93.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005805/1.638, allocations: 0.7304 MB / 0.7181 GB, free: 93.2 MB / 490.7 MB 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) * Number of clocked states: 0 () * 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.001326/1.639, allocations: 272.7 kB / 0.7184 GB, free: 93.02 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01264/1.652, allocations: 3.523 MB / 0.7218 GB, free: 91.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-05/1.652, allocations: 2.5 kB / 0.7218 GB, free: 91.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01152/1.664, allocations: 2.811 MB / 0.7246 GB, free: 90.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007466/1.671, allocations: 365.1 kB / 0.7249 GB, free: 90.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02502/1.696, allocations: 7.65 MB / 0.7324 GB, free: 85.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/1.698, allocations: 1.552 MB / 0.7339 GB, free: 84.92 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.7, allocations: 200.7 kB / 0.7341 GB, free: 84.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.402e-06/1.7, allocations: 3.844 kB / 0.7341 GB, free: 84.9 MB / 490.7 MB Notification: Performance of Templates: time 0.1211/1.822, allocations: 75.48 MB / 0.8078 GB, free: 36.81 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches