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.001852/0.001852, allocations: 112.2 kB / 19.04 MB, free: 3.254 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.001888/0.001888, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 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.442/1.442, allocations: 225.6 MB / 250.8 MB, free: 13.36 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.001517/0.001517, allocations: 51.92 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2468, allocations: 52.15 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003702/0.2505, allocations: 2.46 MB / 423.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009934/0.2515, allocations: 0.4992 MB / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.2516, allocations: 0 / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.2518, allocations: 51.52 kB / 423.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.252, allocations: 83.33 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.2525, allocations: 195.6 kB / 424.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005125/0.253, allocations: 491.1 kB / 424.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.2532, allocations: 48.72 kB / 424.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.2534, allocations: 211.4 kB / 424.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.2537, allocations: 239.2 kB / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.511e-05/0.2538, allocations: 40 kB / 425.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.254, allocations: 95.88 kB / 425.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.2541, allocations: 99.7 kB / 425.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2543, allocations: 183.1 kB / 425.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005499/0.2548, allocations: 467.5 kB / 426 MB, free: 9.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2548, allocations: 0 / 426 MB, free: 9.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2548, allocations: 4 kB / 426 MB, free: 9.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2548, allocations: 0 / 426 MB, free: 9.977 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.001285/0.2561, allocations: 0.6662 MB / 426.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2562, allocations: 12.03 kB / 426.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.106e-05/0.2562, allocations: 36.7 kB / 426.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.2567, allocations: 288.7 kB / 427 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.2567, allocations: 24.88 kB / 427 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.2568, allocations: 28.38 kB / 427 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.2575, allocations: 381.2 kB / 427.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.2575, allocations: 12.17 kB / 427.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.2576, allocations: 11.94 kB / 427.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.2576, allocations: 8 kB / 427.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008/0.2584, allocations: 401.9 kB / 427.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.2604, allocations: 1.108 MB / 428.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005542/0.2609, allocations: 279.6 kB / 429.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.2613, allocations: 185.8 kB / 429.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.351e-05/0.2613, allocations: 8 kB / 429.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.2614, allocations: 46.44 kB / 429.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.833e-06/0.2614, allocations: 0 / 429.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004658/0.266, allocations: 2.026 MB / 431.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.2661, allocations: 55.41 kB / 431.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.2664, allocations: 241 kB / 431.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.083e-05/0.2665, allocations: 37.7 kB / 431.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.2666, allocations: 164.9 kB / 431.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.2668, allocations: 154.7 kB / 432.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.267, allocations: 98.19 kB / 432.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2672, allocations: 338.8 kB / 432.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.2676, allocations: 209 kB / 432.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004885/0.2681, allocations: 284.8 kB / 433 MB, free: 2.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.2688, allocations: 385.7 kB / 433.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2688, allocations: 0 / 433.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001451/0.2702, allocations: 0.6847 MB / 434.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.2702, allocations: 8 kB / 434.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2703, allocations: 0 / 434.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009286/0.2712, allocations: 497.5 kB / 434.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002975/0.2715, allocations: 75.84 kB / 434.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.2729, allocations: 1.394 MB / 436 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/0.2733, allocations: 63.95 kB / 436.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/0.2734, allocations: 23.98 kB / 436.1 MB, free: 15.34 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.0002323/0.2736, allocations: 162.3 kB / 436.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.2737, allocations: 35.75 kB / 436.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.2738, allocations: 51.3 kB / 436.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.2738, allocations: 4 kB / 436.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.2738, allocations: 0 / 436.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.2738, allocations: 3.984 kB / 436.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.2767, allocations: 1.341 MB / 437.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2767, allocations: 0 / 437.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.277, allocations: 63.84 kB / 437.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007755/0.2777, allocations: 465.5 kB / 438.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.2778, allocations: 23.97 kB / 438.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.2791, allocations: 1.335 MB / 439.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2791, allocations: 0 / 439.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.2809, allocations: 0.9408 MB / 440.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.2811, allocations: 148.9 kB / 440.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.053e-05/0.2812, allocations: 23.94 kB / 440.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.2815, allocations: 35.95 kB / 440.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002112/0.2817, allocations: 87.86 kB / 440.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.2817, allocations: 23.92 kB / 440.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.2819, allocations: 172.5 kB / 441 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2819, allocations: 0 / 441 MB, free: 10.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.2824, allocations: 107.9 kB / 441.1 MB, free: 10.14 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.0002749/0.2827, allocations: 135.1 kB / 441.2 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.2839, allocations: 487 kB / 441.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2839, allocations: 0 / 441.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006349/0.2845, allocations: 287.6 kB / 442 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.2851, allocations: 57.22 kB / 442.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.2874, allocations: 0.9785 MB / 443 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.2878, allocations: 0.7839 MB / 443.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.288, allocations: 30.97 kB / 443.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.958e-05/0.2881, allocations: 35.42 kB / 443.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2881, allocations: 0 / 443.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Templates: time 0.01587/0.3039, allocations: 9.083 MB / 453 MB, free: 14.25 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.631139769218862]