Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.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.0009888/0.0009888, allocations: 92.22 kB / 19.65 MB, free: 276 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.001099/0.001099, allocations: 173 kB / 23.03 MB, free: 1.543 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.9358/0.9358, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.008559/0.008559, allocations: 1.189 MB / 261.1 MB, free: 11.89 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.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") translateModel(ElectricBraking.Examples.Rotational.MechanicalBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 331.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.194e-05/3.413e-05, allocations: 6.312 kB / 331.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.004073/0.004107, allocations: 2.454 MB / 333.6 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.005542, allocations: 0.9391 MB / 334.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.005719, allocations: 7.938 kB / 334.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.006078, allocations: 79.25 kB / 334.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.006308, allocations: 115.1 kB / 334.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.006494, allocations: 115.8 kB / 334.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.006772, allocations: 355.3 kB / 335.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.006891, allocations: 41.23 kB / 335.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.007228, allocations: 211.5 kB / 335.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.007454, allocations: 131.7 kB / 335.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.007498, allocations: 24 kB / 335.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.007629, allocations: 91.78 kB / 335.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.007737, allocations: 71.73 kB / 335.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.859e-05/0.007826, allocations: 91.8 kB / 335.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.008157, allocations: 287 kB / 336.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.008161, allocations: 0 / 336.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.008163, allocations: 0 / 336.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.008168, allocations: 0 / 336.1 MB, free: 14.33 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.000743/0.008911, allocations: 0.6127 MB / 336.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.008949, allocations: 8.031 kB / 336.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.435e-05/0.009034, allocations: 52.75 kB / 336.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.009314, allocations: 229.8 kB / 337 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.009348, allocations: 16.88 kB / 337 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.009384, allocations: 20.38 kB / 337.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.009706, allocations: 236.3 kB / 337.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.00972, allocations: 4.141 kB / 337.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.009743, allocations: 8.375 kB / 337.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.009753, allocations: 11.92 kB / 337.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.00997, allocations: 145.5 kB / 337.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.01099, allocations: 0.991 MB / 338.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.01121, allocations: 131.2 kB / 338.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.527e-05/0.0113, allocations: 63.67 kB / 338.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.01133, allocations: 4 kB / 338.6 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.01136, allocations: 45.31 kB / 338.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.01136, allocations: 3.984 kB / 338.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009444/0.0123, allocations: 384.3 kB / 339.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.01233, allocations: 59.41 kB / 339.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.01252, allocations: 273.5 kB / 339.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.01254, allocations: 33.69 kB / 339.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.216e-05/0.01262, allocations: 199.1 kB / 339.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.779e-05/0.01267, allocations: 75.42 kB / 339.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.01274, allocations: 55.59 kB / 339.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.01286, allocations: 0.5079 MB / 340.2 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.01296, allocations: 56.53 kB / 340.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.01309, allocations: 155 kB / 340.5 MB, free: 9.715 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.01327, allocations: 185.6 kB / 340.6 MB, free: 9.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01328, allocations: 0 / 340.6 MB, free: 9.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004132/0.01369, allocations: 296.8 kB / 340.9 MB, free: 9.195 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.0137, allocations: 8 kB / 340.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.01371, allocations: 0 / 340.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.01399, allocations: 147.7 kB / 341.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.01409, allocations: 31.98 kB / 341.1 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004438/0.01454, allocations: 0.874 MB / 342 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.01465, allocations: 39.86 kB / 342 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.01467, allocations: 8 kB / 342 MB, free: 8.055 MB / 314.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 (25): * Single equations (assignments): 24 * 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 0.0001026/0.01477, allocations: 176.5 kB / 342.2 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.01482, allocations: 39.73 kB / 342.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.01486, allocations: 29.95 kB / 342.3 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.01487, allocations: 4 kB / 342.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.01487, allocations: 0 / 342.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01487, allocations: 0 / 342.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000648/0.01552, allocations: 0.5947 MB / 342.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.01552, allocations: 0 / 342.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.764e-05/0.01561, allocations: 27.98 kB / 342.9 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.01579, allocations: 123.6 kB / 343 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.01582, allocations: 11.98 kB / 343 MB, free: 6.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004113/0.01623, allocations: 0.8779 MB / 343.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01623, allocations: 0 / 343.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004676/0.0167, allocations: 458.7 kB / 344.4 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.01677, allocations: 51.75 kB / 344.4 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.0168, allocations: 8 kB / 344.4 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.0169, allocations: 24 kB / 344.4 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.059e-05/0.01698, allocations: 39.92 kB / 344.5 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.017, allocations: 15.92 kB / 344.5 MB, free: 5.477 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.866e-05/0.01709, allocations: 188.6 kB / 344.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01709, allocations: 0 / 344.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000229/0.01732, allocations: 67.89 kB / 344.7 MB, free: 5.227 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaLoad.w,integrator.y,heatCapacitor.T,brake.phi) * 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 (14): * Single equations (assignments): 13 * 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.000722/0.01805, allocations: 358.8 kB / 345.1 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003542/0.0184, allocations: 176.7 kB / 345.3 MB, free: 4.812 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.0184, allocations: 0 / 345.3 MB, free: 4.812 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.01854, allocations: 108.3 kB / 345.4 MB, free: 4.703 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.01883, allocations: 53.12 kB / 345.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.02059, allocations: 0.7872 MB / 346.2 MB, free: 3.832 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.84e-05/0.02064, allocations: 84.31 kB / 346.3 MB, free: 3.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.028e-05/0.0207, allocations: 29.92 kB / 346.3 MB, free: 3.703 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.94e-05/0.02075, allocations: 24.5 kB / 346.3 MB, free: 3.68 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02075, allocations: 0 / 346.3 MB, free: 3.68 MB / 314.7 MB Notification: Performance of Templates: time 0.006697/0.02745, allocations: 4.811 MB / 351.2 MB, free: 14.92 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.MechanicalBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.827650222927332]