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.001989/0.001989, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.002031/0.002031, allocations: 169.9 kB / 22.45 MB, free: 2.105 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 1.675/1.675, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 178] 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.009501/0.009501, allocations: 1.198 MB / 260.4 MB, free: 12.09 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.483e-06/1.483e-06, allocations: 0 / 383.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/2.938e-05, allocations: 2.281 kB / 383.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.00651/0.00654, allocations: 3.762 MB / 387.3 MB, free: 9.371 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.009227, allocations: 1.281 MB / 388.6 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003022/0.00953, allocations: 15.88 kB / 388.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007143/0.01024, allocations: 194.6 kB / 388.8 MB, free: 7.875 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004193/0.01066, allocations: 206.3 kB / 389 MB, free: 7.672 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.01089, allocations: 111.8 kB / 389.1 MB, free: 7.562 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007654/0.01166, allocations: 0.618 MB / 389.7 MB, free: 6.941 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.01198, allocations: 163.9 kB / 389.9 MB, free: 6.781 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005467/0.01252, allocations: 355.2 kB / 390.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.01285, allocations: 179.4 kB / 390.4 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.439e-05/0.01293, allocations: 52 kB / 390.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.0131, allocations: 75.98 kB / 390.5 MB, free: 6.133 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.01322, allocations: 115.5 kB / 390.6 MB, free: 6.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.01345, allocations: 191.5 kB / 390.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008658/0.01432, allocations: 0.623 MB / 391.4 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.01432, allocations: 0 / 391.4 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01433, allocations: 0 / 391.4 MB, free: 5.207 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.01433, allocations: 0 / 391.4 MB, free: 5.207 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001339/0.01567, allocations: 0.7341 MB / 392.2 MB, free: 4.445 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.01571, allocations: 8.031 kB / 392.2 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.01595, allocations: 72.55 kB / 392.3 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.01651, allocations: 317.3 kB / 392.6 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.01655, allocations: 37.38 kB / 392.6 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.01667, allocations: 48.5 kB / 392.6 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.01784, allocations: 487.8 kB / 393.1 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.01787, allocations: 12.14 kB / 393.1 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.01792, allocations: 20.12 kB / 393.2 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.01793, allocations: 8 kB / 393.2 MB, free: 3.402 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005969/0.01853, allocations: 275.8 kB / 393.4 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002498/0.02103, allocations: 1.373 MB / 394.8 MB, free: 1.691 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004963/0.02153, allocations: 207.2 kB / 395 MB, free: 1.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.02173, allocations: 97.28 kB / 395.1 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.02176, allocations: 12.11 kB / 395.1 MB, free: 1.371 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.02179, allocations: 34.8 kB / 395.1 MB, free: 1.328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.02179, allocations: 0 / 395.1 MB, free: 1.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001655/0.02345, allocations: 0.6846 MB / 395.8 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.0235, allocations: 55.41 kB / 395.9 MB, free: 0.543 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.02393, allocations: 320.5 kB / 396.2 MB, free: 228 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.02396, allocations: 29.7 kB / 396.2 MB, free: 192 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.02421, allocations: 264.5 kB / 396.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.811e-05/0.02431, allocations: 103.1 kB / 396.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.02442, allocations: 61.7 kB / 396.6 MB, free: 15.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.02462, allocations: 346.5 kB / 397 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.02479, allocations: 75.97 kB / 397.1 MB, free: 15.33 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.02505, allocations: 175 kB / 397.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.02551, allocations: 267.5 kB / 397.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.02551, allocations: 4 kB / 397.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006449/0.02616, allocations: 334 kB / 397.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.02618, allocations: 7.984 kB / 397.8 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.02619, allocations: 4 kB / 397.8 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001619/0.02635, allocations: 20.86 kB / 397.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.02664, allocations: 76.22 kB / 397.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.02798, allocations: 1.252 MB / 399.2 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.02815, allocations: 12 kB / 399.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.02817, allocations: 16 kB / 399.2 MB, free: 12.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (42): * Single equations (assignments): 41 * 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.0002526/0.02843, allocations: 169.7 kB / 399.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-05/0.0285, allocations: 39.7 kB / 399.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.442e-05/0.02857, allocations: 43.3 kB / 399.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.02858, allocations: 4 kB / 399.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.02858, allocations: 0 / 399.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.02859, allocations: 0 / 399.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.03001, allocations: 0.6499 MB / 400.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.03002, allocations: 0 / 400.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/0.03032, allocations: 63.84 kB / 400.2 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.435e-05/0.03039, allocations: 16.8 kB / 400.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.03041, allocations: 8 kB / 400.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.03158, allocations: 1.248 MB / 401.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.03158, allocations: 0 / 401.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007263/0.03231, allocations: 452.2 kB / 401.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.03242, allocations: 51.78 kB / 401.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.03246, allocations: 4 kB / 401.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.03264, allocations: 20.14 kB / 402 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.03271, allocations: 23.95 kB / 402 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.03273, allocations: 8 kB / 402 MB, free: 10.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002702/0.033, allocations: 219.1 kB / 402.2 MB, free: 9.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.033, allocations: 0 / 402.2 MB, free: 9.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004391/0.03344, allocations: 88 kB / 402.3 MB, free: 9.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (inertiaLoad.w,integrator.y,heatCapacitor.T,dcpm.inertiaRotor.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 (27): * Single equations (assignments): 26 * 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 0.0001495/0.03359, allocations: 107.2 kB / 402.4 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006616/0.03425, allocations: 323.1 kB / 402.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.03425, allocations: 0 / 402.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003126/0.03457, allocations: 210.5 kB / 402.9 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.03507, allocations: 69.56 kB / 403 MB, free: 8.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.03685, allocations: 0.9035 MB / 403.9 MB, free: 8.047 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.03712, allocations: 215.5 kB / 404.1 MB, free: 7.805 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.03727, allocations: 38.94 kB / 404.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/0.03734, allocations: 28.5 kB / 404.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.03734, allocations: 0 / 404.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of Templates: time 0.009417/0.04676, allocations: 3.537 MB / 407.7 MB, free: 4.281 MB / 330.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: 5.339926016051322]