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.001/0.001, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00103/0.00203, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001052/0.001052, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001095/0.002147, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9229/0.9229, allocations: 177.5 MB / 190 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08385/1.007, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.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.362e-06/1.362e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/2.083e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003122/0.003143, allocations: 3.246 MB / 248.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.004954, allocations: 1.27 MB / 249.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.00512, allocations: 11.88 kB / 249.7 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.005325, allocations: 99.09 kB / 249.8 MB, free: 8.945 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003188/0.005644, allocations: 242.1 kB / 250.1 MB, free: 8.707 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.006073, allocations: 275.5 kB / 250.3 MB, free: 8.438 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006016/0.006674, allocations: 0.8618 MB / 251.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.006853, allocations: 94.2 kB / 251.3 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006082/0.007461, allocations: 0.5683 MB / 251.9 MB, free: 6.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.007823, allocations: 339.2 kB / 252.2 MB, free: 6.578 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.437e-05/0.007897, allocations: 64 kB / 252.2 MB, free: 6.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.008091, allocations: 127.9 kB / 252.4 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.008205, allocations: 123.6 kB / 252.5 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.008337, allocations: 171.7 kB / 252.7 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.008829, allocations: 0.5371 MB / 253.2 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.008839, allocations: 0 / 253.2 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.00884, allocations: 4 kB / 253.2 MB, free: 5.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.008856, allocations: 0 / 253.2 MB, free: 5.559 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0009994/0.009856, allocations: 0.9626 MB / 254.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.009884, allocations: 8.922 kB / 254.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.01011, allocations: 170 kB / 254.3 MB, free: 4.375 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.01047, allocations: 292.5 kB / 254.6 MB, free: 4.062 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.0105, allocations: 37.38 kB / 254.7 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.968e-05/0.01056, allocations: 48.33 kB / 254.7 MB, free: 3.977 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.01103, allocations: 474.2 kB / 255.2 MB, free: 3.504 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.01105, allocations: 8.141 kB / 255.2 MB, free: 3.496 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.01108, allocations: 24.12 kB / 255.2 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.01109, allocations: 12 kB / 255.2 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002996/0.01139, allocations: 242.8 kB / 255.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.01248, allocations: 0.8097 MB / 256.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.0129, allocations: 290.2 kB / 256.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.01304, allocations: 138.8 kB / 256.7 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.01309, allocations: 8.656 kB / 256.7 MB, free: 1.953 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.01311, allocations: 47.16 kB / 256.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 1.694e-06/0.01311, allocations: 0 / 256.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.002329/0.01544, allocations: 1.701 MB / 258.4 MB, free: 152 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.01547, allocations: 60.06 kB / 258.5 MB, free: 80 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.01566, allocations: 317 kB / 258.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.635e-05/0.01571, allocations: 49.7 kB / 258.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.01577, allocations: 170.2 kB / 259 MB, free: 15.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.0159, allocations: 265.8 kB / 259.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.01603, allocations: 134.5 kB / 259.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.577e-05/0.01611, allocations: 366.6 kB / 259.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.01627, allocations: 118 kB / 259.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.01643, allocations: 185.5 kB / 260.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.01669, allocations: 303.7 kB / 260.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.0167, allocations: 3.984 kB / 260.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005668/0.01726, allocations: 488.1 kB / 260.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.01728, allocations: 8 kB / 260.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01728, allocations: 0 / 260.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.0178, allocations: 400.6 kB / 261.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.01799, allocations: 99.89 kB / 261.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005859/0.01857, allocations: 0.782 MB / 262.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.01882, allocations: 79.91 kB / 262.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.01885, allocations: 12 kB / 262.2 MB, free: 12.26 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.0001313/0.01898, allocations: 154.6 kB / 262.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.329e-05/0.01905, allocations: 55.95 kB / 262.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.01912, allocations: 72.98 kB / 262.5 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.01913, allocations: 12 kB / 262.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.01913, allocations: 3.938 kB / 262.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.01914, allocations: 3.984 kB / 262.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000975/0.02011, allocations: 0.8147 MB / 263.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.02012, allocations: 0 / 263.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.02033, allocations: 107.9 kB / 263.4 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.02046, allocations: 83.61 kB / 263.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004549/0.02092, allocations: 396.5 kB / 263.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.327e-05/0.02096, allocations: 27.91 kB / 263.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005518/0.02151, allocations: 0.7725 MB / 264.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.02152, allocations: 0 / 264.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.02228, allocations: 0.7205 MB / 265.4 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.02235, allocations: 27.94 kB / 265.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.0226, allocations: 75.91 kB / 265.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.02277, allocations: 136.4 kB / 265.6 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.0228, allocations: 23.97 kB / 265.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.311e-05/0.0229, allocations: 124.7 kB / 265.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0229, allocations: 4 kB / 265.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003253/0.02322, allocations: 159.9 kB / 266 MB, free: 8.422 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001014/0.02423, allocations: 0.4985 MB / 266.4 MB, free: 8.105 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.02482, allocations: 447.2 kB / 266.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/0.02483, allocations: 4 kB / 266.9 MB, free: 7.664 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.02518, allocations: 314.1 kB / 267.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005972/0.02578, allocations: 0.8889 MB / 268.1 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.02974, allocations: 1.009 MB / 269.1 MB, free: 5.262 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.998e-05/0.02982, allocations: 138.8 kB / 269.2 MB, free: 5.105 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000153/0.02997, allocations: 56.41 kB / 269.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.03019, allocations: 157.3 kB / 269.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.03019, allocations: 0 / 269.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of Templates: time 0.1396/0.1698, allocations: 12.96 MB / 282.4 MB, free: 20.93 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.953542840667069]