Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001004/0.001004, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.000961/0.000961, allocations: 166.4 kB / 25.33 MB, free: 9.035 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9127/0.9127, allocations: 158.6 MB / 187.2 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 251 MB, free: 3.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.108e-05, allocations: 5.406 kB / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003116/0.003137, allocations: 3.092 MB / 254.1 MB, free: 0.5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.004479, allocations: 1.076 MB / 255.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.004617, allocations: 7.938 kB / 255.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.004841, allocations: 75.23 kB / 255.3 MB, free: 15.33 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.005036, allocations: 174.5 kB / 255.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004947/0.00553, allocations: 287.5 kB / 255.7 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005198/0.00605, allocations: 0.8227 MB / 256.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.006216, allocations: 89.56 kB / 256.7 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005124/0.006729, allocations: 495 kB / 257.1 MB, free: 13.47 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.007026, allocations: 327.2 kB / 257.5 MB, free: 13.15 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.007094, allocations: 60 kB / 257.5 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.007246, allocations: 108 kB / 257.6 MB, free: 12.99 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.007362, allocations: 159.4 kB / 257.8 MB, free: 12.83 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.007518, allocations: 211.5 kB / 258 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004829/0.008001, allocations: 0.5801 MB / 258.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.008003, allocations: 0 / 258.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008004, allocations: 4 kB / 258.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.00801, allocations: 4 kB / 258.6 MB, free: 12.04 MB / 250.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.0009446/0.008954, allocations: 0.8852 MB / 259.5 MB, free: 11.11 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.00899, allocations: 11.98 kB / 259.5 MB, free: 11.1 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.00911, allocations: 96.56 kB / 259.6 MB, free: 11.01 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.009433, allocations: 312.2 kB / 259.9 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.009464, allocations: 33.31 kB / 259.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.525e-05/0.009529, allocations: 44.38 kB / 259.9 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.01017, allocations: 0.5359 MB / 260.5 MB, free: 10.05 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.01019, allocations: 4.141 kB / 260.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.49e-05/0.01022, allocations: 24.12 kB / 260.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.01024, allocations: 12 kB / 260.5 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005244/0.01076, allocations: 401.6 kB / 260.9 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.01204, allocations: 1.121 MB / 262 MB, free: 8.449 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.01259, allocations: 342.1 kB / 262.4 MB, free: 8.105 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.01284, allocations: 201.1 kB / 262.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.01289, allocations: 8.5 kB / 262.6 MB, free: 7.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.01291, allocations: 45.83 kB / 262.6 MB, free: 7.84 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 3.196e-06/0.01292, allocations: 7.984 kB / 262.6 MB, free: 7.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.003222/0.01614, allocations: 2.009 MB / 264.6 MB, free: 5.766 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.01617, allocations: 60.06 kB / 264.7 MB, free: 5.695 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.01641, allocations: 362.2 kB / 265 MB, free: 5.324 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.01645, allocations: 45.7 kB / 265.1 MB, free: 5.273 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.01655, allocations: 256.1 kB / 265.3 MB, free: 5.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.01669, allocations: 234.1 kB / 265.6 MB, free: 4.789 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.01684, allocations: 136.3 kB / 265.7 MB, free: 4.648 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.01697, allocations: 0.5196 MB / 266.2 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.01727, allocations: 213.9 kB / 266.4 MB, free: 3.906 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.01759, allocations: 285.5 kB / 266.7 MB, free: 3.617 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.01804, allocations: 383.4 kB / 267.1 MB, free: 3.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01804, allocations: 0 / 267.1 MB, free: 3.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.000969/0.01901, allocations: 0.7114 MB / 267.8 MB, free: 2.508 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.01903, allocations: 10.66 kB / 267.8 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.01903, allocations: 0 / 267.8 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009868/0.02002, allocations: 0.6242 MB / 268.4 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.02031, allocations: 99.83 kB / 268.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.02138, allocations: 1.159 MB / 269.7 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.02173, allocations: 79.91 kB / 269.8 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.02178, allocations: 20 kB / 269.8 MB, free: 496 kB / 250.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.0001792/0.02196, allocations: 202.5 kB / 270 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.02208, allocations: 75.61 kB / 270.1 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-05/0.02217, allocations: 72.75 kB / 270.1 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.02217, allocations: 4 kB / 270.1 MB, free: 124 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.02218, allocations: 0 / 270.1 MB, free: 124 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.02218, allocations: 7.984 kB / 270.1 MB, free: 116 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.02431, allocations: 1.233 MB / 271.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.02432, allocations: 0 / 271.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.02462, allocations: 87.89 kB / 271.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008605/0.02548, allocations: 0.6202 MB / 272.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.181e-05/0.02553, allocations: 31.97 kB / 272.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009917/0.02652, allocations: 1.175 MB / 273.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.02652, allocations: 0 / 273.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.02814, allocations: 1.065 MB / 274.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.02835, allocations: 115.6 kB / 274.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.823e-05/0.02842, allocations: 20 kB / 274.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.02875, allocations: 67.91 kB / 274.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.02899, allocations: 136.4 kB / 274.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.752e-05/0.02904, allocations: 27.97 kB / 274.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.02921, allocations: 251 kB / 274.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02921, allocations: 0 / 274.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004464/0.02966, allocations: 152 kB / 275.1 MB, free: 11.04 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.000215/0.02987, allocations: 153.3 kB / 275.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.03088, allocations: 0.5867 MB / 275.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.03088, allocations: 0 / 275.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.03142, allocations: 343.1 kB / 276.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.03196, allocations: 129.3 kB / 276.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.03402, allocations: 1.188 MB / 277.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.15e-05/0.03411, allocations: 126.6 kB / 277.6 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.03426, allocations: 59.38 kB / 277.7 MB, free: 8.418 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.03438, allocations: 44.48 kB / 277.7 MB, free: 8.371 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.03438, allocations: 0 / 277.7 MB, free: 8.371 MB / 266.7 MB Notification: Performance of Templates: time 0.01557/0.04995, allocations: 11.54 MB / 289.2 MB, free: 12.83 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.161516801919788]