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.0009181/0.0009181, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001068/0.001068, allocations: 168.7 kB / 25.61 MB, free: 8.582 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.9062/0.9062, allocations: 177.1 MB / 206 MB, free: 4.477 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.403e-06/1.403e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.289e-05/2.43e-05, allocations: 7.781 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003437/0.003461, allocations: 3.175 MB / 277.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.005079, allocations: 1.23 MB / 278.6 MB, free: 20 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.005273, allocations: 7.938 kB / 278.6 MB, free: 12 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.005561, allocations: 95.05 kB / 278.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00038/0.005941, allocations: 238.2 kB / 278.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004461/0.006387, allocations: 287.4 kB / 279.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006563/0.007043, allocations: 0.8617 MB / 280.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.007223, allocations: 93.55 kB / 280.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006375/0.00786, allocations: 0.5185 MB / 280.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.008241, allocations: 339.2 kB / 281 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.859e-05/0.00832, allocations: 64 kB / 281.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.008502, allocations: 127.8 kB / 281.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.008644, allocations: 179.4 kB / 281.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.008817, allocations: 235.4 kB / 281.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005579/0.009375, allocations: 0.6268 MB / 282.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.009378, allocations: 0 / 282.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.009379, allocations: 0 / 282.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.527e-06/0.009388, allocations: 3.984 kB / 282.2 MB, free: 12.36 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.001039/0.01043, allocations: 0.9627 MB / 283.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.01046, allocations: 8.031 kB / 283.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002511/0.01071, allocations: 116.5 kB / 283.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.01107, allocations: 355.2 kB / 283.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.01111, allocations: 37.38 kB / 283.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.656e-05/0.01118, allocations: 52.31 kB / 283.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.0117, allocations: 468 kB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.01172, allocations: 4.188 kB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.01176, allocations: 24.12 kB / 284.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.01177, allocations: 8 kB / 284.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003937/0.01216, allocations: 294.6 kB / 284.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.01346, allocations: 1.075 MB / 285.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.01396, allocations: 338.5 kB / 285.9 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.01414, allocations: 149.6 kB / 286.1 MB, free: 8.375 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.01418, allocations: 12.66 kB / 286.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.01421, allocations: 45.98 kB / 286.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.914e-06/0.01421, allocations: 0 / 286.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002754/0.01696, allocations: 1.72 MB / 287.9 MB, free: 6.535 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.01699, allocations: 60.06 kB / 287.9 MB, free: 6.465 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.01721, allocations: 370.5 kB / 288.3 MB, free: 6.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.01726, allocations: 49.7 kB / 288.3 MB, free: 6.035 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.01737, allocations: 252.3 kB / 288.6 MB, free: 5.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.01753, allocations: 273.7 kB / 288.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.01768, allocations: 144.2 kB / 289 MB, free: 5.367 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.01782, allocations: 0.539 MB / 289.5 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.01803, allocations: 149.9 kB / 289.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.01824, allocations: 209.9 kB / 289.9 MB, free: 4.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.01856, allocations: 293.5 kB / 290.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.01856, allocations: 4 kB / 290.2 MB, free: 4.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008011/0.01936, allocations: 0.61 MB / 290.8 MB, free: 3.527 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.01938, allocations: 7.984 kB / 290.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.01938, allocations: 0 / 290.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.02007, allocations: 427.3 kB / 291.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.02028, allocations: 91.83 kB / 291.3 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008528/0.02113, allocations: 1.078 MB / 292.4 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.02144, allocations: 75.91 kB / 292.4 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.02148, allocations: 16 kB / 292.4 MB, free: 1.805 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.0002012/0.02168, allocations: 210.4 kB / 292.7 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.02179, allocations: 75.67 kB / 292.7 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.476e-05/0.02188, allocations: 72.98 kB / 292.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.02188, allocations: 11.94 kB / 292.8 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.02189, allocations: 0 / 292.8 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.02189, allocations: 3.984 kB / 292.8 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.02329, allocations: 1.09 MB / 293.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.0233, allocations: 0 / 293.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.02352, allocations: 83.89 kB / 294 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00064/0.02416, allocations: 427.9 kB / 294.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.165e-05/0.02422, allocations: 27.95 kB / 294.4 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.02503, allocations: 1.086 MB / 295.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.02504, allocations: 3.938 kB / 295.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.02612, allocations: 0.8818 MB / 296.4 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.02631, allocations: 123.5 kB / 296.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.061e-05/0.02639, allocations: 27.88 kB / 296.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.02666, allocations: 79.91 kB / 296.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.02685, allocations: 140.4 kB / 296.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.02689, allocations: 27.95 kB / 296.8 MB, free: 13.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.02702, allocations: 243 kB / 297 MB, free: 13.11 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02702, allocations: 0 / 297 MB, free: 13.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004019/0.02743, allocations: 167.9 kB / 297.2 MB, free: 12.95 MB / 282.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.000828/0.02825, allocations: 368.8 kB / 297.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007541/0.02901, allocations: 484.9 kB / 298 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.02901, allocations: 0 / 298 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003993/0.02941, allocations: 313.7 kB / 298.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.02993, allocations: 179 kB / 298.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.03179, allocations: 1.178 MB / 299.7 MB, free: 10.53 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.709e-05/0.03188, allocations: 138.7 kB / 299.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.03205, allocations: 52.39 kB / 299.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.03235, allocations: 174.1 kB / 300 MB, free: 10.15 MB / 282.7 MB Notification: Performance of SimCode: time 1.563e-06/0.03235, allocations: 0 / 300 MB, free: 10.15 MB / 282.7 MB Notification: Performance of Templates: time 0.01535/0.0477, allocations: 13.15 MB / 313.2 MB, free: 13.16 MB / 298.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.0719840731471777]