Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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.001403/0.001403, allocations: 82.95 kB / 21.42 MB, free: 3.082 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.001535/0.001535, allocations: 147.5 kB / 24.81 MB, free: 8.332 MB / 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.016/1.016, allocations: 173.4 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.374e-05, allocations: 6.25 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003161/0.003185, allocations: 2.96 MB / 271.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.004937, allocations: 1.145 MB / 272.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.005104, allocations: 4 kB / 272.5 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003648/0.005469, allocations: 83.28 kB / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.005651, allocations: 126.8 kB / 272.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007429/0.006394, allocations: 415.1 kB / 273.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006548/0.007049, allocations: 0.8228 MB / 273.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.007191, allocations: 69.67 kB / 274 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005631/0.007754, allocations: 491.2 kB / 274.5 MB, free: 96 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.00882, allocations: 1.287 MB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.008932, allocations: 68 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.009128, allocations: 119.9 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.009287, allocations: 231.8 kB / 276.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.009465, allocations: 239.3 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006793/0.01014, allocations: 0.7009 MB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.01015, allocations: 4 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01015, allocations: 0 / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.01016, allocations: 0 / 277.1 MB, free: 13.45 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001682/0.01184, allocations: 1.405 MB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.01188, allocations: 12.86 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.01204, allocations: 112.4 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.01245, allocations: 380.3 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.01249, allocations: 33.38 kB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.921e-05/0.01259, allocations: 36.38 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000866/0.01345, allocations: 0.7032 MB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.01347, allocations: 4.141 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.01351, allocations: 24.11 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.01352, allocations: 12 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008871/0.01441, allocations: 0.7676 MB / 280.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.01672, allocations: 2.061 MB / 282.7 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.01727, allocations: 477.7 kB / 283.1 MB, free: 7.262 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.01754, allocations: 319.2 kB / 283.4 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.01759, allocations: 8 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004498/0.01804, allocations: 0.5023 MB / 283.9 MB, free: 6.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.774e-06/0.01804, allocations: 0 / 283.9 MB, free: 6.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003861/0.0219, allocations: 2.753 MB / 286.7 MB, free: 3.578 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.02194, allocations: 85.09 kB / 286.8 MB, free: 3.477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004767/0.02242, allocations: 0.7725 MB / 287.5 MB, free: 2.688 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.02248, allocations: 45.69 kB / 287.6 MB, free: 2.637 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.02266, allocations: 375.3 kB / 288 MB, free: 2.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.02278, allocations: 174.6 kB / 288.1 MB, free: 2.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.02292, allocations: 127.9 kB / 288.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.0231, allocations: 0.578 MB / 288.8 MB, free: 1.367 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.02347, allocations: 393.1 kB / 289.2 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.02383, allocations: 491.2 kB / 289.7 MB, free: 472 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.108/0.1318, allocations: 0.697 MB / 290.4 MB, free: 29.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.1318, allocations: 0 / 290.4 MB, free: 29.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001811/0.1336, allocations: 1.295 MB / 291.7 MB, free: 29.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.1337, allocations: 11.11 kB / 291.7 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1337, allocations: 2.219 kB / 291.7 MB, free: 29.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.135, allocations: 1.436 MB / 293.1 MB, free: 29.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.1353, allocations: 102.9 kB / 293.2 MB, free: 29.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003644/0.1389, allocations: 6.474 MB / 299.7 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004721/0.1394, allocations: 149.9 kB / 299.9 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.1395, allocations: 17.97 kB / 299.9 MB, free: 25.05 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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.1397, allocations: 200.3 kB / 300.1 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.1398, allocations: 84.91 kB / 300.2 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.577e-05/0.1398, allocations: 96.92 kB / 300.2 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.1398, allocations: 4.531 kB / 300.3 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1399, allocations: 1.219 kB / 300.3 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1399, allocations: 8.094 kB / 300.3 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.1418, allocations: 1.908 MB / 302.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1418, allocations: 1.375 kB / 302.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.142, allocations: 79.83 kB / 302.2 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.1431, allocations: 1.436 MB / 303.7 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.1431, allocations: 21.91 kB / 303.7 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/0.1456, allocations: 6.017 MB / 309.7 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1456, allocations: 4 kB / 309.7 MB, free: 19.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.1469, allocations: 1.809 MB / 311.5 MB, free: 17.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.1471, allocations: 136.7 kB / 311.7 MB, free: 17.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.013e-05/0.1471, allocations: 20 kB / 311.7 MB, free: 17.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.1476, allocations: 179.1 kB / 311.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006209/0.1482, allocations: 0.5098 MB / 312.4 MB, free: 17.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.1482, allocations: 27.11 kB / 312.4 MB, free: 17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001976/0.1484, allocations: 450.8 kB / 312.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1484, allocations: 0 / 312.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004785/0.1489, allocations: 197.6 kB / 313 MB, free: 16.45 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001769/0.1491, allocations: 147.3 kB / 313.2 MB, free: 16.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007582/0.1498, allocations: 1.162 MB / 314.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.1498, allocations: 0 / 314.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.1503, allocations: 0.7614 MB / 315.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.1506, allocations: 116.4 kB / 315.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.1524, allocations: 1.526 MB / 316.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.565e-05/0.1525, allocations: 169.7 kB / 316.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.1526, allocations: 43.28 kB / 316.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.1528, allocations: 145.7 kB / 317.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1528, allocations: 0 / 317.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Templates: time 0.0237/0.1765, allocations: 20.39 MB / 337.5 MB, free: 7.949 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.345317834056914]