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.002369/0.002369, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.00275/0.00275, allocations: 165.3 kB / 24.27 MB, free: 152 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 1.591/1.591, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.222e-06/1.222e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.312e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005159/0.005182, allocations: 3.206 MB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.007524, allocations: 1.216 MB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.007702, allocations: 15.88 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.00803, allocations: 95.08 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004849/0.008515, allocations: 230.3 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005466/0.009062, allocations: 283.4 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.01013, allocations: 0.8695 MB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.01035, allocations: 97.55 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007953/0.01114, allocations: 0.5184 MB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005454/0.01169, allocations: 339.2 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.01182, allocations: 64 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.01208, allocations: 119.9 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002463/0.01233, allocations: 183.4 kB / 279.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.01264, allocations: 239.4 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.01374, allocations: 0.8606 MB / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.01375, allocations: 3.938 kB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01375, allocations: 0 / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.01376, allocations: 0 / 280.6 MB, free: 9.496 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.001944/0.0157, allocations: 0.9704 MB / 281.6 MB, free: 8.488 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.01574, allocations: 8.031 kB / 281.6 MB, free: 8.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.01613, allocations: 124.4 kB / 281.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008696/0.017, allocations: 338.5 kB / 282 MB, free: 8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.01705, allocations: 37.38 kB / 282.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.01716, allocations: 52.33 kB / 282.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.01842, allocations: 0.6211 MB / 282.7 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.01844, allocations: 192 / 282.7 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/0.0185, allocations: 20.12 kB / 282.8 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.01852, allocations: 12 kB / 282.8 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.01984, allocations: 0.5465 MB / 283.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.02241, allocations: 1.258 MB / 284.6 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.02357, allocations: 461.7 kB / 285 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006135/0.02419, allocations: 269.5 kB / 285.3 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.954e-05/0.02425, allocations: 12.66 kB / 285.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.0243, allocations: 46.05 kB / 285.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 2.254e-06/0.0243, allocations: 0 / 285.4 MB, free: 4.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006654/0.03095, allocations: 2.395 MB / 287.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.03101, allocations: 71.94 kB / 287.8 MB, free: 2.066 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/0.03157, allocations: 430.7 kB / 288.2 MB, free: 1.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.03165, allocations: 49.7 kB / 288.3 MB, free: 1.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.03187, allocations: 252.3 kB / 288.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.03215, allocations: 277.9 kB / 288.8 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000564/0.03272, allocations: 156.3 kB / 289 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003463/0.03306, allocations: 0.5508 MB / 289.5 MB, free: 336 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.03372, allocations: 289.8 kB / 289.8 MB, free: 44 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1072/0.1409, allocations: 378 kB / 290.2 MB, free: 27.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009362/0.1418, allocations: 499.6 kB / 290.7 MB, free: 27.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1418, allocations: 1.094 kB / 290.7 MB, free: 27.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001918/0.1438, allocations: 0.9389 MB / 291.6 MB, free: 27.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.1438, allocations: 6.406 kB / 291.6 MB, free: 27.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1438, allocations: 0 / 291.6 MB, free: 27.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001339/0.1451, allocations: 0.5544 MB / 292.2 MB, free: 27.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.1455, allocations: 90.17 kB / 292.2 MB, free: 27.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.1469, allocations: 1.324 MB / 293.6 MB, free: 26.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005788/0.1475, allocations: 88.59 kB / 293.7 MB, free: 26.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.1475, allocations: 27.05 kB / 293.7 MB, free: 26.62 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.0002217/0.1477, allocations: 221.5 kB / 293.9 MB, free: 26.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.1479, allocations: 77.86 kB / 294 MB, free: 26.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.1481, allocations: 78.86 kB / 294 MB, free: 26.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.1481, allocations: 7.406 kB / 294.1 MB, free: 26.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1481, allocations: 1 kB / 294.1 MB, free: 26.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.1481, allocations: 7.219 kB / 294.1 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.1508, allocations: 1.484 MB / 295.5 MB, free: 25.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1508, allocations: 1.125 kB / 295.5 MB, free: 25.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.1512, allocations: 85.22 kB / 295.6 MB, free: 25.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.1524, allocations: 0.5177 MB / 296.1 MB, free: 25.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.471e-05/0.1525, allocations: 28.28 kB / 296.2 MB, free: 25.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.1538, allocations: 1.292 MB / 297.5 MB, free: 24.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1538, allocations: 0.7031 kB / 297.5 MB, free: 24.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.1562, allocations: 1.31 MB / 298.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.1565, allocations: 124.9 kB / 298.9 MB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.1566, allocations: 30.58 kB / 298.9 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.1572, allocations: 72.06 kB / 299 MB, free: 23.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003393/0.1575, allocations: 147.8 kB / 299.1 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.1576, allocations: 33.8 kB / 299.2 MB, free: 23.83 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002538/0.1578, allocations: 290 kB / 299.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1578, allocations: 0 / 299.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005292/0.1584, allocations: 161.9 kB / 299.6 MB, free: 23.63 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.002405/0.1608, allocations: 424.1 kB / 300 MB, free: 23.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.1624, allocations: 0.7487 MB / 300.8 MB, free: 23.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1624, allocations: 0 / 300.8 MB, free: 23.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007985/0.1632, allocations: 427.6 kB / 301.2 MB, free: 23.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.1639, allocations: 172.2 kB / 301.4 MB, free: 23.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.1659, allocations: 1.238 MB / 302.6 MB, free: 22.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.1662, allocations: 265.8 kB / 302.9 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.1663, allocations: 51.56 kB / 302.9 MB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.1665, allocations: 48.52 kB / 303 MB, free: 22.22 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.1665, allocations: 6 kB / 303 MB, free: 22.22 MB / 266.7 MB Notification: Performance of Templates: time 0.01475/0.1812, allocations: 11.83 MB / 314.8 MB, free: 11.67 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.977057593059726]