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.001502/0.001502, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 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.00166/0.00166, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 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 1.625/1.625, allocations: 230.2 MB / 255.2 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001894/0.001894, allocations: 59.91 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1154, allocations: 53.32 MB / 427.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004308/0.1197, allocations: 2.585 MB / 430.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1208, allocations: 0.5655 MB / 431 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.121, allocations: 8 kB / 431 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.1213, allocations: 75.41 kB / 431.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.1216, allocations: 131 kB / 431.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.1219, allocations: 163.8 kB / 431.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005938/0.1225, allocations: 0.5146 MB / 431.9 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.1227, allocations: 48.67 kB / 431.9 MB, free: 408 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.123, allocations: 231.4 kB / 432.1 MB, free: 176 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1956/0.3186, allocations: 249.3 kB / 432.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001993/0.3188, allocations: 40.72 kB / 432.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003058/0.3191, allocations: 91.11 kB / 432.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.3193, allocations: 111.9 kB / 432.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.3195, allocations: 199 kB / 432.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.3202, allocations: 0.5064 MB / 433.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.3202, allocations: 0 / 433.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3202, allocations: 2 kB / 433.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.3202, allocations: 0 / 433.3 MB, free: 8.355 MB / 350.1 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.001312/0.3215, allocations: 0.7132 MB / 434 MB, free: 7.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3216, allocations: 9.938 kB / 434 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.968e-05/0.3217, allocations: 39.3 kB / 434.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.3221, allocations: 303.8 kB / 434.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.3221, allocations: 23.53 kB / 434.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.3222, allocations: 33.78 kB / 434.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006667/0.3228, allocations: 373.2 kB / 434.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.3228, allocations: 11.25 kB / 434.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.658e-05/0.3229, allocations: 17.33 kB / 434.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3229, allocations: 4.312 kB / 434.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.3237, allocations: 390.8 kB / 435.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.3256, allocations: 1.131 MB / 436.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.3262, allocations: 311.5 kB / 436.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003621/0.3266, allocations: 179 kB / 436.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.993e-05/0.3266, allocations: 4.703 kB / 436.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.3266, allocations: 43.7 kB / 436.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.753e-06/0.3266, allocations: 0.875 kB / 436.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004749/0.3314, allocations: 2.002 MB / 438.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.3314, allocations: 64.44 kB / 438.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.3317, allocations: 250 kB / 439.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.3317, allocations: 44.75 kB / 439.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.891e-05/0.3318, allocations: 159.4 kB / 439.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.3319, allocations: 181.1 kB / 439.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.3321, allocations: 92.55 kB / 439.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.3322, allocations: 344.7 kB / 440 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.3326, allocations: 191.7 kB / 440.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/0.333, allocations: 268.3 kB / 440.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.3336, allocations: 353.1 kB / 440.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3336, allocations: 1.125 kB / 440.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001168/0.3348, allocations: 0.6003 MB / 441.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3348, allocations: 6.453 kB / 441.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3348, allocations: 2.812 kB / 441.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007283/0.3355, allocations: 345.8 kB / 441.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.3358, allocations: 70.48 kB / 441.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.3369, allocations: 1.368 MB / 443.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.3374, allocations: 69.58 kB / 443.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.3374, allocations: 18.47 kB / 443.2 MB, free: 3.246 MB / 350.1 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.0002231/0.3377, allocations: 160.2 kB / 443.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3378, allocations: 40.09 kB / 443.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.3379, allocations: 52.7 kB / 443.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3379, allocations: 5.031 kB / 443.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.3379, allocations: 1.406 kB / 443.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3379, allocations: 2.797 kB / 443.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.3408, allocations: 1.344 MB / 444.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3408, allocations: 2.219 kB / 444.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.341, allocations: 57.06 kB / 444.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006105/0.3416, allocations: 309.3 kB / 445.2 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/0.3417, allocations: 19.33 kB / 445.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009782/0.3427, allocations: 1.315 MB / 446.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3427, allocations: 4.719 kB / 446.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.3444, allocations: 0.9101 MB / 447.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.3446, allocations: 157.5 kB / 447.6 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.413e-05/0.3447, allocations: 20.45 kB / 447.6 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.345, allocations: 36.5 kB / 447.7 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.3452, allocations: 93.25 kB / 447.8 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/0.3453, allocations: 21.27 kB / 447.8 MB, free: 408 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.3454, allocations: 183.1 kB / 448 MB, free: 300 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3454, allocations: 0 / 448 MB, free: 300 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005041/0.346, allocations: 100.6 kB / 448.1 MB, free: 284 kB / 350.1 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.001291/0.3472, allocations: 381.9 kB / 448.4 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.3484, allocations: 475.8 kB / 448.9 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3484, allocations: 400 / 448.9 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.3493, allocations: 297 kB / 449.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.3498, allocations: 75.08 kB / 449.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3525, allocations: 1.079 MB / 450.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.353, allocations: 0.7877 MB / 451.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.3531, allocations: 39.03 kB / 451.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3531, allocations: 0 / 451.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of Templates: time 0.01146/0.3646, allocations: 7.131 MB / 458.3 MB, free: 12.36 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.616592895006761]