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.001813/0.001813, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001847/0.001847, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 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.539/1.539, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 1.323e-06/1.323e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.535e-05/2.667e-05, allocations: 6.25 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004169/0.004196, allocations: 2.42 MB / 269.7 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.00529, allocations: 495.1 kB / 270.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.005403, allocations: 11.94 kB / 270.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.005612, allocations: 43.58 kB / 270.3 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.005793, allocations: 87.2 kB / 270.3 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.006328, allocations: 203.5 kB / 270.5 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000587/0.006915, allocations: 0.495 MB / 271 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.007066, allocations: 52.83 kB / 271.1 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.007474, allocations: 295.4 kB / 271.4 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.007811, allocations: 199.5 kB / 271.6 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.99e-05/0.007891, allocations: 36 kB / 271.6 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.008082, allocations: 87.94 kB / 271.7 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.00824, allocations: 103.6 kB / 271.8 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.008417, allocations: 127.7 kB / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000677/0.009094, allocations: 0.5024 MB / 272.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.009097, allocations: 0 / 272.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.009098, allocations: 0 / 272.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.009108, allocations: 4 kB / 272.4 MB, free: 1.609 MB / 250.7 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.001339/0.01045, allocations: 0.6866 MB / 273.1 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.01049, allocations: 12.92 kB / 273.1 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.01063, allocations: 60.64 kB / 273.2 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.01103, allocations: 236.9 kB / 273.4 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/0.01107, allocations: 24.97 kB / 273.4 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.368e-05/0.01115, allocations: 28.38 kB / 273.5 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.01191, allocations: 374.5 kB / 273.8 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.01193, allocations: 8.141 kB / 273.8 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.466e-05/0.01198, allocations: 8.375 kB / 273.8 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.01199, allocations: 8.375 kB / 273.9 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000886/0.01287, allocations: 390.3 kB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.01497, allocations: 1.028 MB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005789/0.01555, allocations: 276.7 kB / 275.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.01592, allocations: 184.5 kB / 275.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.01598, allocations: 4 kB / 275.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.01602, allocations: 49.33 kB / 275.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.823e-06/0.01602, allocations: 0 / 275.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.004755/0.02078, allocations: 1.7 MB / 277.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.02083, allocations: 63.34 kB / 277.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.02117, allocations: 312.2 kB / 277.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/0.02123, allocations: 45.69 kB / 277.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.02139, allocations: 199.8 kB / 278.1 MB, free: 11.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.02156, allocations: 170.7 kB / 278.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.02176, allocations: 111.8 kB / 278.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.02206, allocations: 0.5196 MB / 278.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/0.02249, allocations: 208.9 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000517/0.023, allocations: 306.9 kB / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007435/0.02375, allocations: 417.3 kB / 279.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.02375, allocations: 0 / 279.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001647/0.0254, allocations: 0.723 MB / 280.5 MB, free: 9.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.02541, allocations: 6.969 kB / 280.5 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.02542, allocations: 4 kB / 280.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009559/0.02638, allocations: 487.2 kB / 281 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.02668, allocations: 79.89 kB / 281.1 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.02849, allocations: 1.92 MB / 283 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004578/0.02894, allocations: 48.02 kB / 283 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.02899, allocations: 19.98 kB / 283.1 MB, free: 6.531 MB / 266.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 (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.0002269/0.02922, allocations: 208.2 kB / 283.3 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.02933, allocations: 43.81 kB / 283.3 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.02948, allocations: 51.3 kB / 283.3 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.02948, allocations: 7.938 kB / 283.4 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.02949, allocations: 0 / 283.4 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.02949, allocations: 0 / 283.4 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.03244, allocations: 1.297 MB / 284.7 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.03244, allocations: 0 / 284.7 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.03273, allocations: 59.91 kB / 284.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008293/0.03356, allocations: 467.1 kB / 285.2 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.408e-05/0.0336, allocations: 15.98 kB / 285.2 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.0353, allocations: 1.877 MB / 287.1 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.0353, allocations: 64 / 287.1 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.03731, allocations: 1.019 MB / 288.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.03751, allocations: 83.66 kB / 288.2 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.874e-05/0.03758, allocations: 16 kB / 288.2 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.03785, allocations: 31.97 kB / 288.2 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.03807, allocations: 91.77 kB / 288.3 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.03812, allocations: 24.09 kB / 288.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002037/0.03832, allocations: 213.1 kB / 288.5 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03832, allocations: 0 / 288.5 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004543/0.03878, allocations: 100 kB / 288.6 MB, free: 0.7461 MB / 266.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002604/0.03904, allocations: 146.7 kB / 288.8 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.04017, allocations: 0.5092 MB / 289.3 MB, free: 88 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.04017, allocations: 0 / 289.3 MB, free: 88 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.09585/0.136, allocations: 281.7 kB / 289.6 MB, free: 33.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.1367, allocations: 71.06 kB / 289.6 MB, free: 33.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.1386, allocations: 0.8784 MB / 290.5 MB, free: 32.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.1388, allocations: 171.8 kB / 290.7 MB, free: 32.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1389, allocations: 30.77 kB / 290.7 MB, free: 32.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.977e-05/0.139, allocations: 32.52 kB / 290.7 MB, free: 32.63 MB / 266.7 MB Notification: Performance of SimCode: time 1.312e-06/0.139, allocations: 3.688 kB / 290.7 MB, free: 32.63 MB / 266.7 MB Notification: Performance of Templates: time 0.0134/0.1524, allocations: 7.317 MB / 298.1 MB, free: 30.72 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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.745200686971657]