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.001456/0.001456, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001525/0.001525, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.463/1.463, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001663/0.001663, allocations: 43.92 kB / 371.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2521, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003803/0.2559, allocations: 2.301 MB / 426.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.257, allocations: 0.4915 MB / 426.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.2571, allocations: 7.938 kB / 426.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.2573, allocations: 51.5 kB / 426.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.2575, allocations: 87.33 kB / 426.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005371/0.258, allocations: 195.6 kB / 426.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.2586, allocations: 491 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.2587, allocations: 48.7 kB / 427.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.259, allocations: 219.4 kB / 427.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.2593, allocations: 219.2 kB / 427.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.24e-05/0.2594, allocations: 36 kB / 427.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.2596, allocations: 95.94 kB / 428 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.2597, allocations: 99.66 kB / 428.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.2599, allocations: 159.3 kB / 428.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005788/0.2605, allocations: 469.2 kB / 428.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2605, allocations: 0 / 428.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2605, allocations: 0 / 428.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.2605, allocations: 0 / 428.7 MB, free: 9.531 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.00128/0.2618, allocations: 0.591 MB / 429.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.2618, allocations: 8.031 kB / 429.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.901e-05/0.2619, allocations: 40.7 kB / 429.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.2623, allocations: 226.9 kB / 429.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.424e-05/0.2624, allocations: 21.03 kB / 429.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.215e-05/0.2625, allocations: 32.38 kB / 429.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.2632, allocations: 378.4 kB / 430 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.2632, allocations: 4.188 kB / 430 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.2633, allocations: 15.94 kB / 430 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.2633, allocations: 8 kB / 430 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008047/0.2641, allocations: 406.2 kB / 430.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.266, allocations: 0.9481 MB / 431.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.2666, allocations: 280 kB / 431.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/0.267, allocations: 189.7 kB / 431.8 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.267, allocations: 7.984 kB / 431.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.2671, allocations: 42.5 kB / 431.9 MB, free: 6.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 7.323e-06/0.2671, allocations: 4 kB / 431.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004562/0.2716, allocations: 1.723 MB / 433.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.2717, allocations: 55.41 kB / 433.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.2719, allocations: 232.9 kB / 433.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.272, allocations: 37.7 kB / 433.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2721, allocations: 160.9 kB / 434.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.2723, allocations: 162.7 kB / 434.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.2724, allocations: 94.14 kB / 434.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2726, allocations: 342.8 kB / 434.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.273, allocations: 208.9 kB / 434.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004939/0.2735, allocations: 292.2 kB / 435.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000677/0.2742, allocations: 377.6 kB / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2742, allocations: 0 / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001512/0.2757, allocations: 0.6925 MB / 436.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2758, allocations: 8 kB / 436.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2758, allocations: 0 / 436.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009066/0.2767, allocations: 493.5 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.277, allocations: 75.84 kB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.2784, allocations: 1.386 MB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.2789, allocations: 71.97 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.2789, allocations: 16 kB / 438.3 MB, free: 15.62 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.0002169/0.2791, allocations: 163 kB / 438.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.79e-05/0.2792, allocations: 35.75 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.2793, allocations: 51.3 kB / 438.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2793, allocations: 4 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.2793, allocations: 0 / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2793, allocations: 0 / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.2822, allocations: 1.21 MB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2822, allocations: 0 / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.2824, allocations: 64.12 kB / 439.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007723/0.2832, allocations: 469.3 kB / 440.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-05/0.2833, allocations: 19.98 kB / 440.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001328/0.2846, allocations: 1.343 MB / 441.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.2846, allocations: 7.969 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.2865, allocations: 0.9446 MB / 442.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.2867, allocations: 75.78 kB / 442.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.567e-05/0.2868, allocations: 16 kB / 442.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.2871, allocations: 39.95 kB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.2873, allocations: 87.77 kB / 442.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.2873, allocations: 19.97 kB / 442.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.2875, allocations: 168.5 kB / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2875, allocations: 0 / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004652/0.288, allocations: 104 kB / 443.1 MB, free: 10.66 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.0002555/0.2882, allocations: 139.1 kB / 443.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.2893, allocations: 482.5 kB / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2893, allocations: 4.062 kB / 443.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006533/0.2899, allocations: 276 kB / 443.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.2904, allocations: 52.06 kB / 444 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.2927, allocations: 1.026 MB / 445 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.2929, allocations: 177.8 kB / 445.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.48e-05/0.293, allocations: 35.42 kB / 445.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.293, allocations: 0 / 445.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Templates: time 0.01023/0.3033, allocations: 6.752 MB / 452 MB, free: 1.668 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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: 8.834681035019457]