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.001475/0.001475, allocations: 82.05 kB / 19.87 MB, free: 4.621 MB / 18.57 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.00166/0.00166, allocations: 169.7 kB / 23.28 MB, free: 1.223 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.998/0.998, allocations: 177.1 MB / 203.7 MB, free: 5.508 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.004884/0.004884, allocations: 1.192 MB / 261.4 MB, free: 11.74 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.533e-06/1.533e-06, allocations: 0 / 331.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.323e-05/2.477e-05, allocations: 4.422 kB / 331.6 MB, free: 3.062 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Translational.MechanicalBraking): time 0.003027/0.003052, allocations: 2.475 MB / 334.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.004281, allocations: 0.9428 MB / 335 MB, free: 15.62 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.00441, allocations: 4 kB / 335 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.004742, allocations: 91.22 kB / 335.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.00497, allocations: 119.1 kB / 335.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.005218, allocations: 111.8 kB / 335.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.005581, allocations: 371.3 kB / 335.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.005713, allocations: 37.23 kB / 335.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.006077, allocations: 219.5 kB / 335.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.006253, allocations: 131.6 kB / 336.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.006291, allocations: 28 kB / 336.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.0064, allocations: 91.78 kB / 336.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-05/0.00649, allocations: 75.73 kB / 336.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.199e-05/0.006572, allocations: 103.7 kB / 336.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003206/0.006892, allocations: 287 kB / 336.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.006896, allocations: 0 / 336.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.006897, allocations: 0 / 336.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.006902, allocations: 0 / 336.6 MB, free: 13.98 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007298/0.007632, allocations: 0.6282 MB / 337.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.007669, allocations: 12.02 kB / 337.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.598e-05/0.007745, allocations: 48.75 kB / 337.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.008003, allocations: 232.6 kB / 337.5 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.008027, allocations: 24.86 kB / 337.6 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.00806, allocations: 16.38 kB / 337.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.008325, allocations: 232.5 kB / 337.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.008338, allocations: 4.188 kB / 337.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.008354, allocations: 4.375 kB / 337.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.008361, allocations: 7.938 kB / 337.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.008517, allocations: 125.3 kB / 337.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008551/0.009372, allocations: 0.8887 MB / 338.8 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.009555, allocations: 127.1 kB / 339 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.42e-05/0.009619, allocations: 59.59 kB / 339 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.009644, allocations: 4 kB / 339 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.009669, allocations: 45.33 kB / 339.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.009671, allocations: 0 / 339.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.001136/0.01081, allocations: 0.7348 MB / 339.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.01084, allocations: 59.34 kB / 339.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.011, allocations: 284.2 kB / 340.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.01102, allocations: 33.7 kB / 340.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/0.0111, allocations: 199.5 kB / 340.4 MB, free: 9.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.01116, allocations: 95.14 kB / 340.5 MB, free: 9.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.191e-05/0.01123, allocations: 67.33 kB / 340.5 MB, free: 9.809 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.01135, allocations: 0.504 MB / 341 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.053e-05/0.01143, allocations: 51.72 kB / 341.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.01154, allocations: 153.3 kB / 341.2 MB, free: 9.055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.0117, allocations: 182.4 kB / 341.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01171, allocations: 0 / 341.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003773/0.01208, allocations: 286.5 kB / 341.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.0121, allocations: 8 kB / 341.7 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.0121, allocations: 4.047 kB / 341.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.01232, allocations: 127.6 kB / 341.8 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.01243, allocations: 55.91 kB / 341.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004228/0.01285, allocations: 0.8624 MB / 342.7 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.01297, allocations: 27.97 kB / 342.8 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.01298, allocations: 8 kB / 342.8 MB, free: 7.426 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 (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 0.0001043/0.01309, allocations: 187.6 kB / 343 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.01313, allocations: 27.86 kB / 343 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.01317, allocations: 34.31 kB / 343 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.01318, allocations: 4 kB / 343 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.01318, allocations: 0 / 343 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.01319, allocations: 3.984 kB / 343 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007744/0.01396, allocations: 0.6446 MB / 343.7 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.01396, allocations: 7.984 kB / 343.7 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.732e-05/0.01406, allocations: 35.92 kB / 343.7 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.01423, allocations: 127.7 kB / 343.8 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.01425, allocations: 4 kB / 343.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003711/0.01462, allocations: 0.8585 MB / 344.7 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.01462, allocations: 0 / 344.7 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.01507, allocations: 466.5 kB / 345.2 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.576e-05/0.01515, allocations: 51.78 kB / 345.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.01518, allocations: 12.05 kB / 345.2 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.09e-05/0.01527, allocations: 23.97 kB / 345.2 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.01535, allocations: 47.89 kB / 345.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.01536, allocations: 8 kB / 345.3 MB, free: 4.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.386e-05/0.01546, allocations: 189.1 kB / 345.5 MB, free: 4.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.01546, allocations: 0 / 345.5 MB, free: 4.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002339/0.01569, allocations: 67.94 kB / 345.5 MB, free: 4.523 MB / 314.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.0007411/0.01643, allocations: 349.4 kB / 345.9 MB, free: 4.293 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003077/0.01674, allocations: 173.2 kB / 346.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01674, allocations: 0 / 346.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.01687, allocations: 112.1 kB / 346.2 MB, free: 4.008 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.01717, allocations: 72.08 kB / 346.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.0184, allocations: 0.6797 MB / 346.9 MB, free: 3.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.736e-05/0.01846, allocations: 92.25 kB / 347 MB, free: 3.113 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.01853, allocations: 26.28 kB / 347 MB, free: 3.086 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.01864, allocations: 114.2 kB / 347.1 MB, free: 2.973 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01864, allocations: 0 / 347.1 MB, free: 2.973 MB / 314.7 MB Notification: Performance of Templates: time 0.006871/0.02552, allocations: 5.024 MB / 352.2 MB, free: 14 MB / 330.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: 3.0090003930963576]