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.001195/0.001195, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004853/0.004853, allocations: 158.5 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8327/0.8327, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.242e-06/1.242e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.255e-05, allocations: 3.266 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002432/0.002454, allocations: 2.435 MB / 328.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006789/0.003133, allocations: 0.5695 MB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.776e-05/0.003231, allocations: 7.938 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.003468, allocations: 63.42 kB / 328.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.0037, allocations: 146.9 kB / 329 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.003912, allocations: 171.7 kB / 329.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.004262, allocations: 0.5185 MB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.004396, allocations: 40.92 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.004627, allocations: 319.4 kB / 330 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.004837, allocations: 211.5 kB / 330.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.00489, allocations: 40 kB / 330.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.005006, allocations: 95.92 kB / 330.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.00512, allocations: 119.6 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.499e-05/0.005215, allocations: 139.7 kB / 330.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004177/0.005633, allocations: 0.5414 MB / 331.2 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.005635, allocations: 0 / 331.2 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005636, allocations: 0 / 331.2 MB, free: 10 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.005642, allocations: 4 kB / 331.2 MB, free: 9.996 MB / 298.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.0008145/0.006457, allocations: 0.6491 MB / 331.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.00649, allocations: 8.031 kB / 331.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.006566, allocations: 40.7 kB / 331.9 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.006848, allocations: 229.2 kB / 332.1 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.006871, allocations: 25.03 kB / 332.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.006917, allocations: 28.38 kB / 332.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.007603, allocations: 382.4 kB / 332.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.007619, allocations: 16.14 kB / 332.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.007646, allocations: 8.375 kB / 332.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.007653, allocations: 8.375 kB / 332.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.008125, allocations: 386.3 kB / 332.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.009258, allocations: 0.9486 MB / 333.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.009645, allocations: 311 kB / 334.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.009857, allocations: 188.7 kB / 334.3 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.009889, allocations: 7.938 kB / 334.4 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.00991, allocations: 38.56 kB / 334.4 MB, free: 6.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.452e-06/0.009912, allocations: 3.938 kB / 334.4 MB, free: 6.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002593/0.0125, allocations: 1.701 MB / 336.1 MB, free: 4.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.01253, allocations: 55.91 kB / 336.2 MB, free: 4.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.0127, allocations: 245.7 kB / 336.4 MB, free: 4.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.01273, allocations: 41.7 kB / 336.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.0128, allocations: 157 kB / 336.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.688e-05/0.01288, allocations: 170.6 kB / 336.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.93e-05/0.01298, allocations: 94.3 kB / 336.8 MB, free: 4.055 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.01306, allocations: 342.8 kB / 337.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.0133, allocations: 189.2 kB / 337.4 MB, free: 3.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.01357, allocations: 277.8 kB / 337.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.01394, allocations: 354.6 kB / 338 MB, free: 2.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01394, allocations: 0 / 338 MB, free: 2.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007011/0.01464, allocations: 0.6045 MB / 338.6 MB, free: 2.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.01466, allocations: 11.94 kB / 338.6 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01466, allocations: 0 / 338.6 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004458/0.01511, allocations: 341.5 kB / 338.9 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.01526, allocations: 67.84 kB / 339 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.0163, allocations: 1.362 MB / 340.4 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.0165, allocations: 72.03 kB / 340.4 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.01653, allocations: 16.19 kB / 340.4 MB, free: 332 kB / 298.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.0001253/0.01665, allocations: 177.4 kB / 340.6 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.0167, allocations: 39.7 kB / 340.7 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.617e-05/0.01675, allocations: 51.67 kB / 340.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.01676, allocations: 12 kB / 340.7 MB, free: 40 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.01676, allocations: 3.938 kB / 340.7 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.01677, allocations: 0 / 340.7 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.01824, allocations: 1.193 MB / 341.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.01825, allocations: 4 kB / 341.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.01841, allocations: 63.91 kB / 342 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003467/0.01876, allocations: 301.7 kB / 342.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.01878, allocations: 19.97 kB / 342.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007002/0.01948, allocations: 1.319 MB / 343.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.01948, allocations: 0 / 343.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009957/0.02048, allocations: 0.9043 MB / 344.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.02059, allocations: 79.77 kB / 344.6 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.02063, allocations: 23.98 kB / 344.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.02079, allocations: 35.95 kB / 344.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.02091, allocations: 87.83 kB / 344.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.02093, allocations: 23.98 kB / 344.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001104/0.02105, allocations: 177.2 kB / 344.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02105, allocations: 0 / 344.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.02131, allocations: 103.9 kB / 345 MB, free: 11.57 MB / 314.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.0006167/0.02193, allocations: 396.4 kB / 345.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.02261, allocations: 466 kB / 345.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.02261, allocations: 0 / 345.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003294/0.02294, allocations: 276.3 kB / 346.2 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.02327, allocations: 76.62 kB / 346.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.02483, allocations: 0.9702 MB / 347.2 MB, free: 9.477 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.02494, allocations: 189.5 kB / 347.4 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.02502, allocations: 40.47 kB / 347.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02502, allocations: 0 / 347.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of Templates: time 0.006306/0.03132, allocations: 7.227 MB / 354.7 MB, free: 2 MB / 314.7 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/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_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: 5.0009560957551]