Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009502/0.0009502, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9594/0.9594, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.004784/0.004784, allocations: 1.19 MB / 261.1 MB, free: 11.9 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricBraking.Examples.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") translateModel(ElectricBraking.Examples.Translational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 331.1 MB, free: 18.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.655e-05/1.845e-05, allocations: 6.312 kB / 331.1 MB, free: 18.3 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.0028/0.002819, allocations: 2.51 MB / 333.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.003885, allocations: 0.939 MB / 334.6 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.00399, allocations: 8 kB / 334.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.00432, allocations: 87.33 kB / 334.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.004527, allocations: 119 kB / 334.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.004685, allocations: 103.8 kB / 334.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003277/0.007962, allocations: 375.2 kB / 335.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.008078, allocations: 45.19 kB / 335.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.00835, allocations: 219.5 kB / 335.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.008519, allocations: 139.6 kB / 335.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.008556, allocations: 24 kB / 335.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.008666, allocations: 79.86 kB / 335.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.622e-05/0.008763, allocations: 79.72 kB / 335.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.229e-05/0.008845, allocations: 95.75 kB / 335.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.009141, allocations: 291 kB / 336.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.009143, allocations: 0 / 336.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.009145, allocations: 3.984 kB / 336.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.009149, allocations: 7.938 kB / 336.2 MB, free: 13.18 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000672/0.009821, allocations: 0.6205 MB / 336.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.009855, allocations: 8.031 kB / 336.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.394e-05/0.009939, allocations: 48.73 kB / 336.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.01018, allocations: 236.8 kB / 337.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.01021, allocations: 16.88 kB / 337.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.01025, allocations: 24.38 kB / 337.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.01058, allocations: 240.5 kB / 337.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.0106, allocations: 4.188 kB / 337.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.01062, allocations: 8.375 kB / 337.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.01063, allocations: 7.938 kB / 337.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006782/0.01131, allocations: 138.9 kB / 337.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008554/0.01217, allocations: 0.9311 MB / 338.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.0124, allocations: 154.9 kB / 338.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.468e-05/0.01249, allocations: 63.75 kB / 338.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.01251, allocations: 4 kB / 338.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.01253, allocations: 41.39 kB / 338.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.01253, allocations: 4 kB / 338.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.001427/0.01396, allocations: 0.8374 MB / 339.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.01398, allocations: 59.34 kB / 339.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.01413, allocations: 272.3 kB / 339.9 MB, free: 9.227 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.01415, allocations: 37.69 kB / 340 MB, free: 9.184 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.837e-05/0.01421, allocations: 203.4 kB / 340.1 MB, free: 8.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.01426, allocations: 91.22 kB / 340.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.01432, allocations: 71.3 kB / 340.3 MB, free: 8.812 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.132e-05/0.01437, allocations: 0.504 MB / 340.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.058e-05/0.01446, allocations: 67.97 kB / 340.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.965e-05/0.01456, allocations: 153.4 kB / 341 MB, free: 8.043 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.01471, allocations: 211.7 kB / 341.2 MB, free: 7.801 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.01471, allocations: 0 / 341.2 MB, free: 7.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004604/0.01517, allocations: 318.3 kB / 341.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.01519, allocations: 4 kB / 341.5 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01519, allocations: 7.984 kB / 341.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002629/0.01546, allocations: 139.8 kB / 341.7 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.01559, allocations: 39.98 kB / 341.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003653/0.01595, allocations: 0.8818 MB / 342.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.01609, allocations: 23.97 kB / 342.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.01611, allocations: 19.97 kB / 342.7 MB, free: 6.332 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 8.295e-05/0.0162, allocations: 177.4 kB / 342.8 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.01624, allocations: 31.86 kB / 342.9 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.01627, allocations: 34.28 kB / 342.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.01628, allocations: 0 / 342.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01628, allocations: 0 / 342.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01628, allocations: 3.984 kB / 342.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006549/0.01694, allocations: 0.6873 MB / 343.6 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01694, allocations: 0 / 343.6 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.379e-05/0.01703, allocations: 39.98 kB / 343.6 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/0.01718, allocations: 135.6 kB / 343.8 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.0172, allocations: 7.984 kB / 343.8 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002396/0.01744, allocations: 0.8702 MB / 344.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01744, allocations: 3.938 kB / 344.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.01784, allocations: 491.6 kB / 345.1 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.0179, allocations: 51.86 kB / 345.2 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.01793, allocations: 11.98 kB / 345.2 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.01801, allocations: 19.92 kB / 345.2 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/0.01808, allocations: 43.91 kB / 345.2 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.0181, allocations: 11.98 kB / 345.3 MB, free: 3.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.182e-05/0.01817, allocations: 197.1 kB / 345.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01817, allocations: 4 kB / 345.5 MB, free: 3.402 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001997/0.01837, allocations: 67.94 kB / 345.5 MB, free: 3.336 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (massLoad.s,massLoad.v,integrator.y,heatCapacitor.T) * Number of discrete variables: 5 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 3 (brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000658/0.01903, allocations: 342.4 kB / 345.9 MB, free: 3.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002981/0.01933, allocations: 209 kB / 346.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.01933, allocations: 8.062 kB / 346.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.01945, allocations: 122.9 kB / 346.2 MB, free: 2.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.01971, allocations: 55.91 kB / 346.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.02082, allocations: 0.6892 MB / 346.9 MB, free: 1.996 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.742e-05/0.02086, allocations: 92 kB / 347 MB, free: 1.887 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.02091, allocations: 30.27 kB / 347 MB, free: 1.859 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.02096, allocations: 24.5 kB / 347.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02096, allocations: 0 / 347.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of Templates: time 0.00641/0.02737, allocations: 4.955 MB / 352 MB, free: 12.93 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Translational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9847141760401428]