Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.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.0009792/0.0009792, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001111/0.001111, allocations: 177 kB / 23.36 MB, free: 1.125 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.9613/0.9613, allocations: 177.2 MB / 203.8 MB, free: 5.469 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.005277/0.005277, allocations: 1.201 MB / 261.5 MB, free: 11.76 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.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 278.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.667e-05, allocations: 2.312 kB / 278.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.007957/0.007984, allocations: 5.582 MB / 283.9 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00318/0.01116, allocations: 1.97 MB / 285.9 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000474/0.01164, allocations: 47.69 kB / 286 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000792/0.01243, allocations: 389.2 kB / 286.3 MB, free: 2.828 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008079/0.01324, allocations: 460.9 kB / 286.8 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.01356, allocations: 215.7 kB / 287 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.01499, allocations: 1.855 MB / 288.9 MB, free: 308 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1121/0.127, allocations: 0.8452 MB / 289.7 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.1292, allocations: 1.301 MB / 291 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.1307, allocations: 0.914 MB / 291.9 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006258/0.1313, allocations: 208 kB / 292.1 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006573/0.1319, allocations: 238 kB / 292.4 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005245/0.1325, allocations: 0.5663 MB / 292.9 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001169/0.1336, allocations: 0.6708 MB / 293.6 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001975/0.1356, allocations: 1.568 MB / 295.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1356, allocations: 2.5 kB / 295.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1356, allocations: 0.6094 kB / 295.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.551e-05/0.1357, allocations: 0 / 295.2 MB, free: 19.57 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.003389/0.1391, allocations: 1.866 MB / 297 MB, free: 18.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1391, allocations: 11.62 kB / 297 MB, free: 18.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000731/0.1398, allocations: 258.8 kB / 297.3 MB, free: 18.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.1413, allocations: 0.6908 MB / 298 MB, free: 18.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-05/0.1414, allocations: 113.5 kB / 298.1 MB, free: 18.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.1416, allocations: 145.4 kB / 298.2 MB, free: 18.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.1433, allocations: 1.238 MB / 299.5 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.1433, allocations: 2.375 kB / 299.5 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.246e-05/0.1434, allocations: 65.69 kB / 299.5 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.724e-05/0.1434, allocations: 60.62 kB / 299.6 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007411/0.1442, allocations: 450.9 kB / 300 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004067/0.1483, allocations: 3.196 MB / 303.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.1488, allocations: 478.5 kB / 303.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.149, allocations: 170.8 kB / 303.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.149, allocations: 14.25 kB / 303.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.149, allocations: 40.48 kB / 303.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=74): time 2.846e-06/0.149, allocations: 2.719 kB / 303.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.003229/0.1523, allocations: 1.81 MB / 305.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.865e-05/0.1523, allocations: 66.69 kB / 305.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.1527, allocations: 0.5708 MB / 306.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.1527, allocations: 44.48 kB / 306.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1529, allocations: 0.5645 MB / 307 MB, free: 14.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.153, allocations: 287.2 kB / 307.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.1531, allocations: 142.4 kB / 307.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.1532, allocations: 404.7 kB / 307.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1533, allocations: 100.8 kB / 307.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.1535, allocations: 252.5 kB / 308.1 MB, free: 13.17 MB / 266.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.154, allocations: 0.6059 MB / 308.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.154, allocations: 4 kB / 308.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.0008509/0.1548, allocations: 0.6592 MB / 309.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1548, allocations: 8 kB / 309.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1548, allocations: 4 kB / 309.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006699/0.1555, allocations: 327 kB / 309.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.1559, allocations: 142.4 kB / 309.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.1587, allocations: 4.836 MB / 314.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004672/0.1592, allocations: 21.78 kB / 314.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.1592, allocations: 23.98 kB / 314.8 MB, free: 6.367 MB / 266.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smpm.phi = $START.smpm.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,15,81.2%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004609/0.1597, allocations: 160.7 kB / 314.9 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1598, allocations: 75.92 kB / 315 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009018/0.1607, allocations: 0.6488 MB / 315.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1607, allocations: 8 kB / 315.6 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1607, allocations: 4 kB / 315.7 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1607, allocations: 3.984 kB / 315.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.1629, allocations: 1.619 MB / 317.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1629, allocations: 0 / 317.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.1633, allocations: 154.9 kB / 317.4 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006144/0.1639, allocations: 293.4 kB / 317.7 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.1639, allocations: 19.98 kB / 317.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.1665, allocations: 4.585 MB / 322.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1665, allocations: 0 / 322.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.1678, allocations: 0.8593 MB / 323.2 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.1681, allocations: 119.3 kB / 323.3 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/0.1682, allocations: 20 kB / 323.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/0.1685, allocations: 39.97 kB / 323.4 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.1686, allocations: 60.53 kB / 323.4 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.1687, allocations: 20 kB / 323.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003032/0.169, allocations: 269.6 kB / 323.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.169, allocations: 0 / 323.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009811/0.17, allocations: 316 kB / 324 MB, free: 13.11 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(4,15,81.2%), (1,2,100.0%), (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.0001612/0.1701, allocations: 103.1 kB / 324.1 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001304/0.1714, allocations: 0.9068 MB / 325 MB, free: 12.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/0.1715, allocations: 8.75 kB / 325 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.1723, allocations: 0.6974 MB / 325.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008461/0.1731, allocations: 275.3 kB / 326 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.1769, allocations: 2.47 MB / 328.5 MB, free: 8.648 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1772, allocations: 371.6 kB / 328.8 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.1776, allocations: 103.6 kB / 328.9 MB, free: 8.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004741/0.1781, allocations: 273.1 kB / 329.2 MB, free: 7.891 MB / 282.7 MB Notification: Performance of SimCode: time 1.884e-06/0.1781, allocations: 0 / 329.2 MB, free: 7.891 MB / 282.7 MB Notification: Performance of Templates: time 0.02399/0.2021, allocations: 18.63 MB / 347.8 MB, free: 5.629 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1579034412279725]