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.0009323/0.0009323, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001062/0.001062, allocations: 181 kB / 23.36 MB, free: 1.133 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.9388/0.9388, allocations: 177.2 MB / 203.8 MB, free: 5.465 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.004837/0.004837, allocations: 1.208 MB / 261.5 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.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.773e-06/1.773e-06, allocations: 3.938 kB / 278.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.704e-05, allocations: 2.312 kB / 278.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.DCPMBraking): time 0.005639/0.005666, allocations: 4.032 MB / 282.4 MB, free: 6.848 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.008262, allocations: 1.401 MB / 283.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.008555, allocations: 11.94 kB / 283.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.009208, allocations: 190.5 kB / 284 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004142/0.009622, allocations: 198.4 kB / 284.2 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.009853, allocations: 119.8 kB / 284.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/0.01048, allocations: 0.6296 MB / 284.9 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.01078, allocations: 162 kB / 285.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005257/0.01131, allocations: 363.2 kB / 285.4 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003007/0.01161, allocations: 187.4 kB / 285.6 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.139e-05/0.01168, allocations: 52 kB / 285.6 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.01182, allocations: 79.84 kB / 285.7 MB, free: 3.465 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.01191, allocations: 119.5 kB / 285.8 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.01211, allocations: 191.5 kB / 286 MB, free: 3.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005586/0.01267, allocations: 402.6 kB / 286.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.01267, allocations: 0 / 286.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01267, allocations: 4 kB / 286.4 MB, free: 2.762 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.01268, allocations: 0 / 286.4 MB, free: 2.762 MB / 266.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.001187/0.01387, allocations: 0.706 MB / 287.1 MB, free: 2.031 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.01391, allocations: 8.031 kB / 287.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.01416, allocations: 92.86 kB / 287.2 MB, free: 1.934 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.01456, allocations: 248.4 kB / 287.5 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.01461, allocations: 33.38 kB / 287.5 MB, free: 1.629 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.01473, allocations: 52.55 kB / 287.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.0152, allocations: 396.4 kB / 287.9 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.01522, allocations: 4.125 kB / 287.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.01525, allocations: 24.12 kB / 288 MB, free: 1.133 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.01527, allocations: 12 kB / 288 MB, free: 1.121 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002491/0.01551, allocations: 122.8 kB / 288.1 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1098/0.1253, allocations: 1.162 MB / 289.3 MB, free: 24.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.1255, allocations: 140 kB / 289.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.651e-05/0.1256, allocations: 45.84 kB / 289.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.1256, allocations: 5.156 kB / 289.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.1256, allocations: 41.11 kB / 289.5 MB, free: 24.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.875e-06/0.1256, allocations: 0.6875 kB / 289.5 MB, free: 24.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=25): time 0.0003654/0.126, allocations: 179.9 kB / 289.7 MB, free: 24.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.772e-05/0.126, allocations: 56.53 kB / 289.7 MB, free: 24.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.1262, allocations: 274.8 kB / 290 MB, free: 24.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.1262, allocations: 31.36 kB / 290 MB, free: 24.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.626e-05/0.1263, allocations: 242.4 kB / 290.3 MB, free: 24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.328e-05/0.1264, allocations: 97.77 kB / 290.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.385e-05/0.1264, allocations: 60.12 kB / 290.4 MB, free: 23.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.148e-05/0.1265, allocations: 346.8 kB / 290.7 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.198e-05/0.1265, allocations: 31.03 kB / 290.8 MB, free: 23.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.072e-05/0.1266, allocations: 126.9 kB / 290.9 MB, free: 23.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.1267, allocations: 191.4 kB / 291.1 MB, free: 23.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1268, allocations: 0.8125 kB / 291.1 MB, free: 23.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002371/0.127, allocations: 217.4 kB / 291.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.127, allocations: 7.016 kB / 291.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.127, allocations: 3.406 kB / 291.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001094/0.1271, allocations: 22.09 kB / 291.3 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1273, allocations: 72.17 kB / 291.4 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004526/0.1277, allocations: 1.166 MB / 292.6 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.1279, allocations: 32.89 kB / 292.6 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1279, allocations: 15.38 kB / 292.6 MB, free: 22.21 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 9.796e-05/0.128, allocations: 129.9 kB / 292.7 MB, free: 22.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.128, allocations: 26.7 kB / 292.8 MB, free: 22.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.128, allocations: 35.12 kB / 292.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1281, allocations: 3.609 kB / 292.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1281, allocations: 1.719 kB / 292.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1281, allocations: 1.359 kB / 292.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004722/0.1285, allocations: 427.4 kB / 293.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1285, allocations: 0 / 293.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.1287, allocations: 52.3 kB / 293.3 MB, free: 21.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-05/0.1287, allocations: 16.06 kB / 293.3 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.1287, allocations: 3.5 kB / 293.3 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003373/0.1291, allocations: 1.168 MB / 294.5 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1291, allocations: 0 / 294.5 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.1293, allocations: 282.2 kB / 294.7 MB, free: 20.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.107e-05/0.1294, allocations: 38.92 kB / 294.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.1294, allocations: 6.578 kB / 294.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.159e-05/0.1295, allocations: 11.27 kB / 294.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.1295, allocations: 18.02 kB / 294.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.1295, allocations: 6.969 kB / 294.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.764e-05/0.1296, allocations: 107.8 kB / 294.9 MB, free: 20.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1296, allocations: 1.312 kB / 294.9 MB, free: 20.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002944/0.1299, allocations: 121.8 kB / 295 MB, free: 20.56 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.466e-05/0.13, allocations: 83.84 kB / 295.1 MB, free: 20.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002766/0.1303, allocations: 244.8 kB / 295.4 MB, free: 20.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.1303, allocations: 2.75 kB / 295.4 MB, free: 20.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.645e-05/0.1304, allocations: 183 kB / 295.6 MB, free: 20.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.1307, allocations: 70.89 kB / 295.6 MB, free: 20.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.1319, allocations: 0.8384 MB / 296.5 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.602e-05/0.132, allocations: 105.4 kB / 296.6 MB, free: 19.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.1321, allocations: 34.5 kB / 296.6 MB, free: 19.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.1322, allocations: 108 kB / 296.7 MB, free: 19.69 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1322, allocations: 0 / 296.7 MB, free: 19.69 MB / 266.7 MB Notification: Performance of Templates: time 0.006963/0.1392, allocations: 3.778 MB / 300.5 MB, free: 19.31 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.663660370744765]