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.0008759/0.0008759, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001141/0.002016, 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.0006867/0.0006867, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009105/0.001597, 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 0.9972/0.9972, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08943/1.087, allocations: 53.65 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.004706/0.004706, allocations: 1.191 MB / 245.2 MB, free: 13.71 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001563/0.006269, allocations: 0.8219 MB / 246 MB, free: 12.89 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.303e-06/1.303e-06, allocations: 0 / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.089e-05/1.219e-05, allocations: 2.312 kB / 247.3 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.004743/0.004755, allocations: 5.606 MB / 252.9 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.007557, allocations: 1.977 MB / 254.8 MB, free: 3.988 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004239/0.007981, allocations: 47.62 kB / 254.9 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006501/0.008631, allocations: 373.4 kB / 255.3 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007597/0.00939, allocations: 464.9 kB / 255.7 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.009678, allocations: 215.6 kB / 255.9 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.01086, allocations: 1.866 MB / 257.8 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000705/0.01157, allocations: 0.8443 MB / 258.6 MB, free: 144 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.01273, allocations: 1.395 MB / 260 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007815/0.01351, allocations: 0.9236 MB / 260.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001804/0.0137, allocations: 208 kB / 261.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002873/0.01398, allocations: 235.9 kB / 261.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.01427, allocations: 458.8 kB / 261.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004454/0.01471, allocations: 0.5498 MB / 262.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.01584, allocations: 1.476 MB / 263.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.384e-05/0.01586, allocations: 0 / 263.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01586, allocations: 0 / 263.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.828e-05/0.01589, allocations: 0 / 263.9 MB, free: 10.9 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.002091/0.01798, allocations: 2.219 MB / 266.1 MB, free: 8.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.01801, allocations: 11.98 kB / 266.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000429/0.01844, allocations: 337.8 kB / 266.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007693/0.01921, allocations: 0.6921 MB / 267.1 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.263e-05/0.01927, allocations: 111.3 kB / 267.2 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.01941, allocations: 152.2 kB / 267.4 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.02052, allocations: 1.237 MB / 268.6 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.02054, allocations: 7.984 kB / 268.6 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.102e-05/0.02063, allocations: 60 kB / 268.7 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.912e-05/0.02067, allocations: 62.92 kB / 268.7 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005811/0.02126, allocations: 456.1 kB / 269.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.02447, allocations: 3.199 MB / 272.4 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.02499, allocations: 481.3 kB / 272.8 MB, free: 1.625 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.0252, allocations: 166.8 kB / 273 MB, free: 1.461 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.127e-05/0.02524, allocations: 12.66 kB / 273 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.02526, allocations: 43.22 kB / 273.1 MB, free: 1.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=74): time 1.894e-06/0.02527, allocations: 4 kB / 273.1 MB, free: 1.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.1114/0.1366, allocations: 1.81 MB / 274.9 MB, free: 16.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.1367, allocations: 61.67 kB / 274.9 MB, free: 16.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005053/0.1372, allocations: 0.5702 MB / 275.5 MB, free: 16.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.667e-05/0.1372, allocations: 44.33 kB / 275.5 MB, free: 16.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.1374, allocations: 0.5699 MB / 276.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.1376, allocations: 284.3 kB / 276.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.1377, allocations: 144.5 kB / 276.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.881e-05/0.1378, allocations: 410.2 kB / 276.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.138, allocations: 101.2 kB / 277 MB, free: 15.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.1382, allocations: 249.5 kB / 277.3 MB, free: 15.18 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.0005988/0.1388, allocations: 0.6046 MB / 277.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1388, allocations: 5.312 kB / 277.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001043/0.1398, allocations: 0.6548 MB / 278.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.1398, allocations: 9.156 kB / 278.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1398, allocations: 5.328 kB / 278.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007278/0.1406, allocations: 334.2 kB / 278.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.1409, allocations: 158.2 kB / 279 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002898/0.1438, allocations: 4.82 MB / 283.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.1441, allocations: 32.34 kB / 283.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.1441, allocations: 20.28 kB / 283.9 MB, free: 11.12 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.0002463/0.1444, allocations: 164.4 kB / 284.1 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.1445, allocations: 81.2 kB / 284.1 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009244/0.1454, allocations: 0.6454 MB / 284.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1454, allocations: 8.094 kB / 284.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1454, allocations: 3.875 kB / 284.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.1454, allocations: 5.688 kB / 284.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.1477, allocations: 1.615 MB / 286.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1477, allocations: 2.578 kB / 286.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.1481, allocations: 160.2 kB / 286.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.1483, allocations: 123.6 kB / 286.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/0.1489, allocations: 297.4 kB / 287 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.149, allocations: 22.14 kB / 287 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.1512, allocations: 4.595 MB / 291.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1512, allocations: 5.906 kB / 291.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009962/0.1522, allocations: 0.8456 MB / 292.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.295e-05/0.1523, allocations: 17.94 kB / 292.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.1525, allocations: 44.64 kB / 292.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1526, allocations: 64.66 kB / 292.6 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.1526, allocations: 17.17 kB / 292.6 MB, free: 6.512 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002231/0.1528, allocations: 270.4 kB / 292.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1528, allocations: 5.031 kB / 292.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006729/0.1535, allocations: 308.7 kB / 293.2 MB, free: 6.484 MB / 266.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.0001159/0.1536, allocations: 102.9 kB / 293.3 MB, free: 6.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.1545, allocations: 0.9094 MB / 294.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.94e-05/0.1545, allocations: 14.42 kB / 294.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005526/0.1551, allocations: 0.6984 MB / 294.9 MB, free: 5.637 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005732/0.1557, allocations: 349.2 kB / 295.2 MB, free: 5.609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.1664, allocations: 2.609 MB / 297.8 MB, free: 4.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.1667, allocations: 381.3 kB / 298.2 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000353/0.167, allocations: 112.3 kB / 298.3 MB, free: 4.324 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003928/0.1674, allocations: 279.2 kB / 298.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1674, allocations: 0 / 298.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of Templates: time 0.02339/0.1908, allocations: 19.53 MB / 318.1 MB, free: 2.352 MB / 282.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.091686697676778]