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.00142/0.00142, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001097/0.001097, allocations: 145.1 kB / 25.59 MB, free: 8.941 MB / 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.9779/0.9779, allocations: 173.4 MB / 202.2 MB, free: 8.305 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 2.324e-06/2.324e-06, allocations: 4 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.249e-05/2.482e-05, allocations: 5.375 kB / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00331/0.003335, allocations: 3.042 MB / 272.2 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.00502, allocations: 1.029 MB / 273.3 MB, free: 5.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.00522, allocations: 8.938 kB / 273.3 MB, free: 5.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.005467, allocations: 75.28 kB / 273.3 MB, free: 5.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.005719, allocations: 176.4 kB / 273.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.006346, allocations: 287.4 kB / 273.8 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006652/0.007011, allocations: 0.815 MB / 274.6 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.007191, allocations: 89.56 kB / 274.7 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005873/0.007778, allocations: 0.4912 MB / 275.2 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003554/0.008133, allocations: 319.3 kB / 275.5 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.526e-05/0.008209, allocations: 60 kB / 275.6 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.008403, allocations: 112 kB / 275.7 MB, free: 3.305 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.008524, allocations: 159.5 kB / 275.8 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.008685, allocations: 219.5 kB / 276 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.009246, allocations: 0.58 MB / 276.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.009249, allocations: 0 / 276.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.009251, allocations: 0 / 276.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.009262, allocations: 0 / 276.6 MB, free: 2.352 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.001051/0.01031, allocations: 0.8891 MB / 277.5 MB, free: 1.426 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.01035, allocations: 8.922 kB / 277.5 MB, free: 1.418 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.01049, allocations: 96.61 kB / 277.6 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.01085, allocations: 304.2 kB / 277.9 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.01089, allocations: 33.38 kB / 277.9 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.01096, allocations: 52.31 kB / 278 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005812/0.01154, allocations: 480.7 kB / 278.5 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.01156, allocations: 8.078 kB / 278.5 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.0116, allocations: 20.12 kB / 278.5 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.01161, allocations: 12 kB / 278.5 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003715/0.01198, allocations: 294.7 kB / 278.8 MB, free: 100 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.01327, allocations: 1.067 MB / 279.9 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004927/0.01377, allocations: 301.9 kB / 280.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.01395, allocations: 161.1 kB / 280.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.01399, allocations: 12.5 kB / 280.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.01402, allocations: 41.88 kB / 280.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.734e-06/0.01402, allocations: 0 / 280.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002651/0.01667, allocations: 1.674 MB / 282 MB, free: 12.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.01671, allocations: 60.06 kB / 282.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/0.01693, allocations: 350.1 kB / 282.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.01698, allocations: 45.7 kB / 282.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.01711, allocations: 252.2 kB / 282.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.01725, allocations: 234.1 kB / 283 MB, free: 11.78 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.0174, allocations: 136.2 kB / 283.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.01754, allocations: 0.5312 MB / 283.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.01775, allocations: 153.9 kB / 283.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.01797, allocations: 229.4 kB / 284 MB, free: 10.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.01829, allocations: 295.4 kB / 284.3 MB, free: 10.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01829, allocations: 4 kB / 284.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0007366/0.01903, allocations: 0.5825 MB / 284.9 MB, free: 9.809 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.01905, allocations: 4 kB / 284.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.01906, allocations: 8.031 kB / 284.9 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000697/0.01976, allocations: 0.5967 MB / 285.5 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.01997, allocations: 91.89 kB / 285.6 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007764/0.02075, allocations: 1.098 MB / 286.7 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.02103, allocations: 67.92 kB / 286.7 MB, free: 7.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.02107, allocations: 28.06 kB / 286.8 MB, free: 7.883 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.0001689/0.02124, allocations: 198.5 kB / 286.9 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.382e-05/0.02133, allocations: 71.66 kB / 287 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/0.02141, allocations: 68.75 kB / 287.1 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.02141, allocations: 4 kB / 287.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.02142, allocations: 4 kB / 287.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.02142, allocations: 3.984 kB / 287.1 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.0227, allocations: 1.065 MB / 288.2 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.0227, allocations: 0 / 288.2 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.02293, allocations: 87.89 kB / 288.2 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006269/0.02355, allocations: 0.5968 MB / 288.8 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.0236, allocations: 31.89 kB / 288.9 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007274/0.02432, allocations: 1.105 MB / 290 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.02433, allocations: 0 / 290 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.02533, allocations: 0.9006 MB / 290.9 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.0255, allocations: 103.6 kB / 291 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.02557, allocations: 24 kB / 291 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.0258, allocations: 75.91 kB / 291.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.02598, allocations: 136.3 kB / 291.2 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-05/0.02602, allocations: 31.95 kB / 291.2 MB, free: 3.277 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.02612, allocations: 218.9 kB / 291.5 MB, free: 3.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02612, allocations: 0 / 291.5 MB, free: 3.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.02649, allocations: 160 kB / 291.6 MB, free: 2.91 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.0001882/0.02668, allocations: 155.1 kB / 291.8 MB, free: 2.746 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006453/0.02732, allocations: 480.9 kB / 292.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.02733, allocations: 0 / 292.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/0.02768, allocations: 311.7 kB / 292.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.02812, allocations: 127.3 kB / 292.7 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.02969, allocations: 1.174 MB / 293.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.542e-05/0.02976, allocations: 122.8 kB / 294 MB, free: 0.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.02988, allocations: 43.44 kB / 294 MB, free: 468 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.0301, allocations: 166.1 kB / 294.2 MB, free: 300 kB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.0301, allocations: 0 / 294.2 MB, free: 300 kB / 266.7 MB Notification: Performance of Templates: time 0.01456/0.04465, allocations: 12.93 MB / 307.1 MB, free: 3.496 MB / 282.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: 3.0319685991853476]