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.001101/0.001101, allocations: 184.7 kB / 15.76 MB, free: 6.367 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.605/1.605, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001078/0.001077, allocations: 94.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2203/0.2203, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.000394, allocations: 7.984 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1537, allocations: 58.85 MB / 490.2 MB, free: 8.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.6169, allocations: 105.2 MB / 0.5814 GB, free: 10.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.6173, allocations: 68.53 kB / 0.5815 GB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1405/0.7579, allocations: 49.27 MB / 0.6296 GB, free: 1.242 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.7579, allocations: 0 / 0.6296 GB, free: 1.242 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.964e-05/0.7581, allocations: 51.94 kB / 0.6297 GB, free: 1.191 MB / 426.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.00648/0.7645, allocations: 2.536 MB / 0.6322 GB, free: 14.74 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.7646, allocations: 8.031 kB / 0.6322 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.7659, allocations: 296.9 kB / 0.6324 GB, free: 14.44 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.768, allocations: 0.9854 MB / 0.6334 GB, free: 13.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007731/0.7688, allocations: 460.7 kB / 0.6338 GB, free: 13.17 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004388/0.7692, allocations: 239 kB / 0.6341 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005432/0.7747, allocations: 2.6 MB / 0.6366 GB, free: 10.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.937e-05/0.7748, allocations: 35.64 kB / 0.6366 GB, free: 10.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/0.775, allocations: 84 kB / 0.6367 GB, free: 10.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/0.7751, allocations: 52 kB / 0.6368 GB, free: 10.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005934/0.781, allocations: 2.672 MB / 0.6394 GB, free: 7.695 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.7948, allocations: 6.772 MB / 0.646 GB, free: 0.8203 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005374/0.8002, allocations: 2.51 MB / 0.6484 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003135/0.8006, allocations: 123.5 kB / 0.6486 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.349e-05/0.8007, allocations: 76.36 kB / 0.6486 GB, free: 13.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 6.552e-06/0.8007, allocations: 0 / 0.6486 GB, free: 13.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.03312/0.8338, allocations: 14.53 MB / 0.6628 GB, free: 14.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00022/0.8341, allocations: 329.3 kB / 0.6631 GB, free: 14.45 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.8357, allocations: 0.9221 MB / 0.664 GB, free: 13.52 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004596/0.8361, allocations: 97.69 kB / 0.6641 GB, free: 13.42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006516/0.8368, allocations: 0.6714 MB / 0.6648 GB, free: 12.74 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001125/0.8379, allocations: 1.136 MB / 0.6659 GB, free: 11.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.8381, allocations: 64 kB / 0.666 GB, free: 11.53 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.8384, allocations: 432.6 kB / 0.6664 GB, free: 11.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.8407, allocations: 1.092 MB / 0.6674 GB, free: 10 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002682/0.8434, allocations: 1.504 MB / 0.6689 GB, free: 8.379 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002383/0.8458, allocations: 1.129 MB / 0.67 GB, free: 7.266 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.8459, allocations: 4 kB / 0.67 GB, free: 7.262 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007251/0.8531, allocations: 3.501 MB / 0.6734 GB, free: 3.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.56e-05/0.8532, allocations: 11.95 kB / 0.6734 GB, free: 3.719 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.995e-05/0.8532, allocations: 12 kB / 0.6735 GB, free: 3.707 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/0.8557, allocations: 1.046 MB / 0.6745 GB, free: 2.648 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.8587, allocations: 0.7529 MB / 0.6752 GB, free: 1.895 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.8688, allocations: 7.541 MB / 0.6826 GB, free: 10 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003163/0.872, allocations: 299.8 kB / 0.6829 GB, free: 9.711 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005105/0.8725, allocations: 128 kB / 0.683 GB, free: 9.586 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.001489/0.874, allocations: 473.4 kB / 0.6834 GB, free: 9.117 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006535/0.8747, allocations: 229.3 kB / 0.6837 GB, free: 8.891 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005302/0.88, allocations: 2.507 MB / 0.6861 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.944e-05/0.8801, allocations: 32 kB / 0.6861 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.769e-05/0.8801, allocations: 8 kB / 0.6861 GB, free: 6.312 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-05/0.8801, allocations: 15.94 kB / 0.6862 GB, free: 6.297 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.01609/0.8962, allocations: 7.759 MB / 0.6937 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/0.8963, allocations: 8.906 kB / 0.6937 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003118/0.8994, allocations: 0.7412 MB / 0.6945 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002541/0.902, allocations: 1.04 MB / 0.6955 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003785/0.9024, allocations: 103.9 kB / 0.6956 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.9147, allocations: 10.19 MB / 0.7055 GB, free: 1.621 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.389e-05/0.9148, allocations: 15.94 kB / 0.7056 GB, free: 1.605 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3214/1.236, allocations: 6.505 MB / 0.7119 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/1.238, allocations: 0.5374 MB / 0.7124 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004303/1.238, allocations: 87.91 kB / 0.7125 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002367/1.241, allocations: 298.7 kB / 0.7128 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001202/1.242, allocations: 452.6 kB / 0.7132 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003101/1.242, allocations: 130.2 kB / 0.7134 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001378/1.244, allocations: 0.717 MB / 0.7141 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.71e-07/1.244, allocations: 0 / 0.7141 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003579/1.247, allocations: 0.7309 MB / 0.7148 GB, free: 141.3 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) * 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.0007001/1.248, allocations: 270.6 kB / 0.715 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008383/1.256, allocations: 3.518 MB / 0.7185 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/1.256, allocations: 1.406 kB / 0.7185 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007277/1.264, allocations: 2.917 MB / 0.7213 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.267, allocations: 314.2 kB / 0.7216 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/1.281, allocations: 7.571 MB / 0.729 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/1.282, allocations: 1.601 MB / 0.7306 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001925/1.284, allocations: 308.5 kB / 0.7309 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006282/1.285, allocations: 186.7 kB / 0.731 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.923e-06/1.285, allocations: 4 kB / 0.731 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.0581/1.343, allocations: 36.2 MB / 0.7664 GB, free: 126.5 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