Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.001177/0.001177, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001083/0.001083, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 0.9655/0.9655, allocations: 177 MB / 204.8 MB, free: 5.578 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.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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.566e-05/2.704e-05, allocations: 9.203 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00306/0.003087, allocations: 2.578 MB / 275.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.004104, allocations: 0.5733 MB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.004248, allocations: 7.938 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.004541, allocations: 75.3 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.004887, allocations: 135 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.005211, allocations: 171.7 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004534/0.005664, allocations: 0.5146 MB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.005811, allocations: 52.89 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000481/0.006292, allocations: 319.3 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.006603, allocations: 211.5 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.346e-05/0.006667, allocations: 40 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.006811, allocations: 91.92 kB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.006981, allocations: 123.6 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.007091, allocations: 135.7 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.007639, allocations: 414.6 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.007642, allocations: 0 / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.007644, allocations: 4 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.00765, allocations: 0 / 278.3 MB, free: 12.03 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009319/0.008582, allocations: 0.7178 MB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.008621, allocations: 12.03 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.008736, allocations: 60.7 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.009099, allocations: 248.7 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.009129, allocations: 25.03 kB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.009179, allocations: 28.38 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004735/0.009653, allocations: 314.5 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.009667, allocations: 4.141 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.009697, allocations: 8.375 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.009706, allocations: 8.375 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.01009, allocations: 255.6 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.01155, allocations: 0.936 MB / 280.9 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.01195, allocations: 227.7 kB / 281.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.01214, allocations: 119.6 kB / 281.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.01217, allocations: 8 kB / 281.2 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.01219, allocations: 45.39 kB / 281.3 MB, free: 8.871 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.685e-06/0.01219, allocations: 4 kB / 281.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002591/0.01479, allocations: 1.407 MB / 282.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.01482, allocations: 55.91 kB / 282.8 MB, free: 7.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.01501, allocations: 276.3 kB / 283 MB, free: 7.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.01504, allocations: 45.7 kB / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.01513, allocations: 203.7 kB / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.01524, allocations: 174.6 kB / 283.4 MB, free: 6.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.01536, allocations: 95.95 kB / 283.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.0155, allocations: 0.5118 MB / 284 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.01578, allocations: 129.2 kB / 284.2 MB, free: 5.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.01601, allocations: 224.4 kB / 284.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.01631, allocations: 277.3 kB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.01631, allocations: 7.938 kB / 284.7 MB, free: 5.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006312/0.01695, allocations: 488.6 kB / 285.1 MB, free: 4.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.01696, allocations: 7.938 kB / 285.2 MB, free: 4.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.01697, allocations: 4 kB / 285.2 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004397/0.01741, allocations: 283.2 kB / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.01765, allocations: 67.91 kB / 285.5 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000871/0.01852, allocations: 1.736 MB / 287.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.0187, allocations: 51.94 kB / 287.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.01873, allocations: 16 kB / 287.3 MB, free: 2.574 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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.01885, allocations: 188.5 kB / 287.5 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.15e-05/0.01893, allocations: 55.8 kB / 287.5 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.489e-05/0.01898, allocations: 43.62 kB / 287.6 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.01898, allocations: 4 kB / 287.6 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.01899, allocations: 3.938 kB / 287.6 MB, free: 2.273 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.019, allocations: 3.984 kB / 287.6 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.02038, allocations: 1.095 MB / 288.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.02039, allocations: 0 / 288.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.02054, allocations: 59.91 kB / 288.8 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003304/0.02087, allocations: 263.3 kB / 289 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.0209, allocations: 15.98 kB / 289 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007738/0.02168, allocations: 1.752 MB / 290.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.02168, allocations: 3.938 kB / 290.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008886/0.02257, allocations: 0.7639 MB / 291.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.02268, allocations: 83.69 kB / 291.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.02274, allocations: 16 kB / 291.6 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.02287, allocations: 27.97 kB / 291.7 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.023, allocations: 95.75 kB / 291.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.02303, allocations: 19.98 kB / 291.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.02313, allocations: 197.1 kB / 292 MB, free: 13.7 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02313, allocations: 0 / 292 MB, free: 13.7 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000284/0.02342, allocations: 104 kB / 292.1 MB, free: 13.59 MB / 282.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007518/0.02417, allocations: 378.9 kB / 292.4 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005754/0.02474, allocations: 369.5 kB / 292.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02475, allocations: 4 kB / 292.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.02502, allocations: 229.9 kB / 293 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.02536, allocations: 88.02 kB / 293.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.02676, allocations: 0.8885 MB / 294 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.728e-05/0.02682, allocations: 113.1 kB / 294.1 MB, free: 11.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.106e-05/0.02691, allocations: 38.95 kB / 294.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.674e-05/0.02699, allocations: 32.5 kB / 294.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of SimCode: time 1.283e-06/0.02699, allocations: 0 / 294.2 MB, free: 11.49 MB / 282.7 MB Notification: Performance of Templates: time 0.00919/0.03618, allocations: 7.993 MB / 302.2 MB, free: 3.562 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.876366567797959]