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.0008497/0.0008497, allocations: 80.8 kB / 22.29 MB, free: 2.199 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.000916/0.000916, allocations: 172.5 kB / 25.7 MB, free: 8.391 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.8625/0.8625, allocations: 158.6 MB / 187.6 MB, free: 2.777 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 1.402e-06/1.402e-06, allocations: 0 / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.551e-05, allocations: 6.25 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002371/0.002386, allocations: 2.413 MB / 253.9 MB, free: 4.844 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006824/0.003069, allocations: 0.5076 MB / 254.4 MB, free: 4.332 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.549e-05/0.003154, allocations: 4 kB / 254.4 MB, free: 4.328 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.003326, allocations: 55.5 kB / 254.5 MB, free: 4.273 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.003434, allocations: 91.16 kB / 254.6 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.003792, allocations: 195.6 kB / 254.8 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.004105, allocations: 0.4911 MB / 255.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.004216, allocations: 54.8 kB / 255.3 MB, free: 3.445 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.00443, allocations: 291.5 kB / 255.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.004628, allocations: 199.5 kB / 255.8 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.373e-05/0.004672, allocations: 40 kB / 255.8 MB, free: 2.926 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.00479, allocations: 91.88 kB / 255.9 MB, free: 2.836 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.651e-05/0.004876, allocations: 99.69 kB / 256 MB, free: 2.738 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.514e-05/0.004971, allocations: 131.7 kB / 256.1 MB, free: 2.609 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.005287, allocations: 374.8 kB / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.005289, allocations: 0 / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.00529, allocations: 0 / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.005293, allocations: 0 / 256.5 MB, free: 2.242 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.0006835/0.005977, allocations: 0.5505 MB / 257.1 MB, free: 1.664 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.006009, allocations: 12.02 kB / 257.1 MB, free: 1.652 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.006072, allocations: 44.91 kB / 257.1 MB, free: 1.609 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.006264, allocations: 194.3 kB / 257.3 MB, free: 1.391 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.006286, allocations: 21.03 kB / 257.3 MB, free: 1.371 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.336e-05/0.006329, allocations: 32.31 kB / 257.4 MB, free: 1.34 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.006625, allocations: 291.1 kB / 257.6 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.006636, allocations: 192 / 257.6 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.006658, allocations: 12.38 kB / 257.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.006666, allocations: 12.31 kB / 257.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.006877, allocations: 172.4 kB / 257.8 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008284/0.007705, allocations: 0.7184 MB / 258.6 MB, free: 96 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.007899, allocations: 156.1 kB / 258.7 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.911e-05/0.007998, allocations: 97.75 kB / 258.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.008027, allocations: 8 kB / 258.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.008045, allocations: 38.5 kB / 258.8 MB, free: 15.78 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.302e-06/0.008047, allocations: 0 / 258.8 MB, free: 15.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.001705/0.009752, allocations: 1.18 MB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/0.009777, allocations: 63.39 kB / 260.1 MB, free: 14.47 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.009889, allocations: 209 kB / 260.3 MB, free: 14.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.009921, allocations: 45.69 kB / 260.3 MB, free: 14.2 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.009972, allocations: 137 kB / 260.5 MB, free: 14.06 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.191e-05/0.01005, allocations: 170.6 kB / 260.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.55e-05/0.01015, allocations: 90.09 kB / 260.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.091e-05/0.01022, allocations: 342.8 kB / 261.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.01033, allocations: 88.95 kB / 261.1 MB, free: 13.37 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.01046, allocations: 168.2 kB / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.01066, allocations: 246.5 kB / 261.6 MB, free: 12.92 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01066, allocations: 0 / 261.6 MB, free: 12.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004614/0.01113, allocations: 404 kB / 261.9 MB, free: 12.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.01114, allocations: 7.938 kB / 262 MB, free: 12.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.01115, allocations: 12 kB / 262 MB, free: 12.49 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/0.01154, allocations: 389.4 kB / 262.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.01168, allocations: 71.91 kB / 262.4 MB, free: 12.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000529/0.01221, allocations: 1.19 MB / 263.6 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.01235, allocations: 52.02 kB / 263.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.01237, allocations: 15.98 kB / 263.7 MB, free: 10.73 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.0002041/0.01257, allocations: 140.5 kB / 263.8 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.01262, allocations: 31.97 kB / 263.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.01266, allocations: 47.3 kB / 263.9 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.01266, allocations: 12 kB / 263.9 MB, free: 10.49 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.01267, allocations: 3.938 kB / 263.9 MB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01267, allocations: 0 / 263.9 MB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009676/0.01364, allocations: 0.7862 MB / 264.7 MB, free: 9.652 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01364, allocations: 4 kB / 264.7 MB, free: 9.648 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.01377, allocations: 55.91 kB / 264.7 MB, free: 9.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003518/0.01412, allocations: 377.5 kB / 265.1 MB, free: 9.219 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.01415, allocations: 23.97 kB / 265.1 MB, free: 9.195 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004783/0.01462, allocations: 1.179 MB / 266.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.01463, allocations: 3.938 kB / 266.3 MB, free: 7.961 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005767/0.0152, allocations: 0.5819 MB / 266.9 MB, free: 7.34 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.672e-05/0.01529, allocations: 55.75 kB / 267 MB, free: 7.285 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.01533, allocations: 16 kB / 267 MB, free: 7.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.01544, allocations: 27.97 kB / 267 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.913e-05/0.01554, allocations: 83.95 kB / 267.1 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.01556, allocations: 23.97 kB / 267.1 MB, free: 7.137 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.497e-05/0.0156, allocations: 66.78 kB / 267.2 MB, free: 7.07 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0156, allocations: 0 / 267.2 MB, free: 7.07 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002277/0.01583, allocations: 115.9 kB / 267.3 MB, free: 6.957 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.0001282/0.01596, allocations: 112.3 kB / 267.4 MB, free: 6.84 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.01631, allocations: 294.8 kB / 267.7 MB, free: 6.551 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.01632, allocations: 4.312 kB / 267.7 MB, free: 6.547 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.0165, allocations: 194.1 kB / 267.9 MB, free: 6.355 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.01673, allocations: 80.69 kB / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009492/0.01768, allocations: 0.7575 MB / 268.7 MB, free: 5.473 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.436e-05/0.01774, allocations: 97.28 kB / 268.8 MB, free: 5.355 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.224e-05/0.01781, allocations: 30.97 kB / 268.8 MB, free: 5.328 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.01792, allocations: 103.3 kB / 268.9 MB, free: 5.227 MB / 250.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01792, allocations: 4 kB / 268.9 MB, free: 5.223 MB / 250.7 MB Notification: Performance of Templates: time 0.008262/0.02619, allocations: 8.055 MB / 277 MB, free: 13.2 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",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.7076486670412123]