Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.958/0.958, allocations: 173.4 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.362e-05, allocations: 5.406 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002606/0.002629, allocations: 2.454 MB / 270.4 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008805/0.00351, allocations: 495.2 kB / 270.9 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.003623, allocations: 7.938 kB / 270.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.00386, allocations: 47.58 kB / 271 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.003991, allocations: 99.12 kB / 271.1 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.004465, allocations: 195.6 kB / 271.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.004833, allocations: 498.9 kB / 271.7 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.004971, allocations: 48.84 kB / 271.8 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.005226, allocations: 299.4 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.005453, allocations: 203.5 kB / 272.3 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-05/0.005499, allocations: 36 kB / 272.3 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.005625, allocations: 87.89 kB / 272.4 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.005e-05/0.005715, allocations: 103.7 kB / 272.5 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.005818, allocations: 127.7 kB / 272.6 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.006183, allocations: 378.8 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.006186, allocations: 0 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.006187, allocations: 0 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.006192, allocations: 0 / 273 MB, free: 1.391 MB / 250.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.0007694/0.006961, allocations: 0.6791 MB / 273.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.006996, allocations: 8.922 kB / 273.7 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.007084, allocations: 60.75 kB / 273.7 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.007331, allocations: 232.9 kB / 274 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.007359, allocations: 25.03 kB / 274 MB, free: 336 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.121e-05/0.00741, allocations: 28.38 kB / 274 MB, free: 308 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.007858, allocations: 327.2 kB / 274.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.007873, allocations: 4.141 kB / 274.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.007902, allocations: 12.38 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.007913, allocations: 8.375 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003555/0.008268, allocations: 279.6 kB / 274.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.009378, allocations: 0.9247 MB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.009673, allocations: 222.2 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.009841, allocations: 132.6 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.009876, allocations: 12 kB / 275.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.009899, allocations: 37.33 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.272e-06/0.0099, allocations: 4 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002346/0.01225, allocations: 1.474 MB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.01229, allocations: 55.41 kB / 277.5 MB, free: 12.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.01252, allocations: 280.2 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.01255, allocations: 41.69 kB / 277.8 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.683e-05/0.01265, allocations: 203.7 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.01275, allocations: 154.7 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.01287, allocations: 99.78 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.01299, allocations: 0.5079 MB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.01321, allocations: 148.9 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.01344, allocations: 238.9 kB / 279.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.01379, allocations: 313.3 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.0138, allocations: 0 / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008399/0.01464, allocations: 0.5862 MB / 280 MB, free: 9.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.01466, allocations: 8 kB / 280 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.01466, allocations: 0 / 280 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005309/0.01519, allocations: 431.2 kB / 280.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.01536, allocations: 71.84 kB / 280.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009535/0.01632, allocations: 1.803 MB / 282.3 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.01649, allocations: 47.94 kB / 282.4 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.01652, allocations: 12 kB / 282.4 MB, free: 7.543 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 (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.0001552/0.01667, allocations: 192.3 kB / 282.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/0.01675, allocations: 51.81 kB / 282.6 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.025e-05/0.01681, allocations: 47.3 kB / 282.7 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.01682, allocations: 7.938 kB / 282.7 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.01682, allocations: 0 / 282.7 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.01683, allocations: 3.984 kB / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.01828, allocations: 1.141 MB / 283.8 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.01829, allocations: 160 / 283.8 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.01844, allocations: 63.91 kB / 283.9 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004416/0.01889, allocations: 419 kB / 284.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.01891, allocations: 15.98 kB / 284.3 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000743/0.01966, allocations: 1.791 MB / 286.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01966, allocations: 4 kB / 286.1 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000901/0.02056, allocations: 0.8432 MB / 287 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.02067, allocations: 75.78 kB / 287 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/0.02072, allocations: 16 kB / 287 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.02083, allocations: 27.97 kB / 287.1 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.02096, allocations: 91.75 kB / 287.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.02098, allocations: 23.98 kB / 287.2 MB, free: 2.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.02109, allocations: 197.1 kB / 287.4 MB, free: 2.352 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02109, allocations: 0 / 287.4 MB, free: 2.352 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002844/0.02137, allocations: 103.9 kB / 287.5 MB, free: 2.25 MB / 266.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.0001657/0.02154, allocations: 139.1 kB / 287.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005539/0.02209, allocations: 401.8 kB / 288 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.02209, allocations: 0 / 288 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.02234, allocations: 245.2 kB / 288.2 MB, free: 1.465 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.02265, allocations: 71.8 kB / 288.3 MB, free: 1.398 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.02377, allocations: 0.8411 MB / 289.2 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.437e-05/0.02382, allocations: 97.28 kB / 289.3 MB, free: 400 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.184e-05/0.0239, allocations: 34.97 kB / 289.3 MB, free: 368 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.271e-05/0.02396, allocations: 32.48 kB / 289.3 MB, free: 336 kB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02396, allocations: 0 / 289.3 MB, free: 336 kB / 266.7 MB Notification: Performance of Templates: time 0.1257/0.1497, allocations: 7.35 MB / 296.7 MB, free: 29.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.0655912621878088]