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.0009081/0.0009081, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001056/0.001056, allocations: 163.1 kB / 25.69 MB, free: 8.449 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.9108/0.9108, allocations: 158.6 MB / 187.6 MB, free: 2.793 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 2.014e-06/2.014e-06, allocations: 3.984 kB / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.358e-05, allocations: 6.312 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002701/0.002714, allocations: 3.054 MB / 254.6 MB, free: 4.207 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.004031, allocations: 1.099 MB / 255.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.004161, allocations: 11.94 kB / 255.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.004353, allocations: 79.17 kB / 255.8 MB, free: 3.008 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.004547, allocations: 166.6 kB / 255.9 MB, free: 2.844 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.005004, allocations: 287.4 kB / 256.2 MB, free: 2.562 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.005525, allocations: 0.8227 MB / 257 MB, free: 1.734 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.005703, allocations: 98.2 kB / 257.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004405/0.006143, allocations: 495 kB / 257.6 MB, free: 1.145 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.006438, allocations: 323.2 kB / 257.9 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-05/0.006505, allocations: 56 kB / 258 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.006644, allocations: 111.9 kB / 258.1 MB, free: 0.6641 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.006755, allocations: 159.5 kB / 258.2 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.006904, allocations: 219.5 kB / 258.5 MB, free: 300 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.007365, allocations: 0.5762 MB / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.007367, allocations: 0 / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.007368, allocations: 0 / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.007372, allocations: 4 kB / 259 MB, free: 15.71 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.0008167/0.008189, allocations: 0.7565 MB / 259.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.008218, allocations: 19.98 kB / 259.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.606e-05/0.008314, allocations: 72.88 kB / 259.9 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.008577, allocations: 253.5 kB / 260.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.008606, allocations: 37.38 kB / 260.2 MB, free: 14.54 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.008668, allocations: 48.36 kB / 260.2 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004624/0.00913, allocations: 479 kB / 260.7 MB, free: 14.01 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.009146, allocations: 4.141 kB / 260.7 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.009177, allocations: 24.12 kB / 260.7 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.009186, allocations: 12 kB / 260.7 MB, free: 13.97 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.009488, allocations: 250.8 kB / 261 MB, free: 13.72 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009838/0.01047, allocations: 0.8073 MB / 261.8 MB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003744/0.01085, allocations: 261.6 kB / 262 MB, free: 12.63 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.01099, allocations: 134.2 kB / 262.2 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.885e-05/0.01103, allocations: 12.5 kB / 262.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.01106, allocations: 39.05 kB / 262.2 MB, free: 12.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 1.403e-06/0.01106, allocations: 4 kB / 262.2 MB, free: 12.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.002242/0.0133, allocations: 1.581 MB / 263.8 MB, free: 10.8 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.01333, allocations: 60.06 kB / 263.9 MB, free: 10.73 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.0135, allocations: 290.8 kB / 264.1 MB, free: 10.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.01355, allocations: 49.69 kB / 264.2 MB, free: 10.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.476e-05/0.01363, allocations: 174 kB / 264.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.01376, allocations: 238 kB / 264.6 MB, free: 9.969 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.01389, allocations: 126.5 kB / 264.7 MB, free: 9.84 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.014, allocations: 362.7 kB / 265.1 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.01418, allocations: 125.9 kB / 265.2 MB, free: 9.352 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.01436, allocations: 193.1 kB / 265.4 MB, free: 9.152 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.01464, allocations: 298.7 kB / 265.7 MB, free: 8.855 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01464, allocations: 0 / 265.7 MB, free: 8.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0005258/0.01517, allocations: 481.9 kB / 266.1 MB, free: 8.375 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.01518, allocations: 8 kB / 266.2 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.01519, allocations: 0 / 266.2 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.01582, allocations: 0.5706 MB / 266.7 MB, free: 7.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.01601, allocations: 99.88 kB / 266.8 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005876/0.0166, allocations: 0.7863 MB / 267.6 MB, free: 6.883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.01682, allocations: 83.91 kB / 267.7 MB, free: 6.801 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.01685, allocations: 19.98 kB / 267.7 MB, free: 6.781 MB / 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.0001309/0.01698, allocations: 150.5 kB / 267.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.724e-05/0.01705, allocations: 47.95 kB / 267.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.501e-05/0.01711, allocations: 68.75 kB / 268 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.01712, allocations: 8 kB / 268 MB, free: 6.496 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01712, allocations: 3.938 kB / 268 MB, free: 6.492 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.01713, allocations: 7.984 kB / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009429/0.01807, allocations: 0.7983 MB / 268.8 MB, free: 5.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01807, allocations: 0 / 268.8 MB, free: 5.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.01827, allocations: 83.89 kB / 268.9 MB, free: 5.578 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005556/0.01883, allocations: 0.5784 MB / 269.4 MB, free: 4.996 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.01886, allocations: 19.97 kB / 269.5 MB, free: 4.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005289/0.01939, allocations: 0.7942 MB / 270.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01939, allocations: 0 / 270.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.02014, allocations: 0.7337 MB / 271 MB, free: 3.398 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.02027, allocations: 71.67 kB / 271.1 MB, free: 3.328 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.02033, allocations: 24 kB / 271.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.02053, allocations: 71.91 kB / 271.2 MB, free: 3.234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.02069, allocations: 136.3 kB / 271.3 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.02072, allocations: 23.97 kB / 271.3 MB, free: 3.078 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.999e-05/0.02079, allocations: 108.6 kB / 271.4 MB, free: 2.969 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02079, allocations: 0 / 271.4 MB, free: 2.969 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002773/0.02106, allocations: 164 kB / 271.6 MB, free: 2.809 MB / 250.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.0001694/0.02123, allocations: 132.3 kB / 271.7 MB, free: 2.668 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005207/0.02175, allocations: 433.8 kB / 272.1 MB, free: 2.246 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.02176, allocations: 4 kB / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.02205, allocations: 280.4 kB / 272.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.02237, allocations: 117.6 kB / 272.5 MB, free: 1.852 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.02368, allocations: 1.027 MB / 273.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.707e-05/0.02374, allocations: 126.6 kB / 273.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.91e-05/0.02384, allocations: 47.44 kB / 273.7 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.02402, allocations: 139.2 kB / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of SimCode: time 4.41e-07/0.02402, allocations: 0 / 273.9 MB, free: 488 kB / 250.7 MB Notification: Performance of Templates: time 0.01233/0.03635, allocations: 12.54 MB / 286.4 MB, free: 3.953 MB / 266.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: 2.855715804733336]