Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.001557/0.001557, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001149/0.001149, allocations: 158.8 kB / 25.75 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.032/1.032, allocations: 158.6 MB / 187.5 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 251.1 MB, free: 7.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.861e-05, allocations: 2.312 kB / 251.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.005178/0.005206, allocations: 2.428 MB / 253.5 MB, free: 5.461 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.006429, allocations: 0.5 MB / 254 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.006585, allocations: 4 kB / 254 MB, free: 4.953 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.006778, allocations: 51.5 kB / 254.1 MB, free: 4.902 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.00697, allocations: 91.2 kB / 254.2 MB, free: 4.812 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.007502, allocations: 203.6 kB / 254.4 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.00806, allocations: 0.4911 MB / 254.8 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.008213, allocations: 48.89 kB / 254.9 MB, free: 4.07 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004061/0.008619, allocations: 287.5 kB / 255.2 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000332/0.008951, allocations: 199.5 kB / 255.4 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.009021, allocations: 40 kB / 255.4 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.00919, allocations: 91.88 kB / 255.5 MB, free: 3.465 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.0093, allocations: 99.7 kB / 255.6 MB, free: 3.367 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.009465, allocations: 135.7 kB / 255.7 MB, free: 3.234 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005152/0.00998, allocations: 378.7 kB / 256.1 MB, free: 2.863 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.009983, allocations: 0 / 256.1 MB, free: 2.863 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.009984, allocations: 0 / 256.1 MB, free: 2.863 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.009991, allocations: 0 / 256.1 MB, free: 2.863 MB / 234.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.00105/0.01104, allocations: 0.6753 MB / 256.8 MB, free: 2.148 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.01108, allocations: 8.031 kB / 256.8 MB, free: 2.141 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.01123, allocations: 60.7 kB / 256.8 MB, free: 2.082 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.01157, allocations: 225 kB / 257.1 MB, free: 1.836 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.0116, allocations: 21.03 kB / 257.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.01168, allocations: 36.33 kB / 257.1 MB, free: 1.781 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.01234, allocations: 323.2 kB / 257.4 MB, free: 1.453 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.01236, allocations: 8.172 kB / 257.4 MB, free: 1.445 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.0124, allocations: 12.38 kB / 257.5 MB, free: 1.434 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.01241, allocations: 8.375 kB / 257.5 MB, free: 1.426 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005964/0.01301, allocations: 279.6 kB / 257.7 MB, free: 1.156 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.01465, allocations: 0.9363 MB / 258.7 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.01513, allocations: 216.6 kB / 258.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.01542, allocations: 128.6 kB / 259 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.01546, allocations: 8 kB / 259 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.01549, allocations: 49.31 kB / 259.1 MB, free: 15.74 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.854e-06/0.0155, allocations: 4 kB / 259.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003709/0.0192, allocations: 1.463 MB / 260.5 MB, free: 14.2 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.01924, allocations: 55.41 kB / 260.6 MB, free: 14.14 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.01951, allocations: 288.2 kB / 260.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.01956, allocations: 37.7 kB / 260.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01967, allocations: 195.8 kB / 261.1 MB, free: 13.6 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.01983, allocations: 162.7 kB / 261.3 MB, free: 13.44 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.02001, allocations: 95.83 kB / 261.3 MB, free: 13.34 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.02022, allocations: 0.5079 MB / 261.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/0.02059, allocations: 144.9 kB / 262 MB, free: 12.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.02098, allocations: 246.8 kB / 262.2 MB, free: 12.4 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005332/0.02152, allocations: 317.3 kB / 262.5 MB, free: 12.06 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.02152, allocations: 0 / 262.5 MB, free: 12.06 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001312/0.02283, allocations: 0.5823 MB / 263.1 MB, free: 11.46 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.02285, allocations: 4 kB / 263.1 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.02286, allocations: 4 kB / 263.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000801/0.02366, allocations: 439.1 kB / 263.6 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.02392, allocations: 67.91 kB / 263.6 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.0252, allocations: 1.807 MB / 265.4 MB, free: 9.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.02548, allocations: 43.95 kB / 265.5 MB, free: 9.035 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/0.02552, allocations: 23.98 kB / 265.5 MB, free: 9.012 MB / 250.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.0001647/0.02569, allocations: 184.5 kB / 265.7 MB, free: 8.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.02579, allocations: 43.81 kB / 265.7 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.957e-05/0.02587, allocations: 55.31 kB / 265.8 MB, free: 8.727 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.02588, allocations: 7.938 kB / 265.8 MB, free: 8.719 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.02588, allocations: 0 / 265.8 MB, free: 8.719 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.02589, allocations: 3.938 kB / 265.8 MB, free: 8.715 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.02802, allocations: 1.136 MB / 266.9 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.02802, allocations: 0 / 266.9 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.02826, allocations: 63.91 kB / 267 MB, free: 7.445 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006487/0.02891, allocations: 423.2 kB / 267.4 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.02895, allocations: 15.97 kB / 267.4 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008554/0.02981, allocations: 1.783 MB / 269.2 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.02981, allocations: 4 kB / 269.2 MB, free: 5.156 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000942/0.03075, allocations: 0.8394 MB / 270 MB, free: 4.266 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.03086, allocations: 79.73 kB / 270.1 MB, free: 4.188 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.0309, allocations: 16 kB / 270.1 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.03103, allocations: 31.91 kB / 270.2 MB, free: 4.141 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.03116, allocations: 91.7 kB / 270.3 MB, free: 4.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.03118, allocations: 23.97 kB / 270.3 MB, free: 4.027 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.367e-05/0.03128, allocations: 197.1 kB / 270.5 MB, free: 3.836 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03128, allocations: 0 / 270.5 MB, free: 3.836 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002706/0.03155, allocations: 104 kB / 270.6 MB, free: 3.734 MB / 250.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.000166/0.03171, allocations: 143.1 kB / 270.7 MB, free: 3.582 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005565/0.03227, allocations: 397.8 kB / 271.1 MB, free: 3.191 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.03227, allocations: 4 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.03255, allocations: 228.9 kB / 271.3 MB, free: 2.961 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.03286, allocations: 72.83 kB / 271.4 MB, free: 2.891 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.03408, allocations: 0.8564 MB / 272.3 MB, free: 1.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.93e-05/0.03414, allocations: 101.3 kB / 272.4 MB, free: 1.863 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.646e-05/0.03422, allocations: 26.98 kB / 272.4 MB, free: 1.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.254e-05/0.03428, allocations: 32.48 kB / 272.4 MB, free: 1.809 MB / 250.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03428, allocations: 0 / 272.4 MB, free: 1.809 MB / 250.7 MB Notification: Performance of Templates: time 0.008069/0.04235, allocations: 7.352 MB / 279.8 MB, free: 10.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.0488608388695866]