Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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) 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: 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.5 MB / 230.3 MB, free: 7.504 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.000865/0.0008649, allocations: 94.05 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.029e-05, allocations: 4 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 50.43 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3178/0.4277, allocations: 79.02 MB / 466.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.428, allocations: 67.97 kB / 466.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02578/0.4538, allocations: 9.27 MB / 475.8 MB, free: 6.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4538, allocations: 4 kB / 475.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.4539, allocations: 11.98 kB / 475.8 MB, free: 6.457 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.001612/0.4555, allocations: 0.7683 MB / 476.6 MB, free: 5.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4555, allocations: 8.031 kB / 476.6 MB, free: 5.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.4557, allocations: 60 kB / 476.7 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.4562, allocations: 347.6 kB / 477 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.4562, allocations: 16 kB / 477 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.4563, allocations: 24 kB / 477 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007727/0.4571, allocations: 478.4 kB / 477.5 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008504/0.458, allocations: 0.504 MB / 478 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.458, allocations: 11.86 kB / 478 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/0.4581, allocations: 0 / 478 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.4581, allocations: 15.94 kB / 478 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.4606, allocations: 1.257 MB / 479.3 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007962/0.4614, allocations: 424.7 kB / 479.7 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000386/0.4618, allocations: 258.5 kB / 480 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.848e-05/0.4619, allocations: 8.562 kB / 480 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.4619, allocations: 35.12 kB / 480 MB, free: 2.109 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 2.544e-06/0.4619, allocations: 0 / 480 MB, free: 2.109 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.004438/0.4664, allocations: 1.869 MB / 481.9 MB, free: 160 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4665, allocations: 59.97 kB / 481.9 MB, free: 84 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.4668, allocations: 229.2 kB / 482.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.582e-05/0.4669, allocations: 41.7 kB / 482.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.4671, allocations: 193.3 kB / 482.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.4674, allocations: 216.9 kB / 482.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.4674, allocations: 0 / 482.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4676, allocations: 358.8 kB / 483 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/0.468, allocations: 245.5 kB / 483.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.4685, allocations: 301.5 kB / 483.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004954/0.469, allocations: 204.5 kB / 483.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.469, allocations: 0 / 483.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001349/0.4704, allocations: 0.7588 MB / 484.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4704, allocations: 4 kB / 484.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/0.4704, allocations: 4 kB / 484.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.4714, allocations: 0.5493 MB / 485 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.4718, allocations: 87.89 kB / 485.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.4733, allocations: 1.072 MB / 486.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/0.474, allocations: 135.9 kB / 486.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.44e-05/0.4741, allocations: 27.98 kB / 486.3 MB, free: 11.62 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0002881/0.4744, allocations: 127.7 kB / 486.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.4745, allocations: 47.53 kB / 486.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.4763, allocations: 0.8314 MB / 487.3 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.4763, allocations: 8 kB / 487.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4763, allocations: 0 / 487.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4763, allocations: 3.984 kB / 487.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.4785, allocations: 1.329 MB / 488.7 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4785, allocations: 0 / 488.7 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.479, allocations: 95.88 kB / 488.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008842/0.4799, allocations: 0.5262 MB / 489.3 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.4799, allocations: 19.95 kB / 489.3 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.4812, allocations: 1.028 MB / 490.3 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4813, allocations: 0 / 490.3 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.4831, allocations: 1.078 MB / 491.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.4834, allocations: 184.4 kB / 491.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4835, allocations: 19.92 kB / 491.6 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006702/0.4842, allocations: 127.9 kB / 491.7 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.4845, allocations: 160.2 kB / 491.9 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.827e-05/0.4846, allocations: 27.97 kB / 491.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002015/0.4848, allocations: 192.6 kB / 492.1 MB, free: 5.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4848, allocations: 4 kB / 492.1 MB, free: 5.695 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005487/0.4854, allocations: 136 kB / 492.2 MB, free: 5.562 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) * 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.0002748/0.4856, allocations: 147 kB / 492.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.4868, allocations: 0.7129 MB / 493.1 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4868, allocations: 4.062 kB / 493.1 MB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005718/0.4874, allocations: 364.9 kB / 493.5 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.488, allocations: 71.3 kB / 493.5 MB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.4902, allocations: 1.171 MB / 494.7 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.4905, allocations: 0.8593 MB / 495.6 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.4907, allocations: 39.45 kB / 495.6 MB, free: 2.129 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4909, allocations: 35.42 kB / 495.6 MB, free: 2.094 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4909, allocations: 0 / 495.6 MB, free: 2.094 MB / 362.7 MB Notification: Performance of Templates: time 0.01632/0.5072, allocations: 11.03 MB / 0.4948 GB, free: 7.109 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches