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.0009741/0.0009741, allocations: 84.3 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.001009/0.001009, allocations: 168.4 kB / 25.61 MB, free: 8.895 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.8475/0.8475, allocations: 158.6 MB / 187.5 MB, free: 2.77 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.803e-06/1.803e-06, allocations: 0 / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.839e-05, allocations: 2.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007486/0.007505, allocations: 3.045 MB / 254.5 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.01248, allocations: 1.064 MB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.01268, allocations: 7.938 kB / 255.6 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.01291, allocations: 83.16 kB / 255.7 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.01318, allocations: 162.6 kB / 255.8 MB, free: 2.855 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005908/0.01377, allocations: 299.3 kB / 256.1 MB, free: 2.562 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003752/0.01752, allocations: 0.815 MB / 256.9 MB, free: 1.742 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.01772, allocations: 93.55 kB / 257 MB, free: 1.645 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006014/0.01832, allocations: 491 kB / 257.5 MB, free: 1.164 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003547/0.01867, allocations: 335.2 kB / 257.8 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.094e-05/0.01876, allocations: 60 kB / 257.9 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.01894, allocations: 104 kB / 258 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.01906, allocations: 155.5 kB / 258.1 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.01924, allocations: 223.5 kB / 258.4 MB, free: 312 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005654/0.01981, allocations: 0.5764 MB / 258.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.01981, allocations: 0 / 258.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.01981, allocations: 0 / 258.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.01982, allocations: 0 / 258.9 MB, free: 15.72 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.004144/0.02396, allocations: 0.8967 MB / 259.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.024, allocations: 11.98 kB / 259.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.02414, allocations: 96.56 kB / 259.9 MB, free: 14.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.0245, allocations: 312.2 kB / 260.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.02453, allocations: 33.38 kB / 260.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/0.02461, allocations: 44.38 kB / 260.3 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.02523, allocations: 476.7 kB / 260.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.02525, allocations: 8.141 kB / 260.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.02529, allocations: 24.12 kB / 260.8 MB, free: 13.76 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.02531, allocations: 8 kB / 260.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.02576, allocations: 302.7 kB / 261.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004492/0.03025, allocations: 1.063 MB / 262.2 MB, free: 12.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.03076, allocations: 298 kB / 262.5 MB, free: 12.06 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.0312, allocations: 157.1 kB / 262.6 MB, free: 11.9 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.03124, allocations: 8.5 kB / 262.6 MB, free: 11.89 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.03126, allocations: 45.88 kB / 262.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 1.813e-06/0.03127, allocations: 0 / 262.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.005987/0.03725, allocations: 1.686 MB / 264.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.03728, allocations: 56.06 kB / 264.4 MB, free: 10.03 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.03751, allocations: 346.1 kB / 264.8 MB, free: 9.672 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.03756, allocations: 41.7 kB / 264.8 MB, free: 9.625 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.03768, allocations: 256.2 kB / 265 MB, free: 9.371 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.03783, allocations: 234.1 kB / 265.3 MB, free: 9.141 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.03801, allocations: 136.1 kB / 265.4 MB, free: 9 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.003184/0.0412, allocations: 0.5351 MB / 265.9 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.04149, allocations: 149.9 kB / 266.1 MB, free: 8.305 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002671/0.04176, allocations: 229.5 kB / 266.3 MB, free: 8.066 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.04215, allocations: 295.4 kB / 266.6 MB, free: 7.766 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.04215, allocations: 0 / 266.6 MB, free: 7.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.000847/0.043, allocations: 0.5825 MB / 267.2 MB, free: 7.172 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.04302, allocations: 8 kB / 267.2 MB, free: 7.164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.04302, allocations: 0 / 267.2 MB, free: 7.164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008323/0.04385, allocations: 0.5968 MB / 267.8 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.04516, allocations: 99.89 kB / 267.9 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007381/0.04589, allocations: 1.089 MB / 269 MB, free: 5.344 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.04614, allocations: 79.91 kB / 269.1 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.04617, allocations: 19.98 kB / 269.1 MB, free: 5.246 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.0001427/0.04631, allocations: 206.4 kB / 269.3 MB, free: 5.031 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.27e-05/0.04639, allocations: 75.61 kB / 269.3 MB, free: 4.957 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.89e-05/0.04646, allocations: 64.75 kB / 269.4 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.04646, allocations: 4 kB / 269.4 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.04647, allocations: 7.984 kB / 269.4 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.04647, allocations: 0 / 269.4 MB, free: 4.879 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.04767, allocations: 1.077 MB / 270.5 MB, free: 3.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.04767, allocations: 0 / 270.5 MB, free: 3.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.04787, allocations: 83.89 kB / 270.6 MB, free: 3.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005686/0.04844, allocations: 0.5968 MB / 271.2 MB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.04847, allocations: 27.91 kB / 271.2 MB, free: 3.055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000755/0.04922, allocations: 1.096 MB / 272.3 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.04922, allocations: 8 kB / 272.3 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.05012, allocations: 0.9045 MB / 273.2 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.05026, allocations: 111.6 kB / 273.3 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.955e-05/0.05032, allocations: 24 kB / 273.3 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.05053, allocations: 75.91 kB / 273.4 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.05068, allocations: 132.4 kB / 273.6 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.05071, allocations: 23.97 kB / 273.6 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.957e-05/0.05081, allocations: 230.9 kB / 273.8 MB, free: 416 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05081, allocations: 0 / 273.8 MB, free: 416 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003052/0.05112, allocations: 160 kB / 274 MB, free: 256 kB / 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.0001603/0.05128, allocations: 155.1 kB / 274.1 MB, free: 92 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005451/0.05182, allocations: 484.5 kB / 274.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.05182, allocations: 0 / 274.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.05213, allocations: 299.2 kB / 274.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.05278, allocations: 132.9 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.05426, allocations: 1.162 MB / 276.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.16e-05/0.05433, allocations: 130.6 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.05443, allocations: 43.45 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.05462, allocations: 166.1 kB / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.05462, allocations: 0 / 276.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of Templates: time 0.01412/0.06874, allocations: 12.72 MB / 289.2 MB, free: 0.9531 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.831438273191452]