Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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) 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(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009718/0.0009718, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.418/1.418, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009083/0.0009082, allocations: 97.41 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002251/0.0002252, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2944, allocations: 47.56 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1242/0.4187, allocations: 78.86 MB / 454.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.4191, allocations: 75.95 kB / 454.7 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02719/0.4463, allocations: 9.204 MB / 463.9 MB, free: 8.523 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4463, allocations: 0 / 463.9 MB, free: 8.523 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.4464, allocations: 12 kB / 464 MB, free: 8.512 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001672/0.448, allocations: 0.8299 MB / 464.8 MB, free: 7.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.4481, allocations: 8.031 kB / 464.8 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.4483, allocations: 59.25 kB / 464.9 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005534/0.4488, allocations: 334.7 kB / 465.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.41e-05/0.4489, allocations: 36.95 kB / 465.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.449, allocations: 43.91 kB / 465.3 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.4502, allocations: 0.5916 MB / 465.9 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.4502, allocations: 8 kB / 465.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-05/0.4503, allocations: 16 kB / 465.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.4504, allocations: 15.92 kB / 465.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.4515, allocations: 0.5504 MB / 466.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002562/0.4541, allocations: 1.344 MB / 467.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.4552, allocations: 479 kB / 468.3 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.437e-05/0.4553, allocations: 16.55 kB / 468.3 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.4553, allocations: 43.12 kB / 468.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 2.736e-06/0.4553, allocations: 0 / 468.3 MB, free: 3.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.006479/0.4618, allocations: 2.928 MB / 471.2 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.4619, allocations: 59.97 kB / 471.3 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.4622, allocations: 255.7 kB / 471.5 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.351e-05/0.4623, allocations: 41.7 kB / 471.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.4625, allocations: 193.4 kB / 471.8 MB, free: 360 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.4627, allocations: 228.8 kB / 472 MB, free: 128 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.4627, allocations: 12 kB / 472 MB, free: 116 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.463, allocations: 362.8 kB / 472.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006115/0.4636, allocations: 289.9 kB / 472.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.4642, allocations: 357 kB / 473 MB, free: 15.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.4647, allocations: 227.1 kB / 473.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4647, allocations: 0 / 473.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001714/0.4665, allocations: 0.8534 MB / 474.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4665, allocations: 8 kB / 474.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.4665, allocations: 0 / 474.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.4677, allocations: 0.5811 MB / 474.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.4681, allocations: 95.89 kB / 474.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.4694, allocations: 0.9863 MB / 475.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.4701, allocations: 151.9 kB / 475.9 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.553e-05/0.4702, allocations: 31.97 kB / 475.9 MB, free: 12.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003713/0.4706, allocations: 184 kB / 476.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.4707, allocations: 43.44 kB / 476.1 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001915/0.4726, allocations: 0.929 MB / 477.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.4727, allocations: 4 kB / 477.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4727, allocations: 0 / 477.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4727, allocations: 7.984 kB / 477.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.4753, allocations: 1.485 MB / 478.6 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4753, allocations: 3.953 kB / 478.6 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.4757, allocations: 95.89 kB / 478.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009468/0.4767, allocations: 0.5433 MB / 479.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/0.4767, allocations: 35.95 kB / 479.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.478, allocations: 0.9543 MB / 480.2 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.478, allocations: 4 kB / 480.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.4802, allocations: 1.206 MB / 481.4 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.4805, allocations: 188.4 kB / 481.6 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.4807, allocations: 27.94 kB / 481.6 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006152/0.4813, allocations: 143.9 kB / 481.8 MB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.4816, allocations: 144.2 kB / 481.9 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.875e-05/0.4816, allocations: 31.95 kB / 481.9 MB, free: 5.973 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002313/0.4819, allocations: 219.2 kB / 482.1 MB, free: 5.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4819, allocations: 4 kB / 482.2 MB, free: 5.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006215/0.4825, allocations: 159.9 kB / 482.3 MB, free: 5.602 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003384/0.4829, allocations: 155.1 kB / 482.5 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.4845, allocations: 0.8046 MB / 483.3 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4845, allocations: 0 / 483.3 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007683/0.4852, allocations: 417.8 kB / 483.7 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005476/0.4858, allocations: 82.86 kB / 483.8 MB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.4885, allocations: 1.663 MB / 485.4 MB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.4889, allocations: 0.8637 MB / 486.3 MB, free: 1.551 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.4891, allocations: 36.19 kB / 486.3 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4892, allocations: 39.42 kB / 486.4 MB, free: 1.473 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4892, allocations: 0 / 486.4 MB, free: 1.473 MB / 362.7 MB Notification: Performance of Templates: time 0.01737/0.5066, allocations: 11.47 MB / 497.8 MB, free: 6.016 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches