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.001942/0.001942, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.001902/0.001902, allocations: 160.1 kB / 25.03 MB, free: 8.922 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 1.323/1.323, allocations: 158.6 MB / 186.8 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] 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.783e-06/1.783e-06, allocations: 0 / 250.4 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.232e-05/3.41e-05, allocations: 2.312 kB / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005377/0.005411, allocations: 3.051 MB / 253.4 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.008559, allocations: 1.076 MB / 254.5 MB, free: 3.684 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002929/0.008852, allocations: 11.94 kB / 254.5 MB, free: 3.672 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003994/0.009252, allocations: 75.23 kB / 254.6 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005722/0.009824, allocations: 170.5 kB / 254.7 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.01089, allocations: 287.4 kB / 255 MB, free: 3.148 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001332/0.01222, allocations: 0.8227 MB / 255.8 MB, free: 2.32 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000297/0.01252, allocations: 85.58 kB / 255.9 MB, free: 2.23 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.01375, allocations: 495 kB / 256.4 MB, free: 1.746 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007104/0.01446, allocations: 323.3 kB / 256.7 MB, free: 1.43 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.01462, allocations: 60 kB / 256.8 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003137/0.01493, allocations: 115.9 kB / 256.9 MB, free: 1.258 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.01517, allocations: 155.5 kB / 257 MB, free: 1.105 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004054/0.01558, allocations: 219.5 kB / 257.3 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001429/0.01701, allocations: 0.7905 MB / 258.1 MB, free: 100 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.01701, allocations: 0 / 258.1 MB, free: 100 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.01701, allocations: 4 kB / 258.1 MB, free: 96 kB / 234.7 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.01702, allocations: 0 / 258.1 MB, free: 96 kB / 234.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.002686/0.01971, allocations: 0.9202 MB / 259 MB, free: 15.13 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.01976, allocations: 11.98 kB / 259 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.02009, allocations: 92.56 kB / 259.1 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000809/0.0209, allocations: 304.2 kB / 259.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.02098, allocations: 41.36 kB / 259.4 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.02114, allocations: 48.36 kB / 259.5 MB, free: 14.62 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.02288, allocations: 0.6211 MB / 260.1 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.095e-05/0.02292, allocations: 12.14 kB / 260.1 MB, free: 13.97 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.503e-05/0.023, allocations: 24.06 kB / 260.1 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.02302, allocations: 8 kB / 260.1 MB, free: 13.94 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.02483, allocations: 0.566 MB / 260.7 MB, free: 13.38 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.02828, allocations: 1.231 MB / 261.9 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.02961, allocations: 434.1 kB / 262.3 MB, free: 11.67 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006935/0.03031, allocations: 273.1 kB / 262.6 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.723e-05/0.03038, allocations: 8.5 kB / 262.6 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/0.03044, allocations: 45.88 kB / 262.7 MB, free: 11.33 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/0.03045, allocations: 0 / 262.7 MB, free: 11.33 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.008836/0.03928, allocations: 2.4 MB / 265.1 MB, free: 8.875 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.03934, allocations: 64.06 kB / 265.1 MB, free: 8.801 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004892/0.03983, allocations: 406.3 kB / 265.5 MB, free: 8.387 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-05/0.0399, allocations: 45.69 kB / 265.6 MB, free: 8.336 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.04013, allocations: 260.2 kB / 265.8 MB, free: 8.078 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.04038, allocations: 246.1 kB / 266.1 MB, free: 7.836 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002886/0.04067, allocations: 160.2 kB / 266.2 MB, free: 7.672 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003438/0.04101, allocations: 0.5391 MB / 266.8 MB, free: 7.121 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006545/0.04167, allocations: 309.9 kB / 267.1 MB, free: 6.816 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007302/0.0424, allocations: 397.5 kB / 267.5 MB, free: 6.414 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.04345, allocations: 0.5228 MB / 268 MB, free: 5.879 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.04345, allocations: 0 / 268 MB, free: 5.879 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001947/0.0454, allocations: 0.9339 MB / 268.9 MB, free: 4.934 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.04542, allocations: 8 kB / 268.9 MB, free: 4.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.04543, allocations: 3.984 kB / 268.9 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.04684, allocations: 0.7101 MB / 269.6 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.04725, allocations: 95.83 kB / 269.7 MB, free: 4.113 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.04936, allocations: 1.354 MB / 271.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005849/0.04995, allocations: 75.91 kB / 271.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.886e-05/0.05001, allocations: 27.98 kB / 271.2 MB, free: 2.625 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.0003364/0.05035, allocations: 222.5 kB / 271.4 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.05052, allocations: 75.59 kB / 271.5 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002057/0.05073, allocations: 72.75 kB / 271.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.05074, allocations: 4 kB / 271.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.05075, allocations: 4 kB / 271.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.05076, allocations: 3.984 kB / 271.6 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.05388, allocations: 1.479 MB / 273 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.05389, allocations: 3.938 kB / 273 MB, free: 0.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.05432, allocations: 87.89 kB / 273.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.05566, allocations: 0.6827 MB / 273.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-05/0.05573, allocations: 23.97 kB / 273.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.05754, allocations: 1.323 MB / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.05754, allocations: 0 / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.06032, allocations: 1.35 MB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.06066, allocations: 119.6 kB / 276.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.0608, allocations: 31.98 kB / 276.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.06132, allocations: 67.92 kB / 276.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003305/0.06165, allocations: 140.4 kB / 276.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.523e-05/0.06172, allocations: 31.97 kB / 276.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000307/0.06203, allocations: 267 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06203, allocations: 0 / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006104/0.06264, allocations: 160 kB / 277.3 MB, free: 12.38 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.0003141/0.06295, allocations: 147 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.06497, allocations: 0.7585 MB / 278.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.06497, allocations: 0 / 278.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.06591, allocations: 427.1 kB / 278.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.06665, allocations: 137.5 kB / 278.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.06913, allocations: 1.236 MB / 280 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.0694, allocations: 245.6 kB / 280.2 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.06957, allocations: 43.47 kB / 280.3 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.06972, allocations: 44.42 kB / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.06972, allocations: 0 / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of Templates: time 0.02115/0.09087, allocations: 11.48 MB / 291.8 MB, free: 13.85 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.789825059939176]