Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001152/0.001152, allocations: 78.66 kB / 21.42 MB, free: 3.07 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.004396/0.004396, allocations: 173.1 kB / 24.82 MB, free: 9.305 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9651/0.9651, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.062e-05/3.228e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004275/0.004307, allocations: 2.545 MB / 275.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.005483, allocations: 0.5656 MB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.005634, allocations: 7.938 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.005952, allocations: 67.3 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005103/0.006463, allocations: 143 kB / 276.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.006775, allocations: 167.7 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004401/0.007215, allocations: 0.5224 MB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.007356, allocations: 44.91 kB / 277.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003211/0.007677, allocations: 323.3 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003298/0.008007, allocations: 207.5 kB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.629e-05/0.008073, allocations: 40 kB / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.008228, allocations: 95.91 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.00834, allocations: 115.6 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.008446, allocations: 147.6 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003897/0.008835, allocations: 406.6 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.00884, allocations: 0 / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008841, allocations: 3.938 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.008846, allocations: 0 / 278.7 MB, free: 11.89 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.0008214/0.009668, allocations: 0.7217 MB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.009704, allocations: 8.031 kB / 279.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.542e-05/0.009799, allocations: 60.7 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.01007, allocations: 264.6 kB / 279.8 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.0101, allocations: 21.03 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.01015, allocations: 32.38 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.0105, allocations: 270.5 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.01051, allocations: 4.141 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.01054, allocations: 12.38 kB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.01055, allocations: 4.375 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.01081, allocations: 210.9 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.01186, allocations: 0.9053 MB / 281.2 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.01211, allocations: 210 kB / 281.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.01221, allocations: 95.64 kB / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.01225, allocations: 8 kB / 281.5 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.01227, allocations: 41.38 kB / 281.6 MB, free: 8.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.01227, allocations: 0 / 281.6 MB, free: 8.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.001868/0.01414, allocations: 1.256 MB / 282.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.01417, allocations: 55.91 kB / 282.9 MB, free: 7.504 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.01432, allocations: 276.2 kB / 283.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.01435, allocations: 45.69 kB / 283.2 MB, free: 7.168 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.01444, allocations: 211.7 kB / 283.4 MB, free: 6.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.01453, allocations: 170.6 kB / 283.6 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.01463, allocations: 103.9 kB / 283.7 MB, free: 6.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.01475, allocations: 0.5117 MB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.01488, allocations: 97.17 kB / 284.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.01503, allocations: 200.4 kB / 284.5 MB, free: 5.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.01525, allocations: 241.4 kB / 284.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.01525, allocations: 4 kB / 284.7 MB, free: 5.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0004686/0.01572, allocations: 428.5 kB / 285.1 MB, free: 5.125 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.01573, allocations: 8.141 kB / 285.2 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.01574, allocations: 11.94 kB / 285.2 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000346/0.01609, allocations: 267.1 kB / 285.4 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.01623, allocations: 67.91 kB / 285.5 MB, free: 4.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007253/0.01695, allocations: 1.725 MB / 287.2 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.01711, allocations: 48.02 kB / 287.3 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.01714, allocations: 19.98 kB / 287.3 MB, free: 2.914 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.0001152/0.01725, allocations: 184.5 kB / 287.5 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.374e-05/0.01731, allocations: 51.77 kB / 287.5 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.351e-05/0.01737, allocations: 51.61 kB / 287.6 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01737, allocations: 4 kB / 287.6 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.01737, allocations: 4 kB / 287.6 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.01738, allocations: 3.938 kB / 287.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.01856, allocations: 1.004 MB / 288.6 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.01856, allocations: 0 / 288.6 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.01871, allocations: 63.91 kB / 288.6 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002871/0.019, allocations: 251.3 kB / 288.9 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.01903, allocations: 27.91 kB / 288.9 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006799/0.01971, allocations: 1.725 MB / 290.6 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.01971, allocations: 4 kB / 290.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.02041, allocations: 0.7018 MB / 291.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.02052, allocations: 91.61 kB / 291.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.498e-05/0.02057, allocations: 16 kB / 291.5 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.0207, allocations: 27.97 kB / 291.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.02086, allocations: 99.75 kB / 291.6 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.02089, allocations: 23.97 kB / 291.6 MB, free: 14.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001064/0.021, allocations: 185.1 kB / 291.8 MB, free: 14.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.021, allocations: 0 / 291.8 MB, free: 14.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003818/0.02138, allocations: 104 kB / 291.9 MB, free: 14.12 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.0008222/0.0222, allocations: 360.1 kB / 292.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005483/0.02275, allocations: 321.2 kB / 292.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02275, allocations: 0 / 292.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.02305, allocations: 210.7 kB / 292.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.02349, allocations: 106.8 kB / 292.9 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.02497, allocations: 0.8801 MB / 293.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.073e-05/0.02506, allocations: 109.3 kB / 293.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.02517, allocations: 46.88 kB / 293.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.02534, allocations: 134.2 kB / 294 MB, free: 12.01 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02534, allocations: 0 / 294 MB, free: 12.01 MB / 282.7 MB Notification: Performance of Templates: time 0.014/0.03934, allocations: 8.079 MB / 302.1 MB, free: 4.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.9619867741130292]