Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.001255/0.001255, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001334/0.001334, allocations: 149.8 kB / 24.89 MB, free: 8.742 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 0.9605/0.9605, allocations: 173.4 MB / 201.5 MB, free: 9.168 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.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.01e-07/7.01e-07, allocations: 0 / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.946e-06/9.647e-06, allocations: 6.25 kB / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002939/0.002949, allocations: 2.469 MB / 271 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007841/0.003733, allocations: 0.499 MB / 271.5 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.121e-05/0.003824, allocations: 7.938 kB / 271.5 MB, free: 3.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.003961, allocations: 47.56 kB / 271.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.004091, allocations: 91.14 kB / 271.6 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.004437, allocations: 191.7 kB / 271.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003826/0.004819, allocations: 0.4949 MB / 272.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.54e-05/0.004915, allocations: 46.83 kB / 272.3 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.005183, allocations: 299.4 kB / 272.6 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.005413, allocations: 195.5 kB / 272.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.921e-05/0.005462, allocations: 40 kB / 272.9 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.005615, allocations: 95.92 kB / 272.9 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.499e-05/0.0057, allocations: 99.7 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.005812, allocations: 135.6 kB / 273.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.006159, allocations: 378.8 kB / 273.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.006161, allocations: 0 / 273.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006161, allocations: 0 / 273.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.006165, allocations: 0 / 273.5 MB, free: 1.059 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0007133/0.006878, allocations: 0.5583 MB / 274.1 MB, free: 484 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.469e-05/0.006903, allocations: 8.922 kB / 274.1 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.006975, allocations: 44.91 kB / 274.2 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.007187, allocations: 194.2 kB / 274.3 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.00721, allocations: 25.03 kB / 274.4 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.007258, allocations: 32.27 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.007635, allocations: 283.2 kB / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.007646, allocations: 192 / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.007672, allocations: 20.31 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.007679, allocations: 8.359 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.007966, allocations: 176.4 kB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.008967, allocations: 0.7028 MB / 275.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.009195, allocations: 164.1 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.009324, allocations: 93.75 kB / 275.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.009351, allocations: 8 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.009372, allocations: 38.5 kB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.183e-06/0.009373, allocations: 0 / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002132/0.0115, allocations: 1.186 MB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.01153, allocations: 59.16 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.01167, allocations: 209 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.01171, allocations: 45.69 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/0.01177, allocations: 148.9 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.01188, allocations: 162.6 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.012, allocations: 94.08 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.01209, allocations: 338.8 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.01225, allocations: 92.95 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.01243, allocations: 164.3 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.0127, allocations: 246.5 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.01271, allocations: 4 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006242/0.01333, allocations: 395.8 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.01335, allocations: 14.89 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.01335, allocations: 4 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005431/0.01389, allocations: 393.5 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.01409, allocations: 83.84 kB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006947/0.01479, allocations: 1.187 MB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.01497, allocations: 43.95 kB / 280.7 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.015, allocations: 19.98 kB / 280.7 MB, free: 9.531 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.01512, allocations: 144.6 kB / 280.9 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.234e-05/0.01518, allocations: 35.97 kB / 280.9 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.99e-05/0.01524, allocations: 47.3 kB / 280.9 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.01524, allocations: 4 kB / 280.9 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.01525, allocations: 7.938 kB / 280.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01525, allocations: 0 / 280.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.01652, allocations: 0.78 MB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.01652, allocations: 4.062 kB / 281.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.01671, allocations: 67.91 kB / 281.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004774/0.01719, allocations: 381.4 kB / 282.2 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.01722, allocations: 15.97 kB / 282.2 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006263/0.01785, allocations: 1.175 MB / 283.4 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01785, allocations: 0 / 283.4 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007755/0.01862, allocations: 0.5861 MB / 283.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.01873, allocations: 47.78 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.01878, allocations: 20 kB / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.01893, allocations: 27.97 kB / 284 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.01907, allocations: 83.83 kB / 284.1 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.0191, allocations: 19.97 kB / 284.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.01917, allocations: 66.78 kB / 284.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01917, allocations: 0 / 284.2 MB, free: 5.883 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003293/0.0195, allocations: 111.9 kB / 284.3 MB, free: 5.773 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001466/0.01964, allocations: 116.4 kB / 284.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004619/0.02011, allocations: 314.5 kB / 284.7 MB, free: 5.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.02011, allocations: 4 kB / 284.7 MB, free: 5.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.02036, allocations: 190.4 kB / 284.9 MB, free: 5.152 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.02067, allocations: 85.62 kB / 285 MB, free: 5.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.02183, allocations: 0.7521 MB / 285.8 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.696e-05/0.0219, allocations: 101.3 kB / 285.9 MB, free: 4.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.696e-05/0.02199, allocations: 35.05 kB / 285.9 MB, free: 4.125 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.02214, allocations: 103.3 kB / 286 MB, free: 4.023 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.02214, allocations: 0 / 286 MB, free: 4.023 MB / 266.7 MB Notification: Performance of Templates: time 0.1042/0.1263, allocations: 8.047 MB / 294 MB, free: 30.77 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.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: 2.8640209902077913]