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.001461/0.001461, allocations: 82.59 kB / 21.42 MB, free: 3.07 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.00258/0.00258, allocations: 169 kB / 24.82 MB, free: 9.312 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 1.029/1.029, allocations: 177 MB / 205.1 MB, free: 5.473 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.462e-06/1.462e-06, allocations: 0 / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.407e-05, allocations: 5.266 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004735/0.004759, allocations: 3.064 MB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.00725, allocations: 1.305 MB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002313/0.007481, allocations: 7.938 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004969/0.007978, allocations: 103.1 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.008271, allocations: 130.8 kB / 277.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000966/0.009237, allocations: 431 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00089/0.01013, allocations: 0.8307 MB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.01031, allocations: 69.67 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008303/0.01114, allocations: 0.5069 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.01248, allocations: 1.42 MB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-05/0.01258, allocations: 72 kB / 281.2 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.01276, allocations: 127.9 kB / 281.4 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.01292, allocations: 239.8 kB / 281.6 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.01309, allocations: 239.4 kB / 281.8 MB, free: 8.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005621/0.01365, allocations: 0.7397 MB / 282.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.01365, allocations: 0 / 282.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01365, allocations: 0 / 282.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.01366, allocations: 0 / 282.6 MB, free: 7.938 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.001534/0.01519, allocations: 1.44 MB / 284 MB, free: 6.441 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.01523, allocations: 15.98 kB / 284 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.01552, allocations: 136.4 kB / 284.2 MB, free: 6.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.01587, allocations: 380.3 kB / 284.5 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.0159, allocations: 29.38 kB / 284.6 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.635e-05/0.01597, allocations: 40.31 kB / 284.6 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006068/0.01658, allocations: 492.2 kB / 285.1 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.01659, allocations: 4.141 kB / 285.1 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.01664, allocations: 28.11 kB / 285.1 MB, free: 5.293 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.01664, allocations: 12 kB / 285.1 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.01708, allocations: 306.3 kB / 285.4 MB, free: 4.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.01858, allocations: 1.323 MB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004095/0.01899, allocations: 293.9 kB / 287 MB, free: 3.289 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.01915, allocations: 119.3 kB / 287.2 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.01919, allocations: 12 kB / 287.2 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.01952, allocations: 318.7 kB / 287.5 MB, free: 2.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/0.01952, allocations: 0 / 287.5 MB, free: 2.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002596/0.02212, allocations: 1.428 MB / 288.9 MB, free: 1.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.02215, allocations: 89.05 kB / 289 MB, free: 1.215 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.02256, allocations: 0.6945 MB / 289.7 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.02261, allocations: 45.7 kB / 289.7 MB, free: 464 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.0228, allocations: 375.3 kB / 290.1 MB, free: 84 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1074/0.1302, allocations: 175.5 kB / 290.3 MB, free: 25.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1304, allocations: 126 kB / 290.4 MB, free: 25.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.1306, allocations: 0.5767 MB / 291 MB, free: 24.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.1311, allocations: 148.3 kB / 291.1 MB, free: 24.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.1313, allocations: 250.5 kB / 291.4 MB, free: 24.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.1317, allocations: 284.1 kB / 291.6 MB, free: 24.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.1317, allocations: 1.688 kB / 291.6 MB, free: 24.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001156/0.1328, allocations: 0.6376 MB / 292.3 MB, free: 24.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1328, allocations: 7.125 kB / 292.3 MB, free: 24.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1329, allocations: 3.5 kB / 292.3 MB, free: 24.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.1335, allocations: 430.8 kB / 292.7 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.1338, allocations: 105.9 kB / 292.8 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/0.1369, allocations: 5.227 MB / 298 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.1374, allocations: 149.5 kB / 298.2 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.1375, allocations: 21.14 kB / 298.2 MB, free: 19.79 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 (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.0002296/0.1377, allocations: 203 kB / 298.4 MB, free: 19.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.1378, allocations: 94.67 kB / 298.5 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.421e-05/0.1379, allocations: 88.28 kB / 298.6 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1379, allocations: 6.016 kB / 298.6 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1379, allocations: 1.469 kB / 298.6 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1379, allocations: 2.203 kB / 298.6 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.1394, allocations: 0.9788 MB / 299.6 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1394, allocations: 1.188 kB / 299.6 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/0.1396, allocations: 82.92 kB / 299.7 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/0.1401, allocations: 423.8 kB / 300.1 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.1402, allocations: 25.78 kB / 300.1 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.1424, allocations: 4.78 MB / 304.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1424, allocations: 5.281 kB / 304.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.1436, allocations: 0.8067 MB / 305.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.1438, allocations: 145.1 kB / 305.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.164e-05/0.1439, allocations: 25.88 kB / 305.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.1444, allocations: 173.3 kB / 306 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008133/0.1452, allocations: 0.5175 MB / 306.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.401e-05/0.1452, allocations: 24.25 kB / 306.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003046/0.1455, allocations: 420.4 kB / 307 MB, free: 14.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1455, allocations: 0 / 307 MB, free: 14.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006461/0.1462, allocations: 182.1 kB / 307.1 MB, free: 14.39 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.0008238/0.147, allocations: 382.1 kB / 307.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008038/0.1478, allocations: 0.7184 MB / 308.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1478, allocations: 1.812 kB / 308.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.1482, allocations: 0.5701 MB / 308.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.1486, allocations: 113.8 kB / 308.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.1508, allocations: 1.47 MB / 310.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.1509, allocations: 165.1 kB / 310.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.151, allocations: 44.34 kB / 310.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.1512, allocations: 149.1 kB / 310.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1512, allocations: 4 kB / 310.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Templates: time 0.0171/0.1683, allocations: 15.42 MB / 326.2 MB, free: 15.18 MB / 282.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.2519970652647316]