Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001897/0.001897, allocations: 92.62 kB / 20.96 MB, free: 3.477 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.002171/0.002171, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 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 1.473/1.473, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.795e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004489/0.004517, allocations: 2.827 MB / 270.1 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.00634, allocations: 0.9114 MB / 271.1 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.006489, allocations: 11.94 kB / 271.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.006699, allocations: 71.3 kB / 271.1 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.006975, allocations: 138.8 kB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005417/0.007517, allocations: 235.5 kB / 271.5 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000957/0.008474, allocations: 0.6508 MB / 272.2 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.008663, allocations: 84.7 kB / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000543/0.009206, allocations: 391.2 kB / 272.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003622/0.009568, allocations: 247.4 kB / 272.9 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.966e-05/0.009657, allocations: 48 kB / 272.9 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.009849, allocations: 95.95 kB / 273 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.009997, allocations: 127.5 kB / 273.1 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.01023, allocations: 179.6 kB / 273.3 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007746/0.011, allocations: 0.6425 MB / 273.9 MB, free: 68 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.01101, allocations: 4 kB / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.01101, allocations: 0 / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.01102, allocations: 3.984 kB / 273.9 MB, free: 60 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001434/0.01245, allocations: 0.704 MB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.66e-05/0.01248, allocations: 8.922 kB / 274.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.01266, allocations: 88.55 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.01314, allocations: 272.5 kB / 275 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/0.01318, allocations: 29.38 kB / 275 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.587e-05/0.01327, allocations: 48.33 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009516/0.01423, allocations: 470.9 kB / 275.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.01424, allocations: 4.188 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/0.01429, allocations: 16.38 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.01431, allocations: 15.94 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.01535, allocations: 483.6 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.01738, allocations: 0.9201 MB / 277 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008873/0.01827, allocations: 371.3 kB / 277.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005716/0.01884, allocations: 253.8 kB / 277.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.01889, allocations: 8.5 kB / 277.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.01893, allocations: 43 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.054e-06/0.01893, allocations: 0 / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.005745/0.02468, allocations: 2.049 MB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.02474, allocations: 59.89 kB / 279.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.02506, allocations: 261.8 kB / 280 MB, free: 9.809 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.02513, allocations: 45.69 kB / 280 MB, free: 9.758 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.0253, allocations: 197.4 kB / 280.2 MB, free: 9.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.0255, allocations: 206.4 kB / 280.4 MB, free: 9.355 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.02571, allocations: 106.3 kB / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.02591, allocations: 346.8 kB / 280.9 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005224/0.02643, allocations: 241.2 kB / 281.1 MB, free: 8.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.027, allocations: 288.8 kB / 281.4 MB, free: 8.375 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000868/0.02787, allocations: 414.1 kB / 281.8 MB, free: 7.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.02787, allocations: 0 / 281.8 MB, free: 7.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00189/0.02976, allocations: 0.8069 MB / 282.6 MB, free: 7.141 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.02979, allocations: 4 kB / 282.6 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.0298, allocations: 0 / 282.6 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.0308, allocations: 0.5013 MB / 283.1 MB, free: 6.629 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003696/0.03117, allocations: 91.83 kB / 283.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.03277, allocations: 1.405 MB / 284.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.03328, allocations: 80.06 kB / 284.7 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.03333, allocations: 23.92 kB / 284.7 MB, free: 4.98 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000255/0.03359, allocations: 169.7 kB / 284.9 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.03373, allocations: 59.7 kB / 284.9 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.03388, allocations: 55.61 kB / 285 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.03388, allocations: 8 kB / 285 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.03389, allocations: 0 / 285 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.0339, allocations: 7.969 kB / 285 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.03705, allocations: 1.289 MB / 286.3 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.03706, allocations: 4 kB / 286.3 MB, free: 3.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.03747, allocations: 83.89 kB / 286.4 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008886/0.03835, allocations: 477.5 kB / 286.8 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/0.03841, allocations: 23.98 kB / 286.9 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.03994, allocations: 1.386 MB / 288.3 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.03994, allocations: 0 / 288.3 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.04235, allocations: 1.099 MB / 289.4 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.0426, allocations: 95.67 kB / 289.5 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.0427, allocations: 23.98 kB / 289.5 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.04314, allocations: 51.94 kB / 289.5 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.119/0.1622, allocations: 96.89 kB / 289.6 MB, free: 33.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/0.1623, allocations: 26.45 kB / 289.6 MB, free: 33.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1625, allocations: 186.4 kB / 289.8 MB, free: 33.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1625, allocations: 1.156 kB / 289.8 MB, free: 33.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006493/0.1631, allocations: 134.8 kB / 290 MB, free: 33.2 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002522/0.1634, allocations: 144 kB / 290.1 MB, free: 33.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.1647, allocations: 0.5569 MB / 290.7 MB, free: 33.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1647, allocations: 5.047 kB / 290.7 MB, free: 33.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007099/0.1654, allocations: 327.9 kB / 291 MB, free: 33.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.1661, allocations: 100.4 kB / 291.1 MB, free: 33.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.1694, allocations: 1.303 MB / 292.4 MB, free: 32.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.1696, allocations: 219.4 kB / 292.6 MB, free: 32.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.1698, allocations: 39.48 kB / 292.6 MB, free: 32.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1699, allocations: 38.95 kB / 292.7 MB, free: 32.5 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1699, allocations: 1.281 kB / 292.7 MB, free: 32.5 MB / 266.7 MB Notification: Performance of Templates: time 0.01362/0.1836, allocations: 8.476 MB / 301.2 MB, free: 29.7 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.803148732986301]