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.002521/0.002521, allocations: 91.61 kB / 20.96 MB, free: 3.457 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.002878/0.002878, allocations: 165.3 kB / 24.28 MB, free: 148 kB / 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 1.543/1.543, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.733e-06/1.733e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/2.95e-05, allocations: 6.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.006584/0.006613, allocations: 2.538 MB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.008415, allocations: 0.5772 MB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.008572, allocations: 4 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003736/0.008946, allocations: 63.44 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004993/0.009445, allocations: 143 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.009975, allocations: 175.6 kB / 275.8 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009013/0.01088, allocations: 0.5185 MB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.01108, allocations: 51.7 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006335/0.01172, allocations: 311.5 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000549/0.01226, allocations: 219.5 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.0124, allocations: 40 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.01269, allocations: 99.84 kB / 277 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002541/0.01294, allocations: 107.7 kB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.01323, allocations: 147.6 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.0143, allocations: 0.5413 MB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.0143, allocations: 0 / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.0143, allocations: 0 / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.01431, allocations: 0 / 277.8 MB, free: 12.32 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.002053/0.01636, allocations: 0.7371 MB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.01641, allocations: 15.97 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/0.01665, allocations: 60.7 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.01728, allocations: 240 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.914e-05/0.01733, allocations: 32.97 kB / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.01745, allocations: 32.31 kB / 278.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.01865, allocations: 366.5 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.01868, allocations: 8.141 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/0.01874, allocations: 12.38 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.01876, allocations: 8.375 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.02013, allocations: 366.3 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.02341, allocations: 1.037 MB / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.02442, allocations: 299.6 kB / 281 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006218/0.02504, allocations: 175.6 kB / 281.2 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.56e-05/0.02511, allocations: 8 kB / 281.2 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.02517, allocations: 37.39 kB / 281.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 3.056e-06/0.02517, allocations: 3.938 kB / 281.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.007551/0.03272, allocations: 1.678 MB / 282.9 MB, free: 7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.03279, allocations: 55.91 kB / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005642/0.03336, allocations: 320.3 kB / 283.3 MB, free: 6.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.884e-05/0.03346, allocations: 41.7 kB / 283.3 MB, free: 6.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.03373, allocations: 211.7 kB / 283.5 MB, free: 6.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002748/0.034, allocations: 178.6 kB / 283.7 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/0.03432, allocations: 112 kB / 283.8 MB, free: 6.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004238/0.03475, allocations: 0.5274 MB / 284.3 MB, free: 5.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/0.03543, allocations: 185.2 kB / 284.5 MB, free: 5.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008422/0.03627, allocations: 300.5 kB / 284.8 MB, free: 5.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.03747, allocations: 385.3 kB / 285.2 MB, free: 4.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-05/0.03754, allocations: 4 kB / 285.2 MB, free: 4.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002258/0.0398, allocations: 0.6216 MB / 285.8 MB, free: 3.953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.03983, allocations: 11.94 kB / 285.8 MB, free: 3.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.03984, allocations: 3.984 kB / 285.8 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.04115, allocations: 351.3 kB / 286.2 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.04161, allocations: 67.91 kB / 286.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.04441, allocations: 1.877 MB / 288.1 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/0.045, allocations: 47.91 kB / 288.1 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.04508, allocations: 28.05 kB / 288.2 MB, free: 1.504 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.000375/0.04545, allocations: 208.5 kB / 288.4 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002056/0.04566, allocations: 43.81 kB / 288.4 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002069/0.04587, allocations: 55.61 kB / 288.5 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.04588, allocations: 7.938 kB / 288.5 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.04589, allocations: 3.938 kB / 288.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.0459, allocations: 0 / 288.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00494/0.05084, allocations: 1.261 MB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.05085, allocations: 4 kB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004846/0.05133, allocations: 59.91 kB / 289.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/0.05241, allocations: 303.3 kB / 290.1 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/0.05248, allocations: 19.98 kB / 290.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.05513, allocations: 1.85 MB / 292 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.05513, allocations: 0 / 292 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003177/0.05831, allocations: 0.9634 MB / 292.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.05864, allocations: 95.61 kB / 293 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.05877, allocations: 16 kB / 293 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004682/0.05924, allocations: 36.06 kB / 293.1 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/0.05958, allocations: 99.77 kB / 293.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.247e-05/0.05965, allocations: 19.98 kB / 293.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003591/0.06001, allocations: 217.1 kB / 293.4 MB, free: 12.06 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.06001, allocations: 0 / 293.4 MB, free: 12.06 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007972/0.06081, allocations: 100 kB / 293.5 MB, free: 11.96 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.003655/0.06446, allocations: 408 kB / 293.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.06626, allocations: 497.6 kB / 294.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.06627, allocations: 4 kB / 294.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000982/0.06725, allocations: 278.1 kB / 294.7 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000842/0.06809, allocations: 84.42 kB / 294.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.07047, allocations: 0.9427 MB / 295.7 MB, free: 9.867 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.07069, allocations: 181.8 kB / 295.9 MB, free: 9.664 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.07083, allocations: 46.94 kB / 295.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.07096, allocations: 40.48 kB / 296 MB, free: 9.574 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.07096, allocations: 3.938 kB / 296 MB, free: 9.57 MB / 282.7 MB Notification: Performance of Templates: time 0.01516/0.08612, allocations: 7.422 MB / 303.4 MB, free: 2.219 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.748006070964038]