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.001239/0.001239, allocations: 80.81 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.0009699/0.0009699, allocations: 173 kB / 23.36 MB, free: 1.129 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.9396/0.9396, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.00527/0.00527, allocations: 1.205 MB / 261.5 MB, free: 11.77 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.482e-06/1.482e-06, allocations: 0 / 278.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.96e-05, allocations: 2.312 kB / 278.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004725/0.004744, allocations: 5.539 MB / 283.9 MB, free: 5.344 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003045/0.007789, allocations: 1.974 MB / 285.8 MB, free: 3.363 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004157/0.008205, allocations: 47.62 kB / 285.9 MB, free: 3.316 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007153/0.00892, allocations: 365.5 kB / 286.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007853/0.009705, allocations: 476.7 kB / 286.7 MB, free: 2.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.01002, allocations: 203.7 kB / 286.9 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.01131, allocations: 1.862 MB / 288.8 MB, free: 428 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1028/0.1141, allocations: 0.8411 MB / 289.6 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002088/0.1162, allocations: 1.301 MB / 290.9 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.1175, allocations: 0.9115 MB / 291.8 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004973/0.118, allocations: 209.6 kB / 292 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004333/0.1185, allocations: 235 kB / 292.2 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004173/0.1189, allocations: 0.5714 MB / 292.8 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009602/0.1198, allocations: 0.6706 MB / 293.5 MB, free: 19.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.1216, allocations: 1.564 MB / 295.1 MB, free: 19.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1216, allocations: 0 / 295.1 MB, free: 19.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1216, allocations: 0.7812 kB / 295.1 MB, free: 19.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.195e-05/0.1217, allocations: 3.328 kB / 295.1 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.003008/0.1247, allocations: 1.865 MB / 296.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1248, allocations: 10.84 kB / 296.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.1253, allocations: 262.7 kB / 297.2 MB, free: 18.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1264, allocations: 0.6912 MB / 297.9 MB, free: 18.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.595e-05/0.1264, allocations: 106.6 kB / 298 MB, free: 18.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.1266, allocations: 151.5 kB / 298.1 MB, free: 18.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.1281, allocations: 1.238 MB / 299.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.1281, allocations: 1.375 kB / 299.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.262e-05/0.1282, allocations: 62.59 kB / 299.4 MB, free: 17.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.09e-05/0.1283, allocations: 64.89 kB / 299.5 MB, free: 17.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007515/0.129, allocations: 456.5 kB / 299.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.1329, allocations: 3.182 MB / 303.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.1334, allocations: 476.7 kB / 303.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1336, allocations: 170 kB / 303.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.1336, allocations: 18.23 kB / 303.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1336, allocations: 42.94 kB / 303.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=74): time 3.586e-06/0.1336, allocations: 0 / 303.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.002986/0.1366, allocations: 1.811 MB / 305.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.1367, allocations: 63.47 kB / 305.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003743/0.137, allocations: 0.5703 MB / 306.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.1371, allocations: 36.33 kB / 306.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1372, allocations: 0.5691 MB / 306.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.1373, allocations: 291.4 kB / 307.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.1375, allocations: 141.4 kB / 307.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.546e-05/0.1375, allocations: 401.4 kB / 307.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.1377, allocations: 107.1 kB / 307.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.1378, allocations: 248.5 kB / 308 MB, free: 13.32 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.0004697/0.1383, allocations: 0.6086 MB / 308.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.1383, allocations: 0 / 308.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.0007895/0.1391, allocations: 0.663 MB / 309.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1391, allocations: 10.19 kB / 309.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1391, allocations: 4 kB / 309.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006272/0.1397, allocations: 323.1 kB / 309.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.14, allocations: 131.1 kB / 309.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.1426, allocations: 4.817 MB / 314.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.1429, allocations: 27.98 kB / 314.6 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.1429, allocations: 24 kB / 314.6 MB, free: 6.547 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.0003436/0.1432, allocations: 163 kB / 314.8 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.1433, allocations: 79.92 kB / 314.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007387/0.1441, allocations: 0.6402 MB / 315.5 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1441, allocations: 11.98 kB / 315.5 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1441, allocations: 4 kB / 315.5 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.1441, allocations: 3.984 kB / 315.5 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.1459, allocations: 1.616 MB / 317.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1459, allocations: 4.062 kB / 317.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.1462, allocations: 106.8 kB / 317.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005876/0.1468, allocations: 323.9 kB / 317.6 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.374e-05/0.1468, allocations: 19.98 kB / 317.6 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.149, allocations: 4.578 MB / 322.2 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.149, allocations: 0 / 322.2 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.15, allocations: 0.8464 MB / 323 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.1502, allocations: 119.4 kB / 323.1 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.1503, allocations: 23.98 kB / 323.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.1505, allocations: 39.98 kB / 323.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.1506, allocations: 64.09 kB / 323.2 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.028e-05/0.1506, allocations: 15.98 kB / 323.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000214/0.1509, allocations: 273.5 kB / 323.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1509, allocations: 0 / 323.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007867/0.1516, allocations: 308 kB / 323.8 MB, free: 13.32 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.0001469/0.1518, allocations: 111.2 kB / 323.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1528, allocations: 0.9029 MB / 324.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.1528, allocations: 8.75 kB / 324.8 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000672/0.1535, allocations: 0.7021 MB / 325.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006208/0.1541, allocations: 268 kB / 325.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003845/0.1579, allocations: 2.47 MB / 328.3 MB, free: 8.855 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1583, allocations: 363.6 kB / 328.6 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003353/0.1586, allocations: 107.6 kB / 328.7 MB, free: 8.371 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005344/0.1592, allocations: 277.1 kB / 329 MB, free: 8.098 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1592, allocations: 0 / 329 MB, free: 8.098 MB / 282.7 MB Notification: Performance of Templates: time 0.02716/0.1863, allocations: 18.58 MB / 347.6 MB, free: 5.891 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 -lv LOG_STATS > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.060298942029476]