Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.00107/0.00107, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001139/0.001139, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9781/0.9781, allocations: 177 MB / 204.8 MB, free: 5.598 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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.179e-05/2.313e-05, allocations: 9.203 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003591/0.003614, allocations: 3.175 MB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.005456, allocations: 1.107 MB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.00563, allocations: 11.94 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.005947, allocations: 91.09 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.006304, allocations: 190.5 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.006651, allocations: 215.6 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005072/0.007158, allocations: 0.6898 MB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.007352, allocations: 88.67 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005322/0.007884, allocations: 419.1 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.008167, allocations: 255.4 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.008231, allocations: 52 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.008386, allocations: 107.9 kB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.008516, allocations: 143.5 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.008658, allocations: 191.5 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.009151, allocations: 0.506 MB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.009154, allocations: 0 / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.009155, allocations: 0 / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.009162, allocations: 0 / 280.1 MB, free: 10.23 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.000914/0.01008, allocations: 0.8347 MB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.01011, allocations: 11.98 kB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.0103, allocations: 104.5 kB / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.01062, allocations: 312.8 kB / 281.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.01066, allocations: 33.38 kB / 281.4 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.066e-05/0.01072, allocations: 40.38 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.01121, allocations: 378.9 kB / 281.8 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.01123, allocations: 4.141 kB / 281.8 MB, free: 8.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.01127, allocations: 20.36 kB / 281.8 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.01128, allocations: 11.94 kB / 281.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.01172, allocations: 289.7 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.01301, allocations: 0.9076 MB / 283 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.01352, allocations: 317.1 kB / 283.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004014/0.01392, allocations: 173 kB / 283.5 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.019e-05/0.01396, allocations: 8.5 kB / 283.5 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.014, allocations: 41.89 kB / 283.6 MB, free: 6.633 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.224e-06/0.014, allocations: 4 kB / 283.6 MB, free: 6.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002451/0.01645, allocations: 1.615 MB / 285.2 MB, free: 4.949 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.01648, allocations: 55.91 kB / 285.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.0167, allocations: 322.3 kB / 285.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.01673, allocations: 37.7 kB / 285.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.01684, allocations: 236.3 kB / 285.8 MB, free: 4.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.01697, allocations: 218.2 kB / 286 MB, free: 4.055 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.01709, allocations: 108 kB / 286.1 MB, free: 3.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.01723, allocations: 0.5273 MB / 286.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.01745, allocations: 153.2 kB / 286.8 MB, free: 3.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.01768, allocations: 186.5 kB / 287 MB, free: 3.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.01804, allocations: 267.8 kB / 287.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.01804, allocations: 4 kB / 287.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009872/0.01903, allocations: 0.586 MB / 287.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.01905, allocations: 6.656 kB / 287.9 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.01906, allocations: 0 / 287.9 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005895/0.01965, allocations: 307 kB / 288.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.01985, allocations: 79.91 kB / 288.2 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1433/0.1632, allocations: 1.757 MB / 290 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004014/0.1636, allocations: 60.89 kB / 290 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.1636, allocations: 16.28 kB / 290.1 MB, free: 24.55 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.1638, allocations: 187.2 kB / 290.2 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.1639, allocations: 63.23 kB / 290.3 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.234e-05/0.164, allocations: 58.78 kB / 290.4 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.164, allocations: 9.875 kB / 290.4 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.164, allocations: 2.344 kB / 290.4 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.164, allocations: 4 kB / 290.4 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.1659, allocations: 1.144 MB / 291.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1659, allocations: 1.25 kB / 291.5 MB, free: 24.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002704/0.1662, allocations: 82.92 kB / 291.6 MB, free: 24.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005454/0.1667, allocations: 287.9 kB / 291.9 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.1668, allocations: 22.12 kB / 291.9 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000775/0.1675, allocations: 1.768 MB / 293.7 MB, free: 22.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1675, allocations: 1.812 kB / 293.7 MB, free: 22.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.1687, allocations: 0.8516 MB / 294.5 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.1689, allocations: 94.62 kB / 294.6 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.169, allocations: 19.42 kB / 294.6 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.1692, allocations: 49.91 kB / 294.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.1694, allocations: 98.42 kB / 294.8 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.1695, allocations: 27.77 kB / 294.8 MB, free: 22.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001515/0.1696, allocations: 221.5 kB / 295 MB, free: 21.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1696, allocations: 0 / 295 MB, free: 21.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004422/0.1701, allocations: 126.1 kB / 295.2 MB, free: 21.99 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008885/0.171, allocations: 374.9 kB / 295.5 MB, free: 21.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008807/0.1718, allocations: 423.3 kB / 295.9 MB, free: 21.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.1718, allocations: 4.062 kB / 295.9 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.1723, allocations: 252.9 kB / 296.2 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.1728, allocations: 120.3 kB / 296.3 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.1753, allocations: 1.241 MB / 297.5 MB, free: 21.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.1754, allocations: 120.1 kB / 297.7 MB, free: 21.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.1755, allocations: 45.39 kB / 297.7 MB, free: 21.17 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.1756, allocations: 46.45 kB / 297.7 MB, free: 21.16 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1756, allocations: 0 / 297.7 MB, free: 21.16 MB / 266.7 MB Notification: Performance of Templates: time 0.01077/0.1864, allocations: 8.692 MB / 306.4 MB, free: 18.01 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.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.2822347353212535]