Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001009/0.001009, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001147/0.001147, allocations: 160.2 kB / 24.91 MB, free: 8.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9368/0.9368, allocations: 177 MB / 205.2 MB, free: 5.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 273.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.959e-06/1.098e-05, allocations: 6.25 kB / 273.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003126/0.003137, allocations: 2.588 MB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000921/0.004058, allocations: 0.5926 MB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.004158, allocations: 4 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.004396, allocations: 71.3 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.004658, allocations: 139 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.004922, allocations: 171.6 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.005477, allocations: 0.5263 MB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.005597, allocations: 50.84 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.005909, allocations: 315.5 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.006167, allocations: 211.5 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.006224, allocations: 40 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.006364, allocations: 95.91 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.006477, allocations: 111.7 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.006604, allocations: 147.6 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.007006, allocations: 410.6 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.007007, allocations: 0 / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.007008, allocations: 0 / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.007012, allocations: 0 / 278.8 MB, free: 11.7 MB / 266.7 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.000768/0.00778, allocations: 0.5892 MB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.007813, allocations: 12.03 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.231e-05/0.007896, allocations: 44.91 kB / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.008167, allocations: 217.9 kB / 279.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.008198, allocations: 25.03 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.085e-05/0.008248, allocations: 32.38 kB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.008624, allocations: 274.4 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.00864, allocations: 4.141 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.008667, allocations: 12.38 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.008677, allocations: 12.38 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.008974, allocations: 171 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.01028, allocations: 0.713 MB / 280.9 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.01055, allocations: 175.2 kB / 281.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.01068, allocations: 92.77 kB / 281.2 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.0107, allocations: 8 kB / 281.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.01073, allocations: 38.56 kB / 281.2 MB, free: 9.168 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/0.01073, allocations: 3.938 kB / 281.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.0022/0.01293, allocations: 1.193 MB / 282.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.01296, allocations: 63.84 kB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.01312, allocations: 226.6 kB / 282.7 MB, free: 7.605 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.01316, allocations: 45.7 kB / 282.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.01322, allocations: 145 kB / 282.9 MB, free: 7.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.01333, allocations: 174.6 kB / 283.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.01345, allocations: 94.23 kB / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.01354, allocations: 342.8 kB / 283.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.01368, allocations: 85.27 kB / 283.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.01385, allocations: 153.9 kB / 283.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.01411, allocations: 237.4 kB / 284 MB, free: 6.281 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01411, allocations: 4 kB / 284 MB, free: 6.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0004784/0.01459, allocations: 336 kB / 284.3 MB, free: 5.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.0146, allocations: 15.27 kB / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.01461, allocations: 0 / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.01503, allocations: 257.5 kB / 284.6 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.01522, allocations: 75.91 kB / 284.6 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006524/0.01587, allocations: 1.17 MB / 285.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.01607, allocations: 51.89 kB / 285.9 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.0161, allocations: 15.98 kB / 285.9 MB, free: 4.301 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 (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.0001134/0.01621, allocations: 144.6 kB / 286 MB, free: 4.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.01628, allocations: 39.97 kB / 286.1 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.988e-05/0.01634, allocations: 47.61 kB / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.01634, allocations: 4 kB / 286.1 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.01634, allocations: 7.938 kB / 286.1 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.01635, allocations: 7.922 kB / 286.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.01764, allocations: 0.7799 MB / 286.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.01764, allocations: 0 / 286.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.01783, allocations: 59.91 kB / 287 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003502/0.01818, allocations: 245.7 kB / 287.2 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.01821, allocations: 15.98 kB / 287.2 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007205/0.01893, allocations: 1.165 MB / 288.4 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.01893, allocations: 0 / 288.4 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007349/0.01967, allocations: 0.5678 MB / 289 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.01978, allocations: 47.78 kB / 289 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.01983, allocations: 19.94 kB / 289 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.02, allocations: 31.97 kB / 289.1 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.02015, allocations: 91.75 kB / 289.1 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.02018, allocations: 11.98 kB / 289.2 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.022e-05/0.02025, allocations: 74.78 kB / 289.2 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02025, allocations: 0 / 289.2 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003296/0.02058, allocations: 104 kB / 289.3 MB, free: 0.6875 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/0.02159, allocations: 452.6 kB / 289.8 MB, free: 408 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004553/0.02205, allocations: 294.6 kB / 290.1 MB, free: 112 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.02205, allocations: 0 / 290.1 MB, free: 112 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.09041/0.1125, allocations: 186.7 kB / 290.2 MB, free: 25.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.1128, allocations: 91.52 kB / 290.3 MB, free: 25.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.1141, allocations: 0.8123 MB / 291.1 MB, free: 25.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.322e-05/0.1142, allocations: 104.3 kB / 291.2 MB, free: 25.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1143, allocations: 32.66 kB / 291.3 MB, free: 25.47 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.1144, allocations: 114.2 kB / 291.4 MB, free: 25.43 MB / 266.7 MB Notification: Performance of SimCode: time 1.362e-06/0.1144, allocations: 1.438 kB / 291.4 MB, free: 25.43 MB / 266.7 MB Notification: Performance of Templates: time 0.01026/0.1247, allocations: 8.051 MB / 299.4 MB, free: 23.52 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.830816446337849]