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.001443/0.001443, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001691/0.001691, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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 1.01/1.01, allocations: 177.1 MB / 204.5 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.005196/0.005196, allocations: 1.187 MB / 262.2 MB, free: 11.75 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 1.323e-06/1.323e-06, allocations: 0 / 332.4 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.037e-05/2.169e-05, allocations: 2.312 kB / 332.4 MB, free: 3.066 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.MechanicalBraking): time 0.003357/0.003379, allocations: 2.442 MB / 334.8 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.004704, allocations: 0.9351 MB / 335.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.004876, allocations: 4 kB / 335.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004008/0.005277, allocations: 83.34 kB / 335.8 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.005562, allocations: 115.1 kB / 335.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.005776, allocations: 99.84 kB / 336 MB, free: 15.37 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.00611, allocations: 367.3 kB / 336.4 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.006235, allocations: 44.06 kB / 336.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003401/0.006575, allocations: 215.5 kB / 336.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.006759, allocations: 127.7 kB / 336.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.741e-05/0.006796, allocations: 24 kB / 336.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.006925, allocations: 83.84 kB / 336.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.539e-05/0.00702, allocations: 75.73 kB / 337 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.0071, allocations: 95.75 kB / 337 MB, free: 14.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.007431, allocations: 279 kB / 337.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.007434, allocations: 4 kB / 337.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.007435, allocations: 4 kB / 337.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.007439, allocations: 0 / 337.3 MB, free: 14.07 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.0006974/0.008136, allocations: 0.6204 MB / 337.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.008178, allocations: 12.02 kB / 338 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.008336, allocations: 44.75 kB / 338 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.008755, allocations: 229.8 kB / 338.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.008792, allocations: 12.88 kB / 338.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.008849, allocations: 20.38 kB / 338.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.009214, allocations: 220.3 kB / 338.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.009229, allocations: 4.141 kB / 338.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.009248, allocations: 12.38 kB / 338.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.009257, allocations: 7.938 kB / 338.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.009495, allocations: 109.5 kB / 338.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.01086, allocations: 0.9487 MB / 339.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.01112, allocations: 127 kB / 339.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.238e-05/0.01119, allocations: 51.66 kB / 339.7 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.01121, allocations: 8 kB / 339.7 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.01123, allocations: 41.33 kB / 339.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 9.02e-07/0.01123, allocations: 0 / 339.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008316/0.01207, allocations: 356.1 kB / 340.1 MB, free: 11.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.01209, allocations: 63.33 kB / 340.2 MB, free: 11.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.01224, allocations: 261.5 kB / 340.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.01227, allocations: 41.69 kB / 340.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.01236, allocations: 199.1 kB / 340.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.323e-05/0.01241, allocations: 71.41 kB / 340.7 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.121e-05/0.01248, allocations: 67.56 kB / 340.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.0126, allocations: 0.5079 MB / 341.3 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.933e-05/0.01267, allocations: 40.53 kB / 341.4 MB, free: 9.801 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.01277, allocations: 139 kB / 341.5 MB, free: 9.629 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.01292, allocations: 173.6 kB / 341.7 MB, free: 9.422 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.01293, allocations: 4 kB / 341.7 MB, free: 9.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003579/0.01329, allocations: 272.9 kB / 341.9 MB, free: 9.141 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.0133, allocations: 4 kB / 341.9 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01331, allocations: 4 kB / 341.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/0.01353, allocations: 131.8 kB / 342.1 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.01363, allocations: 35.92 kB / 342.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006595/0.01429, allocations: 0.8662 MB / 343 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.01441, allocations: 39.86 kB / 343 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.01443, allocations: 4 kB / 343 MB, free: 8.023 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 9.902e-05/0.01453, allocations: 176.5 kB / 343.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.01457, allocations: 27.89 kB / 343.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.01461, allocations: 37.89 kB / 343.3 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.01462, allocations: 4 kB / 343.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.01462, allocations: 0 / 343.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.01462, allocations: 0 / 343.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005893/0.01521, allocations: 0.5367 MB / 343.8 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01521, allocations: 3.938 kB / 343.8 MB, free: 7.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.186e-05/0.01531, allocations: 27.98 kB / 343.8 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001692/0.01547, allocations: 127.6 kB / 343.9 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.01549, allocations: 15.98 kB / 344 MB, free: 7.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003635/0.01586, allocations: 0.8624 MB / 344.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.01586, allocations: 3.984 kB / 344.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000411/0.01627, allocations: 418.7 kB / 345.2 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.026e-05/0.01634, allocations: 59.78 kB / 345.3 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.01638, allocations: 8 kB / 345.3 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.01648, allocations: 23.97 kB / 345.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.01655, allocations: 43.95 kB / 345.4 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.01656, allocations: 7.984 kB / 345.4 MB, free: 5.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.461e-05/0.01665, allocations: 184.6 kB / 345.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01665, allocations: 0 / 345.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.01689, allocations: 67.89 kB / 345.6 MB, free: 5.305 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.0007301/0.01762, allocations: 338.3 kB / 346 MB, free: 5.086 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000267/0.01788, allocations: 168.5 kB / 346.1 MB, free: 4.918 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01788, allocations: 4 kB / 346.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.018, allocations: 88.34 kB / 346.2 MB, free: 4.824 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.01827, allocations: 63.81 kB / 346.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.01975, allocations: 0.7806 MB / 347.1 MB, free: 3.949 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.797e-05/0.0198, allocations: 84.31 kB / 347.1 MB, free: 3.848 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.281e-05/0.01986, allocations: 25.94 kB / 347.2 MB, free: 3.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.01996, allocations: 106.2 kB / 347.3 MB, free: 3.719 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01996, allocations: 0 / 347.3 MB, free: 3.719 MB / 314.7 MB Notification: Performance of Templates: time 0.006771/0.02673, allocations: 4.959 MB / 352.2 MB, free: 14.82 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: 3.149801162071526]