Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009667/0.0009667, allocations: 84 kB / 21.19 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 145.1 kB / 24.54 MB, free: 44 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8822/0.8822, allocations: 173.4 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.377e-05/1.506e-05, allocations: 2.312 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00286/0.002875, allocations: 3.096 MB / 271.1 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.004177, allocations: 1.036 MB / 272.1 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.00432, allocations: 11.94 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.004541, allocations: 75.3 kB / 272.2 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.004803, allocations: 166.5 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.005301, allocations: 299.3 kB / 272.7 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000554/0.005855, allocations: 0.8188 MB / 273.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.006008, allocations: 85.58 kB / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004046/0.006412, allocations: 495 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.006705, allocations: 327.2 kB / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.703e-05/0.006782, allocations: 60.05 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.006927, allocations: 107.9 kB / 274.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.007035, allocations: 159.5 kB / 274.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.007178, allocations: 215.5 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005059/0.007684, allocations: 0.5879 MB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.007687, allocations: 0 / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.007687, allocations: 0 / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.007694, allocations: 0 / 275.5 MB, free: 14.91 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0009586/0.008652, allocations: 0.8853 MB / 276.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.008686, allocations: 8.031 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.008811, allocations: 92.56 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.009131, allocations: 308.2 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.009165, allocations: 33.38 kB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.709e-05/0.009232, allocations: 52.31 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006518/0.009884, allocations: 0.532 MB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.009902, allocations: 12.08 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.009939, allocations: 20.12 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.009951, allocations: 12 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.01047, allocations: 397.7 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.01174, allocations: 1.129 MB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005357/0.01227, allocations: 357.7 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002368/0.01251, allocations: 201.1 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.01255, allocations: 12.5 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.01257, allocations: 41.89 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.783e-06/0.01257, allocations: 0 / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002776/0.01535, allocations: 2.005 MB / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.01538, allocations: 60.06 kB / 281.6 MB, free: 8.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.01559, allocations: 362.2 kB / 282 MB, free: 8.195 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.01563, allocations: 49.69 kB / 282 MB, free: 8.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/0.01573, allocations: 248.2 kB / 282.2 MB, free: 7.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.01585, allocations: 234.1 kB / 282.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.01598, allocations: 136.2 kB / 282.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.0161, allocations: 0.5196 MB / 283.1 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.01638, allocations: 213.9 kB / 283.3 MB, free: 6.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.01667, allocations: 285.5 kB / 283.6 MB, free: 6.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.01708, allocations: 379.4 kB / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01708, allocations: 0 / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008241/0.01791, allocations: 0.7192 MB / 284.7 MB, free: 5.375 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.01792, allocations: 4 kB / 284.7 MB, free: 5.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.01793, allocations: 7.938 kB / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006902/0.01862, allocations: 0.6202 MB / 285.3 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.01882, allocations: 103.8 kB / 285.4 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007716/0.01959, allocations: 1.166 MB / 286.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.01984, allocations: 79.92 kB / 286.7 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.01987, allocations: 23.98 kB / 286.7 MB, free: 3.34 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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.02001, allocations: 194.5 kB / 286.9 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-05/0.02009, allocations: 75.66 kB / 287 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.42e-05/0.02016, allocations: 68.75 kB / 287 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.02016, allocations: 4 kB / 287 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.02016, allocations: 0 / 287 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.02017, allocations: 7.984 kB / 287 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.0215, allocations: 1.229 MB / 288.3 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.0215, allocations: 3.984 kB / 288.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.02172, allocations: 83.89 kB / 288.4 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006131/0.02233, allocations: 0.628 MB / 289 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.02237, allocations: 27.97 kB / 289 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1023/0.1247, allocations: 1.167 MB / 290.2 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1247, allocations: 0 / 290.2 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.1262, allocations: 1.046 MB / 291.2 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.1264, allocations: 115.4 kB / 291.3 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.1264, allocations: 24.86 kB / 291.4 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.1267, allocations: 68.02 kB / 291.4 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.1269, allocations: 141.9 kB / 291.6 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.127, allocations: 29.77 kB / 291.6 MB, free: 29.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.1271, allocations: 241.7 kB / 291.8 MB, free: 29.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1271, allocations: 1.031 kB / 291.8 MB, free: 29.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004871/0.1276, allocations: 160.5 kB / 292 MB, free: 29.5 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002464/0.1279, allocations: 153 kB / 292.1 MB, free: 29.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009988/0.1289, allocations: 0.5806 MB / 292.7 MB, free: 29.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1289, allocations: 0.9688 kB / 292.7 MB, free: 29.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.1294, allocations: 352.8 kB / 293.1 MB, free: 29.35 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.1298, allocations: 131.7 kB / 293.2 MB, free: 29.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.1317, allocations: 1.193 MB / 294.4 MB, free: 28.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.85e-05/0.1318, allocations: 123.7 kB / 294.5 MB, free: 28.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.1319, allocations: 47 kB / 294.6 MB, free: 28.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.132, allocations: 45.27 kB / 294.6 MB, free: 28.7 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/0.132, allocations: 1.469 kB / 294.6 MB, free: 28.7 MB / 266.7 MB Notification: Performance of Templates: time 0.0138/0.1458, allocations: 12.55 MB / 307.1 MB, free: 22.12 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.9145114640705287]