Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 163.4 kB / 24.99 MB, free: 8.344 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.02/1.02, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.057e-05, allocations: 2.312 kB / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004904/0.004934, allocations: 3.106 MB / 276.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.007295, allocations: 1.309 MB / 277.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002261/0.007521, allocations: 8 kB / 277.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005148/0.008036, allocations: 103.1 kB / 277.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.008312, allocations: 130.8 kB / 277.7 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009308/0.009243, allocations: 419 kB / 278.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008958/0.01014, allocations: 0.8385 MB / 278.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.01033, allocations: 69.73 kB / 279 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007715/0.0111, allocations: 0.4991 MB / 279.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.01275, allocations: 1.412 MB / 280.9 MB, free: 9.961 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.01289, allocations: 72 kB / 281 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.01316, allocations: 131.9 kB / 281.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.01339, allocations: 239.8 kB / 281.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.01369, allocations: 243.4 kB / 281.6 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009787/0.01467, allocations: 0.7397 MB / 282.3 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.01467, allocations: 0 / 282.3 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.01467, allocations: 0 / 282.3 MB, free: 8.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.01469, allocations: 0 / 282.3 MB, free: 8.547 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.002437/0.01713, allocations: 1.417 MB / 283.7 MB, free: 7.074 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.01717, allocations: 8.031 kB / 283.8 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/0.01753, allocations: 132.4 kB / 283.9 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.01795, allocations: 384.3 kB / 284.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.01799, allocations: 29.38 kB / 284.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/0.01807, allocations: 48.36 kB / 284.3 MB, free: 6.457 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008017/0.01887, allocations: 0.5275 MB / 284.9 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.01888, allocations: 4.141 kB / 284.9 MB, free: 5.906 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.01893, allocations: 20.12 kB / 284.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.01894, allocations: 8 kB / 284.9 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006358/0.01958, allocations: 383.3 kB / 285.3 MB, free: 5.508 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.02148, allocations: 1.428 MB / 286.7 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.02204, allocations: 321.9 kB / 287 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.02227, allocations: 143.3 kB / 287.1 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.83e-05/0.02232, allocations: 11.94 kB / 287.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/0.02275, allocations: 346.8 kB / 287.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.674e-06/0.02275, allocations: 0 / 287.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003285/0.02604, allocations: 1.712 MB / 289.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.02608, allocations: 81.11 kB / 289.3 MB, free: 1.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/0.02658, allocations: 0.6948 MB / 290 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.02664, allocations: 49.69 kB / 290 MB, free: 0.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.02682, allocations: 367.4 kB / 290.4 MB, free: 140 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1047/0.1315, allocations: 169.1 kB / 290.6 MB, free: 28.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.1318, allocations: 126.5 kB / 290.7 MB, free: 28.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1319, allocations: 0.5668 MB / 291.2 MB, free: 27.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005079/0.1324, allocations: 186.9 kB / 291.4 MB, free: 27.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.1328, allocations: 290.7 kB / 291.7 MB, free: 27.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.1332, allocations: 326.5 kB / 292 MB, free: 27.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1332, allocations: 1.75 kB / 292 MB, free: 27.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001301/0.1345, allocations: 0.7013 MB / 292.7 MB, free: 27.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1345, allocations: 5.188 kB / 292.7 MB, free: 27.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1345, allocations: 4.031 kB / 292.7 MB, free: 27.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006578/0.1352, allocations: 442.1 kB / 293.2 MB, free: 27.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.1354, allocations: 104.7 kB / 293.3 MB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.1383, allocations: 5.3 MB / 298.6 MB, free: 22.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.1388, allocations: 147.4 kB / 298.7 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.1388, allocations: 24.33 kB / 298.7 MB, free: 22.46 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.0001888/0.139, allocations: 209.2 kB / 298.9 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.1392, allocations: 95.14 kB / 299 MB, free: 22.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.044e-05/0.1393, allocations: 88.77 kB / 299.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1393, allocations: 5.531 kB / 299.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1393, allocations: 1.344 kB / 299.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1393, allocations: 3.281 kB / 299.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.1408, allocations: 1.106 MB / 300.2 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1408, allocations: 5.031 kB / 300.2 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.141, allocations: 73.28 kB / 300.3 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005824/0.1416, allocations: 438.5 kB / 300.7 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/0.1417, allocations: 22.33 kB / 300.8 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.1442, allocations: 4.846 MB / 305.6 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1442, allocations: 2.312 kB / 305.6 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.1455, allocations: 0.8793 MB / 306.5 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.1457, allocations: 135.7 kB / 306.6 MB, free: 16.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.36e-05/0.1458, allocations: 25.3 kB / 306.7 MB, free: 16.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.1463, allocations: 168.4 kB / 306.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008492/0.1472, allocations: 0.5242 MB / 307.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.715e-05/0.1472, allocations: 38.36 kB / 307.4 MB, free: 16.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000348/0.1476, allocations: 465.7 kB / 307.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1476, allocations: 0 / 307.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005967/0.1482, allocations: 182.5 kB / 308 MB, free: 16.07 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.0008414/0.149, allocations: 387.2 kB / 308.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009938/0.15, allocations: 0.7818 MB / 309.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.15, allocations: 1.781 kB / 309.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000483/0.1505, allocations: 0.5838 MB / 309.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.1509, allocations: 121.2 kB / 309.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.1535, allocations: 1.491 MB / 311.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.1536, allocations: 164.1 kB / 311.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.1537, allocations: 43.08 kB / 311.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.1539, allocations: 50.78 kB / 311.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.423e-06/0.1539, allocations: 0 / 311.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01465/0.1685, allocations: 14.47 MB / 326.1 MB, free: 0.8398 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.389910967089236]