Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.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.0006963/0.0006963, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009348/0.001631, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001114/0.001114, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001474/0.002587, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.013/1.013, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08838/1.101, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.004597/0.004597, allocations: 1.197 MB / 245.2 MB, free: 13.72 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001861/0.006458, allocations: 0.8115 MB / 246 MB, free: 12.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.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") translateModel(ElectricBraking.Examples.Rotational.DCPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/1.96e-05, allocations: 2.312 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.00391/0.00393, allocations: 4.102 MB / 251.3 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.005906, allocations: 1.394 MB / 252.7 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.006179, allocations: 11.94 kB / 252.8 MB, free: 6.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004547/0.006634, allocations: 202.5 kB / 252.9 MB, free: 5.887 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.006924, allocations: 198.4 kB / 253.1 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.007096, allocations: 111.8 kB / 253.3 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005397/0.007635, allocations: 0.6297 MB / 253.9 MB, free: 4.949 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.007859, allocations: 166 kB / 254 MB, free: 4.781 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004644/0.008324, allocations: 417.2 kB / 254.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.00854, allocations: 187.4 kB / 254.6 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.008589, allocations: 52 kB / 254.7 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.008724, allocations: 71.98 kB / 254.8 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.322e-05/0.008778, allocations: 87.69 kB / 254.8 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.008906, allocations: 159.7 kB / 255 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005413/0.009447, allocations: 386.5 kB / 255.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.09e-05/0.009468, allocations: 0 / 255.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.009471, allocations: 4 kB / 255.4 MB, free: 3.445 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.009494, allocations: 0 / 255.4 MB, free: 3.445 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.0009176/0.01041, allocations: 0.815 MB / 256.2 MB, free: 2.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.01046, allocations: 15.98 kB / 256.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.01069, allocations: 162 kB / 256.4 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.01103, allocations: 248.5 kB / 256.6 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.01107, allocations: 37.31 kB / 256.6 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.01117, allocations: 56.5 kB / 256.7 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.01154, allocations: 388.5 kB / 257.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.01156, allocations: 4.172 kB / 257.1 MB, free: 1.637 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.01158, allocations: 20.12 kB / 257.1 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.01159, allocations: 12 kB / 257.1 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.01175, allocations: 130.9 kB / 257.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.01293, allocations: 1.175 MB / 258.4 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.01316, allocations: 145.1 kB / 258.6 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.911e-05/0.01321, allocations: 52.83 kB / 258.6 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.01323, allocations: 4 kB / 258.6 MB, free: 44 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.01327, allocations: 38.5 kB / 258.7 MB, free: 16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 3.076e-06/0.01327, allocations: 0 / 258.7 MB, free: 16 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0003462/0.01362, allocations: 177.4 kB / 258.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.01365, allocations: 55.41 kB / 258.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.01384, allocations: 282.9 kB / 259.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.01385, allocations: 25.7 kB / 259.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.01397, allocations: 244.7 kB / 259.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.01402, allocations: 99.2 kB / 259.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.01407, allocations: 57.69 kB / 259.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.731e-05/0.01417, allocations: 346.7 kB / 259.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.618e-05/0.01421, allocations: 27.77 kB / 259.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.48e-05/0.01429, allocations: 131.8 kB / 260.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.01444, allocations: 197.2 kB / 260.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.01445, allocations: 7.938 kB / 260.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002244/0.01467, allocations: 212.4 kB / 260.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.01469, allocations: 8 kB / 260.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.01469, allocations: 4 kB / 260.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001165/0.01481, allocations: 21.27 kB / 260.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.01502, allocations: 87.89 kB / 260.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000621/0.01564, allocations: 1.162 MB / 261.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.708e-05/0.01574, allocations: 31.78 kB / 261.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.01575, allocations: 16.12 kB / 261.8 MB, free: 12.6 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 2 (switch.control,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.01586, allocations: 133.6 kB / 261.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.01589, allocations: 23.98 kB / 262 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.5e-05/0.01592, allocations: 38.39 kB / 262 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.01593, allocations: 15.91 kB / 262 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.01593, allocations: 0 / 262 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01594, allocations: 0 / 262 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004169/0.01635, allocations: 408.4 kB / 262.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.01636, allocations: 3.984 kB / 262.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.01652, allocations: 63.91 kB / 262.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.01658, allocations: 35.73 kB / 262.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-05/0.01663, allocations: 16.86 kB / 262.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.01664, allocations: 8 kB / 262.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004743/0.01712, allocations: 1.158 MB / 263.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.01712, allocations: 0 / 263.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.01733, allocations: 294.1 kB / 264 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.01735, allocations: 4 kB / 264 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.549e-05/0.01744, allocations: 15.98 kB / 264 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.01747, allocations: 19.91 kB / 264 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.01748, allocations: 4 kB / 264 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.237e-05/0.01755, allocations: 104.6 kB / 264.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01755, allocations: 0 / 264.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002444/0.01779, allocations: 115.8 kB / 264.2 MB, free: 10.02 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.phi,dcpm.armatureInductance.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.529e-05/0.01788, allocations: 88.34 kB / 264.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.01813, allocations: 251.2 kB / 264.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.01814, allocations: 4.812 kB / 264.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.01824, allocations: 183.3 kB / 264.8 MB, free: 9.457 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.01849, allocations: 88.59 kB / 264.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.02354, allocations: 0.9155 MB / 265.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.998e-05/0.02361, allocations: 112.6 kB / 265.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.02374, allocations: 34.95 kB / 265.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.02388, allocations: 119.3 kB / 266 MB, free: 8.141 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02388, allocations: 0 / 266 MB, free: 8.141 MB / 266.7 MB Notification: Performance of Templates: time 0.006991/0.03087, allocations: 4.037 MB / 270.1 MB, free: 4.188 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.DCPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6082647684961557]