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.002049/0.002049, allocations: 96.3 kB / 21.73 MB, free: 2.707 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.002666/0.002666, allocations: 164.9 kB / 25.02 MB, free: 8.887 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.518/1.518, allocations: 158.6 MB / 186.8 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] 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 2.004e-06/2.004e-06, allocations: 0 / 250.3 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.234e-05/3.435e-05, allocations: 6.109 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.006755/0.00679, allocations: 2.3 MB / 252.6 MB, free: 5.52 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.008602, allocations: 492.1 kB / 253.1 MB, free: 5.035 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/0.008823, allocations: 11.94 kB / 253.1 MB, free: 5.023 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003468/0.00917, allocations: 51.5 kB / 253.2 MB, free: 4.973 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.009511, allocations: 91.2 kB / 253.3 MB, free: 4.883 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009144/0.01043, allocations: 195.6 kB / 253.5 MB, free: 4.691 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009893/0.01142, allocations: 0.4989 MB / 254 MB, free: 4.191 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.01165, allocations: 48.8 kB / 254 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008042/0.01245, allocations: 291.5 kB / 254.3 MB, free: 3.855 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/0.01307, allocations: 199.5 kB / 254.5 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.0132, allocations: 36 kB / 254.5 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003016/0.0135, allocations: 91.92 kB / 254.6 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.01371, allocations: 95.7 kB / 254.7 MB, free: 3.441 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003099/0.01402, allocations: 131.7 kB / 254.8 MB, free: 3.312 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.01509, allocations: 0.5062 MB / 255.4 MB, free: 2.805 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.0151, allocations: 0 / 255.4 MB, free: 2.805 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0151, allocations: 0 / 255.4 MB, free: 2.805 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.01512, allocations: 8 kB / 255.4 MB, free: 2.797 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.002543/0.01766, allocations: 0.5832 MB / 255.9 MB, free: 2.18 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.824e-05/0.01774, allocations: 12.03 kB / 256 MB, free: 2.168 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003179/0.01805, allocations: 60.7 kB / 256 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007962/0.01885, allocations: 226.2 kB / 256.2 MB, free: 1.863 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/0.01892, allocations: 25.03 kB / 256.3 MB, free: 1.84 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.01905, allocations: 28.33 kB / 256.3 MB, free: 1.812 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.02039, allocations: 378.5 kB / 256.7 MB, free: 1.434 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.02041, allocations: 192 / 256.7 MB, free: 1.434 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.987e-05/0.02048, allocations: 12.38 kB / 256.7 MB, free: 1.422 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.0205, allocations: 4.375 kB / 256.7 MB, free: 1.418 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.02196, allocations: 418.2 kB / 257.1 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.02523, allocations: 0.9449 MB / 258 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009913/0.02622, allocations: 276.1 kB / 258.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006848/0.02691, allocations: 189.8 kB / 258.5 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.11e-05/0.02697, allocations: 12 kB / 258.5 MB, free: 15.53 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.555e-05/0.02702, allocations: 38.5 kB / 258.5 MB, free: 15.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.465e-06/0.02703, allocations: 0 / 258.5 MB, free: 15.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.008106/0.03513, allocations: 1.745 MB / 260.3 MB, free: 13.68 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.03521, allocations: 55.41 kB / 260.3 MB, free: 13.61 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.03571, allocations: 233.6 kB / 260.6 MB, free: 13.37 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.757e-05/0.03581, allocations: 41.7 kB / 260.6 MB, free: 13.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.036, allocations: 149 kB / 260.7 MB, free: 13.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.03629, allocations: 166.7 kB / 260.9 MB, free: 13.01 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/0.03662, allocations: 90.17 kB / 261 MB, free: 12.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.0369, allocations: 338.8 kB / 261.3 MB, free: 12.58 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007395/0.03764, allocations: 208.9 kB / 261.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008767/0.03852, allocations: 288.2 kB / 261.8 MB, free: 12.07 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.03976, allocations: 378.7 kB / 262.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.03977, allocations: 7.938 kB / 262.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003055/0.04283, allocations: 0.7134 MB / 262.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.04286, allocations: 4 kB / 262.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.04287, allocations: 8.156 kB / 262.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/0.04449, allocations: 497.4 kB / 263.4 MB, free: 10.44 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.045, allocations: 75.84 kB / 263.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.04684, allocations: 1.394 MB / 264.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.04732, allocations: 67.94 kB / 264.9 MB, free: 8.852 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.04738, allocations: 16.12 kB / 264.9 MB, free: 8.836 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.0002789/0.04765, allocations: 181.4 kB / 265.1 MB, free: 8.648 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.04778, allocations: 39.81 kB / 265.2 MB, free: 8.609 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.04791, allocations: 47.31 kB / 265.2 MB, free: 8.566 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.04792, allocations: 7.938 kB / 265.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.04793, allocations: 0 / 265.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.04794, allocations: 3.984 kB / 265.2 MB, free: 8.555 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/0.05113, allocations: 1.215 MB / 266.4 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.05114, allocations: 0 / 266.4 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/0.05145, allocations: 59.91 kB / 266.5 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.05232, allocations: 461.5 kB / 266.9 MB, free: 6.766 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.127e-05/0.05237, allocations: 15.98 kB / 267 MB, free: 6.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.05394, allocations: 1.347 MB / 268.3 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.05395, allocations: 4.125 kB / 268.3 MB, free: 5.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.05612, allocations: 0.9485 MB / 269.3 MB, free: 4.359 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/0.05634, allocations: 75.78 kB / 269.3 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/0.05642, allocations: 20 kB / 269.4 MB, free: 4.266 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.05676, allocations: 39.95 kB / 269.4 MB, free: 4.227 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.05702, allocations: 99.64 kB / 269.5 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.05707, allocations: 19.98 kB / 269.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.05728, allocations: 161.2 kB / 269.7 MB, free: 3.953 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05728, allocations: 0 / 269.7 MB, free: 3.953 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008154/0.05809, allocations: 111.9 kB / 269.8 MB, free: 3.844 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.0003211/0.05841, allocations: 143.1 kB / 269.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.05969, allocations: 484.9 kB / 270.4 MB, free: 3.219 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.05969, allocations: 3.938 kB / 270.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.06039, allocations: 284.4 kB / 270.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.06095, allocations: 77.62 kB / 270.7 MB, free: 2.863 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.06343, allocations: 0.8883 MB / 271.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.06365, allocations: 173.8 kB / 271.8 MB, free: 1.738 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.0638, allocations: 34.97 kB / 271.8 MB, free: 1.707 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.0639, allocations: 36.48 kB / 271.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of SimCode: time 7.41e-07/0.06391, allocations: 0 / 271.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of Templates: time 0.01544/0.07935, allocations: 7.296 MB / 279.2 MB, free: 10.4 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.79700921010226]