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.001108/0.001108, allocations: 77.97 kB / 21.42 MB, free: 3.07 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.001182/0.001182, allocations: 168.6 kB / 24.82 MB, free: 9.242 MB / 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.9708/0.9708, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.923e-06/1.923e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.489e-05, allocations: 6.25 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003188/0.003213, allocations: 3.18 MB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.004892, allocations: 1.22 MB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.005094, allocations: 11.88 kB / 277.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002777/0.005372, allocations: 99.09 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004011/0.005773, allocations: 234.2 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.006298, allocations: 279.5 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006922/0.00699, allocations: 0.8656 MB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.007165, allocations: 97.55 kB / 279.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000611/0.007776, allocations: 0.5223 MB / 279.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003672/0.008143, allocations: 339.2 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.284e-05/0.008226, allocations: 64 kB / 280.3 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.00842, allocations: 123.9 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.008561, allocations: 183.4 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.00872, allocations: 239.4 kB / 280.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008976/0.009617, allocations: 0.6228 MB / 281.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.009621, allocations: 0 / 281.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.009622, allocations: 0 / 281.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.00963, allocations: 0 / 281.4 MB, free: 9.211 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.0009939/0.01062, allocations: 0.9549 MB / 282.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.01066, allocations: 8.031 kB / 282.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.01088, allocations: 120.5 kB / 282.5 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.01123, allocations: 359.2 kB / 282.9 MB, free: 7.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.01126, allocations: 37.31 kB / 282.9 MB, free: 7.676 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.01132, allocations: 52.33 kB / 283 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.01183, allocations: 471.9 kB / 283.4 MB, free: 7.148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.01185, allocations: 4.188 kB / 283.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.01188, allocations: 20.12 kB / 283.4 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.01189, allocations: 12 kB / 283.4 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003591/0.01225, allocations: 294.6 kB / 283.7 MB, free: 6.828 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.01344, allocations: 1.071 MB / 284.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004511/0.01389, allocations: 322.7 kB / 285.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.01406, allocations: 153.6 kB / 285.3 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.01411, allocations: 16.66 kB / 285.3 MB, free: 5.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.01413, allocations: 45.97 kB / 285.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.583e-06/0.01413, allocations: 3.938 kB / 285.3 MB, free: 5.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002435/0.01657, allocations: 1.728 MB / 287.1 MB, free: 3.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.01659, allocations: 60.06 kB / 287.1 MB, free: 3.305 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.01682, allocations: 366.5 kB / 287.5 MB, free: 2.934 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.732e-05/0.01686, allocations: 53.69 kB / 287.5 MB, free: 2.875 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.01696, allocations: 256.3 kB / 287.8 MB, free: 2.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.0171, allocations: 265.8 kB / 288 MB, free: 2.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.01724, allocations: 140.2 kB / 288.2 MB, free: 2.215 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.01738, allocations: 0.5351 MB / 288.7 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.01757, allocations: 149.8 kB / 288.9 MB, free: 1.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.01778, allocations: 217.9 kB / 289.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.01807, allocations: 285.6 kB / 289.4 MB, free: 1.008 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01807, allocations: 0 / 289.4 MB, free: 1.008 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000742/0.01882, allocations: 0.6138 MB / 290 MB, free: 392 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.01883, allocations: 4 kB / 290 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.01884, allocations: 8.031 kB / 290 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1295/0.1484, allocations: 429.6 kB / 290.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.1486, allocations: 89.36 kB / 290.5 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007768/0.1494, allocations: 1.067 MB / 291.6 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.1497, allocations: 80.08 kB / 291.6 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.1498, allocations: 19.66 kB / 291.7 MB, free: 24.31 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.0001642/0.1499, allocations: 201 kB / 291.8 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.15, allocations: 81.52 kB / 291.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.021e-05/0.1501, allocations: 73.48 kB / 292 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1501, allocations: 9.938 kB / 292 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1501, allocations: 0 / 292 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1501, allocations: 6.172 kB / 292 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.1515, allocations: 1.094 MB / 293.1 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1515, allocations: 0 / 293.1 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.1517, allocations: 87.47 kB / 293.2 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006373/0.1524, allocations: 426.9 kB / 293.6 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.705e-05/0.1524, allocations: 29.77 kB / 293.6 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006529/0.1531, allocations: 1.095 MB / 294.7 MB, free: 23.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1531, allocations: 1.984 kB / 294.7 MB, free: 23.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.1542, allocations: 0.8873 MB / 295.6 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.1544, allocations: 121.6 kB / 295.7 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.1545, allocations: 24.41 kB / 295.8 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.1547, allocations: 71.62 kB / 295.8 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001901/0.1549, allocations: 145.9 kB / 296 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.896e-05/0.1549, allocations: 33 kB / 296 MB, free: 22.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.1551, allocations: 247.5 kB / 296.3 MB, free: 22.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1551, allocations: 0 / 296.3 MB, free: 22.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000375/0.1554, allocations: 158.3 kB / 296.4 MB, free: 22.69 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.0006716/0.1561, allocations: 373.1 kB / 296.8 MB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006562/0.1568, allocations: 489.9 kB / 297.2 MB, free: 22.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.1568, allocations: 0 / 297.2 MB, free: 22.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.1571, allocations: 304.8 kB / 297.5 MB, free: 22.53 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1576, allocations: 181.4 kB / 297.7 MB, free: 22.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.159, allocations: 1.174 MB / 298.9 MB, free: 21.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.84e-05/0.1591, allocations: 133 kB / 299 MB, free: 21.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.1592, allocations: 56.05 kB / 299.1 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.1595, allocations: 179.5 kB / 299.3 MB, free: 21.71 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1595, allocations: 0 / 299.3 MB, free: 21.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01394/0.1734, allocations: 12.85 MB / 312.1 MB, free: 13.71 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.023313795682043]