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.001447/0.001448, allocations: 178.6 kB / 8.697 MB, free: 380 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.3 MB / 214.4 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008048/0.0008048, allocations: 86.5 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.475e-05/2.478e-05, allocations: 7.984 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 47.59 MB / 363.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4092/0.5208, allocations: 78.33 MB / 441.4 MB, free: 1.309 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.5211, allocations: 72.45 kB / 441.5 MB, free: 1.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02583/0.5469, allocations: 9.127 MB / 450.6 MB, free: 9.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.5469, allocations: 0 / 450.6 MB, free: 9.516 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.547, allocations: 11.94 kB / 450.6 MB, free: 9.504 MB / 330.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.001613/0.5486, allocations: 0.7705 MB / 451.4 MB, free: 8.715 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.5487, allocations: 8.031 kB / 451.4 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.5488, allocations: 62.88 kB / 451.5 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.5493, allocations: 333 kB / 451.8 MB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.5493, allocations: 19.95 kB / 451.8 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.65e-05/0.5494, allocations: 31.23 kB / 451.8 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007536/0.5502, allocations: 473.3 kB / 452.3 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007845/0.551, allocations: 0.5094 MB / 452.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.551, allocations: 3.906 kB / 452.8 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-05/0.5511, allocations: 4 kB / 452.8 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.5511, allocations: 12 kB / 452.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.5534, allocations: 1.259 MB / 454.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000741/0.5542, allocations: 428.3 kB / 454.5 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003421/0.5546, allocations: 254.4 kB / 454.7 MB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.863e-05/0.5546, allocations: 8.562 kB / 454.8 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.5547, allocations: 38.56 kB / 454.8 MB, free: 6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 1.904e-06/0.5547, allocations: 0 / 454.8 MB, free: 6 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.003896/0.5586, allocations: 1.854 MB / 456.6 MB, free: 4.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.5587, allocations: 59.97 kB / 456.7 MB, free: 4.352 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.559, allocations: 238.4 kB / 456.9 MB, free: 4.152 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.167e-05/0.559, allocations: 37.33 kB / 457 MB, free: 4.113 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.5592, allocations: 194.8 kB / 457.2 MB, free: 3.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.5594, allocations: 222.6 kB / 457.4 MB, free: 3.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.5594, allocations: 3.984 kB / 457.4 MB, free: 3.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5596, allocations: 353.8 kB / 457.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.56, allocations: 244.4 kB / 458 MB, free: 3.297 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.5604, allocations: 305.7 kB / 458.3 MB, free: 3.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004986/0.5609, allocations: 211.3 kB / 458.5 MB, free: 2.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5609, allocations: 0 / 458.5 MB, free: 2.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001373/0.5623, allocations: 0.7525 MB / 459.2 MB, free: 2.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.5623, allocations: 4 kB / 459.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.5624, allocations: 8 kB / 459.2 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009592/0.5633, allocations: 0.55 MB / 459.8 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.5637, allocations: 95.25 kB / 459.9 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.5651, allocations: 1.061 MB / 460.9 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/0.5658, allocations: 143.8 kB / 461.1 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-05/0.5659, allocations: 27.48 kB / 461.1 MB, free: 0.8594 MB / 330.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.0002506/0.5662, allocations: 130.9 kB / 461.2 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.5663, allocations: 47.44 kB / 461.3 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.5679, allocations: 0.8167 MB / 462.1 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.5679, allocations: 19.94 kB / 462.1 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5679, allocations: 0 / 462.1 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.5679, allocations: 3.984 kB / 462.1 MB, free: 64 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.5701, allocations: 1.32 MB / 463.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.5701, allocations: 3.984 kB / 463.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00041/0.5706, allocations: 87.83 kB / 463.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000884/0.5714, allocations: 0.5242 MB / 464.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.807e-05/0.5715, allocations: 29.78 kB / 464.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.5728, allocations: 1.024 MB / 465.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5728, allocations: 4 kB / 465.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.5745, allocations: 1.075 MB / 466.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.5748, allocations: 190.9 kB / 466.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.5749, allocations: 14 kB / 466.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.5755, allocations: 127.9 kB / 466.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.5758, allocations: 156.4 kB / 466.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.5759, allocations: 30.72 kB / 466.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001704/0.576, allocations: 197.3 kB / 466.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5761, allocations: 3.938 kB / 466.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005044/0.5766, allocations: 136 kB / 467 MB, free: 12.09 MB / 346.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.0002501/0.5768, allocations: 142.2 kB / 467.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.578, allocations: 0.7162 MB / 467.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.578, allocations: 0 / 467.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005779/0.5786, allocations: 364.3 kB / 468.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.5791, allocations: 67 kB / 468.3 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.5812, allocations: 1.168 MB / 469.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.5817, allocations: 0.8593 MB / 470.3 MB, free: 9.156 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001889/0.5819, allocations: 39.45 kB / 470.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.582, allocations: 35.42 kB / 470.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.582, allocations: 0 / 470.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of Templates: time 0.01589/0.5979, allocations: 11.05 MB / 481.5 MB, free: 14.03 MB / 362.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