Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.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.0009357/0.0009357, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001017/0.001017, allocations: 158.7 kB / 24.99 MB, free: 8.223 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.9442/0.9442, allocations: 177 MB / 205.2 MB, free: 5.594 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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.291e-05, allocations: 2.312 kB / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.0053/0.005323, allocations: 3.1 MB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.007847, allocations: 1.309 MB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.00812, allocations: 7.938 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005776/0.008697, allocations: 107.1 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003004/0.008998, allocations: 118.9 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.01005, allocations: 439 kB / 278 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000925/0.01097, allocations: 0.8307 MB / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.01118, allocations: 81.59 kB / 279 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008236/0.012, allocations: 0.4991 MB / 279.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001639/0.01364, allocations: 1.412 MB / 280.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.01378, allocations: 68 kB / 280.9 MB, free: 9.773 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.01406, allocations: 123.9 kB / 281.1 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.01431, allocations: 247.8 kB / 281.3 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.0146, allocations: 247.3 kB / 281.5 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009618/0.01556, allocations: 0.7281 MB / 282.3 MB, free: 8.438 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.01557, allocations: 0 / 282.3 MB, free: 8.438 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01557, allocations: 0 / 282.3 MB, free: 8.438 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.01558, allocations: 0 / 282.3 MB, free: 8.438 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002532/0.01811, allocations: 1.417 MB / 283.7 MB, free: 6.965 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.01816, allocations: 11.98 kB / 283.7 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005203/0.01868, allocations: 140.3 kB / 283.8 MB, free: 6.816 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005718/0.01925, allocations: 388.3 kB / 284.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.0193, allocations: 29.38 kB / 284.2 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.01941, allocations: 36.38 kB / 284.3 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.02056, allocations: 0.5237 MB / 284.8 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.02059, allocations: 12.12 kB / 284.8 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.02066, allocations: 20.11 kB / 284.8 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/0.02068, allocations: 15.94 kB / 284.8 MB, free: 5.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009515/0.02163, allocations: 379.3 kB / 285.2 MB, free: 5.387 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002643/0.02427, allocations: 1.413 MB / 286.6 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.02483, allocations: 329.8 kB / 286.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.02506, allocations: 143.6 kB / 287.1 MB, free: 3.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/0.02511, allocations: 11.94 kB / 287.1 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004382/0.02554, allocations: 354.4 kB / 287.4 MB, free: 3.031 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/0.02555, allocations: 4 kB / 287.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003271/0.02882, allocations: 1.701 MB / 289.2 MB, free: 1.254 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.02885, allocations: 81.11 kB / 289.2 MB, free: 1.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005904/0.02944, allocations: 0.7065 MB / 289.9 MB, free: 444 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.811e-05/0.02952, allocations: 41.7 kB / 290 MB, free: 396 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.02977, allocations: 363.4 kB / 290.3 MB, free: 28 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1097/0.1394, allocations: 168.6 kB / 290.5 MB, free: 28.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.1396, allocations: 125.6 kB / 290.6 MB, free: 28.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1398, allocations: 0.5672 MB / 291.2 MB, free: 27.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.1402, allocations: 187.1 kB / 291.4 MB, free: 27.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.1406, allocations: 294.3 kB / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004197/0.141, allocations: 315.1 kB / 292 MB, free: 27.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.141, allocations: 2 kB / 292 MB, free: 27.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001295/0.1423, allocations: 0.702 MB / 292.7 MB, free: 27.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.1423, allocations: 8.812 kB / 292.7 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1423, allocations: 2.953 kB / 292.7 MB, free: 27.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006899/0.143, allocations: 445 kB / 293.1 MB, free: 27.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.1433, allocations: 99.03 kB / 293.2 MB, free: 27.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.1463, allocations: 5.313 MB / 298.5 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.1468, allocations: 148.1 kB / 298.7 MB, free: 22.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.1468, allocations: 22.95 kB / 298.7 MB, free: 22.44 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000191/0.147, allocations: 201.9 kB / 298.9 MB, free: 22.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1471, allocations: 88.97 kB / 299 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.738e-05/0.1472, allocations: 92.94 kB / 299.1 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1472, allocations: 4.531 kB / 299.1 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1472, allocations: 4.469 kB / 299.1 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1472, allocations: 2.625 kB / 299.1 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.1487, allocations: 1.103 MB / 300.2 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1487, allocations: 4.859 kB / 300.2 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.149, allocations: 80.64 kB / 300.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005552/0.1495, allocations: 431.1 kB / 300.7 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.1496, allocations: 22.84 kB / 300.7 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/0.152, allocations: 4.852 MB / 305.6 MB, free: 16.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.152, allocations: 5.469 kB / 305.6 MB, free: 16.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.1533, allocations: 0.8857 MB / 306.5 MB, free: 16.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.1535, allocations: 138.3 kB / 306.6 MB, free: 16.37 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.1536, allocations: 21.91 kB / 306.6 MB, free: 16.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.1541, allocations: 172 kB / 306.8 MB, free: 16.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008333/0.155, allocations: 0.5143 MB / 307.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.316e-05/0.155, allocations: 37 kB / 307.3 MB, free: 16.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003407/0.1554, allocations: 464.5 kB / 307.8 MB, free: 16.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1554, allocations: 1 kB / 307.8 MB, free: 16.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005931/0.156, allocations: 181.2 kB / 308 MB, free: 16 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008704/0.1568, allocations: 380.8 kB / 308.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009524/0.1578, allocations: 0.7791 MB / 309.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1578, allocations: 1.375 kB / 309.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.1583, allocations: 0.5862 MB / 309.7 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.1587, allocations: 119.5 kB / 309.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.161, allocations: 1.493 MB / 311.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.1611, allocations: 164.6 kB / 311.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.1612, allocations: 46.44 kB / 311.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1613, allocations: 51.97 kB / 311.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1613, allocations: 0 / 311.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of Templates: time 0.01428/0.1756, allocations: 14.45 MB / 326 MB, free: 0.7383 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/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.3478782419115305]