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.001555/0.001555, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001748/0.001748, allocations: 167.9 kB / 25.61 MB, free: 8.582 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 0.9745/0.9745, allocations: 177.2 MB / 206.1 MB, free: 4.477 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.413e-06/1.413e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.197e-05, allocations: 6.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003489/0.003511, allocations: 3.061 MB / 277.2 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.005448, allocations: 1.308 MB / 278.5 MB, free: 40 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002715/0.005719, allocations: 4 kB / 278.5 MB, free: 36 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005396/0.006259, allocations: 107.2 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.00651, allocations: 135.9 kB / 278.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007443/0.007255, allocations: 431 kB / 279.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007744/0.008029, allocations: 0.8346 MB / 280 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.008179, allocations: 61.75 kB / 280.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006523/0.008831, allocations: 0.4991 MB / 280.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.01003, allocations: 1.42 MB / 282 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.01013, allocations: 68 kB / 282.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.01036, allocations: 123.9 kB / 282.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.01061, allocations: 239.8 kB / 282.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.01079, allocations: 255.3 kB / 282.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007071/0.01149, allocations: 0.7281 MB / 283.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.0115, allocations: 0 / 283.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0115, allocations: 0 / 283.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.01151, allocations: 0 / 283.4 MB, free: 11.14 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.001919/0.01343, allocations: 1.436 MB / 284.9 MB, free: 9.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.01346, allocations: 8.031 kB / 284.9 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003977/0.01386, allocations: 136.4 kB / 285 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.01428, allocations: 380.3 kB / 285.4 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.01432, allocations: 33.38 kB / 285.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/0.01439, allocations: 44.34 kB / 285.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/0.01506, allocations: 492.1 kB / 285.9 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.01508, allocations: 8.141 kB / 285.9 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-05/0.01513, allocations: 24.12 kB / 286 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.01514, allocations: 8 kB / 286 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004808/0.01562, allocations: 310.3 kB / 286.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.01731, allocations: 1.323 MB / 287.6 MB, free: 6.812 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007226/0.01803, allocations: 297.8 kB / 287.9 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.0182, allocations: 124.5 kB / 288 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.01825, allocations: 8 kB / 288 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.01859, allocations: 326.7 kB / 288.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.923e-06/0.01859, allocations: 0 / 288.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002817/0.02141, allocations: 1.416 MB / 289.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.02144, allocations: 85.11 kB / 289.8 MB, free: 4.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004331/0.02188, allocations: 0.6867 MB / 290.5 MB, free: 3.723 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.02193, allocations: 41.7 kB / 290.6 MB, free: 3.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.02215, allocations: 387.3 kB / 290.9 MB, free: 3.293 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.02227, allocations: 178.6 kB / 291.1 MB, free: 3.117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.02242, allocations: 127.8 kB / 291.2 MB, free: 2.984 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.02259, allocations: 0.5819 MB / 291.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.02284, allocations: 153.1 kB / 292 MB, free: 2.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.02307, allocations: 251.3 kB / 292.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.02339, allocations: 283.4 kB / 292.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.02339, allocations: 4 kB / 292.5 MB, free: 1.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000947/0.02434, allocations: 0.6284 MB / 293.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.02436, allocations: 8 kB / 293.1 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.02437, allocations: 0 / 293.1 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005782/0.02495, allocations: 434.8 kB / 293.6 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.02519, allocations: 103.9 kB / 293.7 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003679/0.02887, allocations: 5.224 MB / 298.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006159/0.02948, allocations: 143.8 kB / 299 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.02953, allocations: 19.98 kB / 299 MB, free: 10.79 MB / 282.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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.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): 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,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002651/0.0298, allocations: 211.1 kB / 299.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.02996, allocations: 87.53 kB / 299.3 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.03009, allocations: 94.16 kB / 299.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.03009, allocations: 4 kB / 299.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.0301, allocations: 4 kB / 299.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.0301, allocations: 4 kB / 299.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.03185, allocations: 0.9732 MB / 300.4 MB, free: 9.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.03186, allocations: 4 kB / 300.4 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.03213, allocations: 75.89 kB / 300.5 MB, free: 9.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006397/0.03277, allocations: 426.8 kB / 300.9 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.885e-05/0.03283, allocations: 23.97 kB / 300.9 MB, free: 8.828 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003845/0.03668, allocations: 4.779 MB / 305.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.03668, allocations: 7.938 kB / 305.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.03811, allocations: 0.8031 MB / 306.5 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.03836, allocations: 139.4 kB / 306.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.831e-05/0.03846, allocations: 24 kB / 306.7 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006892/0.03915, allocations: 171.8 kB / 306.8 MB, free: 2.605 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/0.04016, allocations: 0.5145 MB / 307.4 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-05/0.04023, allocations: 31.89 kB / 307.4 MB, free: 2.059 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003455/0.04058, allocations: 418.9 kB / 307.8 MB, free: 1.652 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04058, allocations: 0 / 307.8 MB, free: 1.652 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007567/0.04134, allocations: 184 kB / 308 MB, free: 1.473 MB / 282.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.0009217/0.04226, allocations: 397.3 kB / 308.4 MB, free: 1.199 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.04326, allocations: 0.7267 MB / 309.1 MB, free: 440 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.04327, allocations: 0 / 309.1 MB, free: 440 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008714/0.04414, allocations: 0.5585 MB / 309.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005364/0.04468, allocations: 121.4 kB / 309.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.04745, allocations: 1.469 MB / 311.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.0476, allocations: 165.9 kB / 311.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.04778, allocations: 47.27 kB / 311.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.04803, allocations: 150.1 kB / 311.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.04804, allocations: 0 / 311.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of Templates: time 0.02273/0.07076, allocations: 15.8 MB / 327.4 MB, free: 14.09 MB / 314.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.506049149669707]