Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9489/0.9489, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.445e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003262/0.003287, allocations: 3.244 MB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.004735, allocations: 1.228 MB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.004882, allocations: 11.88 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.005162, allocations: 95.09 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003278/0.00549, allocations: 238.2 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.005881, allocations: 279.5 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005499/0.006431, allocations: 0.8656 MB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.006596, allocations: 101.5 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004727/0.007069, allocations: 0.5146 MB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.007383, allocations: 339.2 kB / 279.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.445e-05/0.007457, allocations: 64 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.007621, allocations: 131.8 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.007764, allocations: 183.4 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.007922, allocations: 235.4 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004994/0.008421, allocations: 0.6151 MB / 281.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.008424, allocations: 4 kB / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.008425, allocations: 0 / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.008431, allocations: 0 / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001017/0.009448, allocations: 0.955 MB / 282 MB, free: 8.387 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.00948, allocations: 8.031 kB / 282 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.009714, allocations: 116.5 kB / 282.2 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.01007, allocations: 351.2 kB / 282.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.01011, allocations: 33.38 kB / 282.5 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.361e-05/0.01017, allocations: 52.27 kB / 282.6 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006247/0.0108, allocations: 0.5118 MB / 283.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.01081, allocations: 4.188 kB / 283.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.01085, allocations: 24.12 kB / 283.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.01086, allocations: 8 kB / 283.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/0.01137, allocations: 365.6 kB / 283.5 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.01261, allocations: 1.125 MB / 284.6 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.01318, allocations: 374.6 kB / 285 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.01342, allocations: 193.5 kB / 285.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.01346, allocations: 12.66 kB / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.01348, allocations: 45.98 kB / 285.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.503e-06/0.01348, allocations: 0 / 285.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002989/0.01647, allocations: 1.974 MB / 287.2 MB, free: 3.051 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.0165, allocations: 64 kB / 287.3 MB, free: 2.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.01674, allocations: 366.7 kB / 287.6 MB, free: 2.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/0.01679, allocations: 57.62 kB / 287.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.01688, allocations: 248.3 kB / 287.9 MB, free: 2.293 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.01703, allocations: 269.8 kB / 288.2 MB, free: 2.027 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.01717, allocations: 132.3 kB / 288.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.0173, allocations: 0.5352 MB / 288.8 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.01758, allocations: 181.9 kB / 289 MB, free: 1.164 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.01787, allocations: 257.9 kB / 289.3 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.01832, allocations: 341.5 kB / 289.6 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01832, allocations: 0 / 289.6 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.1102/0.1286, allocations: 0.6826 MB / 290.3 MB, free: 24.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.1286, allocations: 7.75 kB / 290.3 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1286, allocations: 7.234 kB / 290.3 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008212/0.1294, allocations: 448.2 kB / 290.7 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.1297, allocations: 88.44 kB / 290.8 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008394/0.1305, allocations: 1.104 MB / 291.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.1308, allocations: 82.55 kB / 292 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.1309, allocations: 23.11 kB / 292 MB, free: 24.16 MB / 266.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 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.131, allocations: 199.9 kB / 292.2 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1312, allocations: 75.83 kB / 292.3 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.988e-05/0.1312, allocations: 76.36 kB / 292.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1312, allocations: 8.516 kB / 292.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1312, allocations: 0 / 292.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1312, allocations: 8.672 kB / 292.4 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.1328, allocations: 1.208 MB / 293.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1328, allocations: 1.125 kB / 293.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.133, allocations: 85.3 kB / 293.7 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006536/0.1337, allocations: 450.3 kB / 294.1 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.1337, allocations: 27.27 kB / 294.2 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007506/0.1345, allocations: 1.132 MB / 295.3 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1345, allocations: 1.188 kB / 295.3 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.1358, allocations: 0.9908 MB / 296.3 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.136, allocations: 122 kB / 296.4 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.809e-05/0.136, allocations: 23.69 kB / 296.4 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.1363, allocations: 70.86 kB / 296.5 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.1365, allocations: 143.5 kB / 296.6 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.1366, allocations: 32.14 kB / 296.7 MB, free: 22.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001664/0.1367, allocations: 261.6 kB / 296.9 MB, free: 22.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1367, allocations: 3.562 kB / 296.9 MB, free: 22.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003952/0.1371, allocations: 161.1 kB / 297.1 MB, free: 22.48 MB / 266.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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000801/0.1379, allocations: 362 kB / 297.4 MB, free: 22.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009426/0.1389, allocations: 0.5514 MB / 298 MB, free: 22.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1389, allocations: 1.156 kB / 298 MB, free: 22.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000484/0.1394, allocations: 346 kB / 298.3 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004755/0.1398, allocations: 174.2 kB / 298.5 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.1415, allocations: 1.197 MB / 299.7 MB, free: 21.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.249e-05/0.1416, allocations: 132.3 kB / 299.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.1418, allocations: 52.95 kB / 299.9 MB, free: 21.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1419, allocations: 51.75 kB / 299.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1419, allocations: 1.094 kB / 299.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of Templates: time 0.01369/0.1556, allocations: 12.73 MB / 312.7 MB, free: 12.9 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.011952342931181]