Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001538/0.001538, allocations: 119.3 kB / 21.18 MB, free: 0.6289 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.001611/0.001611, allocations: 206.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.393/1.393, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 68.06 kB / 378.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2403, allocations: 53.32 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004256/0.2445, allocations: 2.593 MB / 434.6 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.2461, allocations: 0.5889 MB / 435.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.2463, allocations: 4 kB / 435.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.2466, allocations: 67.42 kB / 435.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004462/0.2471, allocations: 135 kB / 435.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.2476, allocations: 171.6 kB / 435.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008286/0.2484, allocations: 0.5108 MB / 436.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.2486, allocations: 52.66 kB / 436.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.249, allocations: 219.4 kB / 436.4 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.2495, allocations: 263.1 kB / 436.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.2497, allocations: 40 kB / 436.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.2499, allocations: 91.98 kB / 436.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.2501, allocations: 107.6 kB / 436.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.2504, allocations: 207 kB / 437.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008749/0.2513, allocations: 0.4997 MB / 437.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2513, allocations: 4 kB / 437.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2513, allocations: 0 / 437.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.2513, allocations: 0 / 437.6 MB, free: 1.844 MB / 334.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.002057/0.2534, allocations: 0.7166 MB / 438.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2534, allocations: 8.031 kB / 438.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.2536, allocations: 44.7 kB / 438.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006801/0.2542, allocations: 295.7 kB / 438.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.602e-05/0.2543, allocations: 25.03 kB / 438.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.2544, allocations: 36.38 kB / 438.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2555, allocations: 374.5 kB / 439 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/0.2556, allocations: 8.141 kB / 439 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.2556, allocations: 11.94 kB / 439.1 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.2557, allocations: 8 kB / 439.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.257, allocations: 394.3 kB / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.2598, allocations: 1.128 MB / 440.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006514/0.2604, allocations: 318.5 kB / 440.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003806/0.2608, allocations: 176.8 kB / 441.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.2609, allocations: 7.984 kB / 441.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2609, allocations: 38.56 kB / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.354e-06/0.2609, allocations: 0 / 441.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005124/0.266, allocations: 2.004 MB / 443.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.2661, allocations: 63.84 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.2664, allocations: 249 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.848e-05/0.2665, allocations: 45.69 kB / 443.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.2666, allocations: 157 kB / 443.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.2668, allocations: 170.6 kB / 443.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.267, allocations: 98.19 kB / 443.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.2671, allocations: 342.8 kB / 444.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.2675, allocations: 189 kB / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.268, allocations: 276.7 kB / 444.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006569/0.2686, allocations: 353.6 kB / 445 MB, free: 9.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2686, allocations: 0 / 445 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001316/0.2699, allocations: 0.6067 MB / 445.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.27, allocations: 8.156 kB / 445.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.27, allocations: 4 kB / 445.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007375/0.2707, allocations: 345.5 kB / 446 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.271, allocations: 67.91 kB / 446 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.2726, allocations: 1.362 MB / 447.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004546/0.273, allocations: 71.86 kB / 447.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.273, allocations: 16.06 kB / 447.5 MB, free: 7.422 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.0002271/0.2733, allocations: 171.3 kB / 447.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.2734, allocations: 39.75 kB / 447.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.2735, allocations: 51.61 kB / 447.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.2735, allocations: 4 kB / 447.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.2735, allocations: 0 / 447.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2735, allocations: 0 / 447.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003144/0.2766, allocations: 1.335 MB / 449.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-06/0.2767, allocations: 0 / 449.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.2769, allocations: 59.91 kB / 449.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006314/0.2776, allocations: 309.8 kB / 449.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/0.2776, allocations: 31.89 kB / 449.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.279, allocations: 1.312 MB / 450.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.279, allocations: 4.125 kB / 450.8 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.2809, allocations: 0.9102 MB / 451.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.2812, allocations: 164.8 kB / 451.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.2813, allocations: 16 kB / 451.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003289/0.2816, allocations: 39.95 kB / 451.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.2818, allocations: 87.8 kB / 452 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.52e-05/0.2818, allocations: 27.97 kB / 452 MB, free: 2.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.282, allocations: 176.5 kB / 452.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.282, allocations: 0 / 452.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004425/0.2825, allocations: 104 kB / 452.3 MB, free: 2.402 MB / 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.001437/0.2839, allocations: 373.8 kB / 452.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.285, allocations: 485.4 kB / 453.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.285, allocations: 0 / 453.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005803/0.2856, allocations: 263.8 kB / 453.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005317/0.2861, allocations: 64.53 kB / 453.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.2887, allocations: 1.095 MB / 454.6 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.2893, allocations: 0.7878 MB / 455.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.2894, allocations: 35.42 kB / 455.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2894, allocations: 0 / 455.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Templates: time 0.01122/0.3006, allocations: 7.143 MB / 462.5 MB, free: 8.246 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 7.688860301859677]