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.00122/0.00122, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001325/0.001325, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.413/1.413, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001594/0.001594, allocations: 47.92 kB / 370.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2417, allocations: 52.18 MB / 423.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00406/0.2457, allocations: 2.476 MB / 425.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2469, allocations: 0.5031 MB / 426.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.247, allocations: 7.938 kB / 426.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.2472, allocations: 47.52 kB / 426.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.2474, allocations: 79.34 kB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.2479, allocations: 203.6 kB / 426.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005459/0.2484, allocations: 491 kB / 426.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.2486, allocations: 44.92 kB / 426.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002815/0.2489, allocations: 223.4 kB / 427.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.2492, allocations: 239.2 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.221e-05/0.2493, allocations: 36 kB / 427.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.2495, allocations: 87.95 kB / 427.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.2497, allocations: 103.7 kB / 427.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.2499, allocations: 183.2 kB / 427.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006496/0.2505, allocations: 471.5 kB / 428.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2505, allocations: 0 / 428.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2505, allocations: 0 / 428.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.2505, allocations: 0 / 428.2 MB, free: 9.574 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0015/0.252, allocations: 0.5949 MB / 428.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.2521, allocations: 8.031 kB / 428.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.2522, allocations: 44.69 kB / 428.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.2528, allocations: 222.9 kB / 429.1 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.06e-05/0.2528, allocations: 21.03 kB / 429.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.569e-05/0.2529, allocations: 36.38 kB / 429.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.2538, allocations: 374.5 kB / 429.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.2538, allocations: 192 / 429.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.027e-05/0.2539, allocations: 15.94 kB / 429.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2539, allocations: 11.94 kB / 429.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008796/0.2548, allocations: 406.3 kB / 430 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.2569, allocations: 1.072 MB / 431 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.2574, allocations: 271.6 kB / 431.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.2578, allocations: 197.7 kB / 431.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.2579, allocations: 11.97 kB / 431.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.2579, allocations: 42.5 kB / 431.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.824e-06/0.2579, allocations: 0 / 431.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00491/0.2628, allocations: 1.715 MB / 433.3 MB, free: 4.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.2629, allocations: 59.41 kB / 433.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.2632, allocations: 240.9 kB / 433.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.2632, allocations: 41.7 kB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2634, allocations: 153 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.2635, allocations: 162.7 kB / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.2637, allocations: 90.14 kB / 434 MB, free: 3.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.2639, allocations: 350.7 kB / 434.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.2643, allocations: 204.9 kB / 434.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.2648, allocations: 288.2 kB / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006995/0.2655, allocations: 377.7 kB / 435.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2655, allocations: 0 / 435.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001578/0.2671, allocations: 0.6925 MB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2671, allocations: 4 kB / 435.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.2671, allocations: 4 kB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009612/0.2681, allocations: 493.5 kB / 436.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.2684, allocations: 71.91 kB / 436.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.2698, allocations: 1.394 MB / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.2703, allocations: 67.91 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.2703, allocations: 16.12 kB / 437.9 MB, free: 15.53 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 (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.0002223/0.2705, allocations: 170.9 kB / 438.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.2706, allocations: 35.75 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.2708, allocations: 47.3 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2708, allocations: 4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2708, allocations: 0 / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.2708, allocations: 0 / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.2738, allocations: 1.307 MB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2738, allocations: 3.938 kB / 439.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002936/0.2741, allocations: 59.97 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008134/0.2749, allocations: 473.4 kB / 440 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.2749, allocations: 15.98 kB / 440 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.2763, allocations: 1.347 MB / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2763, allocations: 0 / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.2783, allocations: 0.9446 MB / 442.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.2785, allocations: 75.8 kB / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.546e-05/0.2786, allocations: 23.94 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.2789, allocations: 31.95 kB / 442.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.2791, allocations: 91.83 kB / 442.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.2791, allocations: 23.97 kB / 442.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.2794, allocations: 164.5 kB / 442.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2794, allocations: 0 / 442.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.2798, allocations: 107.9 kB / 442.8 MB, free: 10.45 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002529/0.2801, allocations: 139.1 kB / 442.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.2812, allocations: 490.2 kB / 443.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2812, allocations: 4 kB / 443.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006506/0.2819, allocations: 276.6 kB / 443.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.2824, allocations: 56.48 kB / 443.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.2851, allocations: 0.9893 MB / 444.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.2855, allocations: 0.7762 MB / 445.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.2857, allocations: 30.97 kB / 445.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.255e-05/0.2858, allocations: 35.42 kB / 445.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2858, allocations: 0 / 445.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of Templates: time 0.01604/0.3018, allocations: 9.199 MB / 454.8 MB, free: 14.43 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.64091466832906]