Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009256/0.0009256, allocations: 84.34 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009567/0.0009567, allocations: 166 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8659/0.8659, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.211e-05/1.317e-05, allocations: 4.312 kB / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003048/0.003061, allocations: 3.195 MB / 277.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.004511, allocations: 1.222 MB / 278.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.004659, allocations: 11.88 kB / 278.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.004915, allocations: 99.08 kB / 278.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.005235, allocations: 234.2 kB / 278.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.0056, allocations: 275.5 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005612/0.006161, allocations: 0.8656 MB / 280 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.00632, allocations: 101.5 kB / 280.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.006796, allocations: 0.5223 MB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.007116, allocations: 339.2 kB / 280.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.12e-05/0.007187, allocations: 64 kB / 281 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.007349, allocations: 119.9 kB / 281.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.007491, allocations: 183.4 kB / 281.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.007661, allocations: 235.4 kB / 281.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000516/0.008177, allocations: 0.6306 MB / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.008179, allocations: 0 / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.008179, allocations: 0 / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.008186, allocations: 0 / 282.2 MB, free: 12.2 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001009/0.009194, allocations: 0.955 MB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.009226, allocations: 8.031 kB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002439/0.00947, allocations: 124.4 kB / 283.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.009809, allocations: 347.2 kB / 283.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.009842, allocations: 37.38 kB / 283.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.009906, allocations: 48.33 kB / 283.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.01043, allocations: 471.9 kB / 284.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.01045, allocations: 12.12 kB / 284.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.01049, allocations: 24.12 kB / 284.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.0105, allocations: 12 kB / 284.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.01087, allocations: 290.6 kB / 284.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.01208, allocations: 1.067 MB / 285.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.01255, allocations: 322.7 kB / 285.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.01272, allocations: 157.5 kB / 286 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.01276, allocations: 12.66 kB / 286 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.01279, allocations: 45.98 kB / 286.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.443e-06/0.01279, allocations: 0 / 286.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002613/0.0154, allocations: 1.732 MB / 287.8 MB, free: 6.371 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.01543, allocations: 64.05 kB / 287.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.01566, allocations: 366.5 kB / 288.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.221e-05/0.01571, allocations: 53.69 kB / 288.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.01582, allocations: 244.3 kB / 288.5 MB, free: 5.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.01597, allocations: 277.7 kB / 288.8 MB, free: 5.352 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.01612, allocations: 140.2 kB / 288.9 MB, free: 5.207 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.01627, allocations: 0.5312 MB / 289.4 MB, free: 4.664 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.01647, allocations: 145.8 kB / 289.6 MB, free: 4.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.01667, allocations: 221.9 kB / 289.8 MB, free: 4.293 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.01698, allocations: 285.6 kB / 290.1 MB, free: 4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.01698, allocations: 0 / 290.1 MB, free: 4 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007564/0.01774, allocations: 0.6178 MB / 290.7 MB, free: 3.375 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.01775, allocations: 4 kB / 290.7 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.01776, allocations: 0 / 290.7 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/0.01839, allocations: 435.2 kB / 291.1 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.01857, allocations: 95.89 kB / 291.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007644/0.01934, allocations: 1.074 MB / 292.3 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.01961, allocations: 79.91 kB / 292.4 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.01964, allocations: 16 kB / 292.4 MB, free: 1.645 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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.0198, allocations: 202.5 kB / 292.6 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.0199, allocations: 75.67 kB / 292.7 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.052e-05/0.01998, allocations: 76.98 kB / 292.7 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.01999, allocations: 15.94 kB / 292.7 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.01999, allocations: 0 / 292.7 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.02, allocations: 3.984 kB / 292.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.02126, allocations: 1.086 MB / 293.8 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.02126, allocations: 0 / 293.8 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.02148, allocations: 83.89 kB / 293.9 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005865/0.02206, allocations: 427.3 kB / 294.3 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.0221, allocations: 35.95 kB / 294.4 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007377/0.02284, allocations: 1.086 MB / 295.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.02284, allocations: 4 kB / 295.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.02384, allocations: 0.8857 MB / 296.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.02401, allocations: 119.5 kB / 296.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.448e-05/0.02408, allocations: 31.94 kB / 296.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.02434, allocations: 71.91 kB / 296.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.02452, allocations: 140.4 kB / 296.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.02455, allocations: 31.95 kB / 296.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001261/0.02468, allocations: 243 kB / 297 MB, free: 12.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02468, allocations: 0 / 297 MB, free: 12.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003259/0.02501, allocations: 159.9 kB / 297.1 MB, free: 12.79 MB / 282.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007276/0.02573, allocations: 375.1 kB / 297.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.02636, allocations: 484.8 kB / 298 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.02636, allocations: 0 / 298 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003641/0.02673, allocations: 309.7 kB / 298.3 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.02718, allocations: 172.8 kB / 298.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.02863, allocations: 1.181 MB / 299.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.52e-05/0.0287, allocations: 134.8 kB / 299.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.02882, allocations: 52.38 kB / 299.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.02905, allocations: 174.1 kB / 300 MB, free: 9.992 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.02905, allocations: 0 / 300 MB, free: 9.992 MB / 282.7 MB Notification: Performance of Templates: time 0.01381/0.04286, allocations: 13.14 MB / 313.1 MB, free: 12.98 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.9907335890457034]