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.001008/0.001008, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.001099/0.001099, allocations: 164.2 kB / 25.45 MB, free: 9.348 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 0.9772/0.9772, allocations: 158.6 MB / 187.2 MB, free: 3.051 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 2.514e-06/2.514e-06, allocations: 0 / 299.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.778e-05/3.03e-05, allocations: 6.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002725/0.002755, allocations: 2.28 MB / 302 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.003834, allocations: 0.4922 MB / 302.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.003982, allocations: 7.938 kB / 302.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.004194, allocations: 39.58 kB / 302.5 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.004336, allocations: 95.16 kB / 302.6 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.004881, allocations: 195.6 kB / 302.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.005318, allocations: 0.4949 MB / 303.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.005472, allocations: 44.86 kB / 303.3 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/0.005822, allocations: 295.4 kB / 303.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.006089, allocations: 203.5 kB / 303.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.489e-05/0.006144, allocations: 40 kB / 303.9 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.006302, allocations: 91.89 kB / 303.9 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.006403, allocations: 99.69 kB / 304 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.006509, allocations: 135.6 kB / 304.2 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007895/0.007298, allocations: 0.4947 MB / 304.7 MB, free: 1.918 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.007303, allocations: 0 / 304.7 MB, free: 1.918 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007305, allocations: 0 / 304.7 MB, free: 1.918 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.007312, allocations: 3.984 kB / 304.7 MB, free: 1.914 MB / 282.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.0009005/0.008213, allocations: 0.5948 MB / 305.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.008249, allocations: 8.031 kB / 305.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.008326, allocations: 44.64 kB / 305.3 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.008678, allocations: 218.2 kB / 305.5 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.008708, allocations: 25.03 kB / 305.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.032e-05/0.008758, allocations: 36.33 kB / 305.6 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.009266, allocations: 382.4 kB / 306 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.009282, allocations: 4.188 kB / 306 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.00931, allocations: 12.31 kB / 306 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.009317, allocations: 8.375 kB / 306 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.009795, allocations: 410.3 kB / 306.4 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.01104, allocations: 0.9449 MB / 307.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.01141, allocations: 268.2 kB / 307.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.01164, allocations: 189.8 kB / 307.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.01167, allocations: 4 kB / 307.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.0117, allocations: 42.5 kB / 307.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.883e-06/0.0117, allocations: 4 kB / 307.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002906/0.01461, allocations: 1.742 MB / 309.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.01465, allocations: 55.41 kB / 309.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.01486, allocations: 233.7 kB / 309.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.01489, allocations: 37.7 kB / 309.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.896e-05/0.01498, allocations: 153 kB / 310 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.737e-05/0.01508, allocations: 158.7 kB / 310.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.0152, allocations: 102.1 kB / 310.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.0153, allocations: 338.8 kB / 310.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.01557, allocations: 208.9 kB / 310.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.01588, allocations: 288.2 kB / 311.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004254/0.0163, allocations: 374.7 kB / 311.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.0163, allocations: 0 / 311.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001278/0.01758, allocations: 0.694 MB / 312.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.01761, allocations: 8 kB / 312.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.01762, allocations: 0 / 312.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006117/0.01823, allocations: 493.5 kB / 312.7 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.0184, allocations: 71.84 kB / 312.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009112/0.01931, allocations: 1.402 MB / 314.1 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.01953, allocations: 67.91 kB / 314.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.01956, allocations: 16 kB / 314.2 MB, free: 8 MB / 298.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.0001599/0.01972, allocations: 169.5 kB / 314.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.01976, allocations: 35.88 kB / 314.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.01983, allocations: 47.3 kB / 314.5 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.01984, allocations: 7.938 kB / 314.5 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.01985, allocations: 4 kB / 314.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.01985, allocations: 4 kB / 314.5 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.02145, allocations: 1.207 MB / 315.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.02145, allocations: 160 / 315.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.02161, allocations: 67.91 kB / 315.8 MB, free: 6.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000482/0.02209, allocations: 461.4 kB / 316.2 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.02212, allocations: 15.98 kB / 316.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008103/0.02294, allocations: 1.339 MB / 317.6 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.02294, allocations: 7.969 kB / 317.6 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.02404, allocations: 0.933 MB / 318.5 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.02415, allocations: 75.78 kB / 318.6 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.566e-05/0.02419, allocations: 20 kB / 318.6 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.02432, allocations: 35.95 kB / 318.6 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000382/0.02471, allocations: 91.77 kB / 318.7 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.02473, allocations: 19.97 kB / 318.7 MB, free: 3.316 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.413e-05/0.02482, allocations: 169.2 kB / 318.9 MB, free: 3.148 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02482, allocations: 0 / 318.9 MB, free: 3.148 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.02513, allocations: 103.9 kB / 319 MB, free: 3.047 MB / 298.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.0001808/0.02531, allocations: 143.1 kB / 319.1 MB, free: 2.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006466/0.02596, allocations: 486.9 kB / 319.6 MB, free: 2.426 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.02596, allocations: 4 kB / 319.6 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.02629, allocations: 283.6 kB / 319.9 MB, free: 2.145 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.02661, allocations: 52.95 kB / 320 MB, free: 2.094 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.0279, allocations: 0.8886 MB / 320.8 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.028, allocations: 173.8 kB / 321 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.309e-05/0.02807, allocations: 40.47 kB / 321.1 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02807, allocations: 3.938 kB / 321.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of Templates: time 0.006294/0.03436, allocations: 6.776 MB / 327.8 MB, free: 10.14 MB / 314.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: 5.4926241701468825]