Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 98.14 kB / 16.5 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 194.4 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.1 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1767/0.1767, allocations: 38.04 MB / 329.3 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 70.3 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1268, allocations: 58.06 MB / 456.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007982/0.1348, allocations: 5.796 MB / 461.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.1386, allocations: 2.181 MB / 464.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006499/0.1393, allocations: 31.81 kB / 464.2 MB, free: 480 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000644/0.1399, allocations: 127.3 kB / 464.3 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009246/0.1409, allocations: 318.3 kB / 464.6 MB, free: 32 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.1415, allocations: 186.6 kB / 464.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.1426, allocations: 0.8448 MB / 465.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004815/0.1431, allocations: 361.6 kB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004469/0.1436, allocations: 250.9 kB / 466.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.144, allocations: 294.7 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.69e-05/0.1441, allocations: 32 kB / 466.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.1443, allocations: 71.98 kB / 466.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.1445, allocations: 135.5 kB / 466.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002609/0.1447, allocations: 246.7 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.1454, allocations: 0.6307 MB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1454, allocations: 0 / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1454, allocations: 3.984 kB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.1454, allocations: 0 / 467.6 MB, free: 13 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001612/0.147, allocations: 0.8351 MB / 468.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1471, allocations: 8.031 kB / 468.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.1472, allocations: 56.28 kB / 468.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000735/0.1479, allocations: 474.2 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.239e-05/0.148, allocations: 29 kB / 469 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.053e-05/0.148, allocations: 36 kB / 469 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006784/0.1487, allocations: 453.1 kB / 469.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1488, allocations: 3.938 kB / 469.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.1488, allocations: 16 kB / 469.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.1488, allocations: 12 kB / 469.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004582/0.1493, allocations: 278.3 kB / 469.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.1514, allocations: 1.87 MB / 471.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.152, allocations: 247.7 kB / 471.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.1521, allocations: 85.23 kB / 472 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.1522, allocations: 8.078 kB / 472 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.1525, allocations: 185.6 kB / 472.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1525, allocations: 0 / 472.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001769/0.1543, allocations: 0.9033 MB / 473.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.1544, allocations: 140.5 kB / 473.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004584/0.1548, allocations: 409.7 kB / 473.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1549, allocations: 33.7 kB / 473.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.1551, allocations: 255.7 kB / 473.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.546e-05/0.1551, allocations: 98.64 kB / 474 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1552, allocations: 73.59 kB / 474.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1554, allocations: 346.8 kB / 474.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1556, allocations: 91.91 kB / 474.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.1558, allocations: 212.2 kB / 474.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004026/0.1562, allocations: 315.9 kB / 475 MB, free: 5.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1562, allocations: 3.938 kB / 475 MB, free: 5.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008589/0.1571, allocations: 433.4 kB / 475.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.1571, allocations: 8 kB / 475.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1572, allocations: 4 kB / 475.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004517/0.1576, allocations: 97.19 kB / 475.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.1579, allocations: 71.84 kB / 475.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/0.1602, allocations: 1.811 MB / 477.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.1605, allocations: 23.98 kB / 477.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.1605, allocations: 16 kB / 477.5 MB, free: 2.469 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002614/0.1608, allocations: 197.6 kB / 477.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.1608, allocations: 39.53 kB / 477.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000623/0.1615, allocations: 294.1 kB / 478 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1615, allocations: 7.938 kB / 478 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1615, allocations: 0 / 478 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.1615, allocations: 3.938 kB / 478 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.1626, allocations: 0.7687 MB / 478.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1626, allocations: 4 kB / 478.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.1629, allocations: 43.97 kB / 478.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002282/0.1631, allocations: 52.81 kB / 478.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.1631, allocations: 4 kB / 478.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.1645, allocations: 1.44 MB / 480.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1645, allocations: 0 / 480.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008018/0.1653, allocations: 0.4994 MB / 480.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.1655, allocations: 132.6 kB / 480.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.1655, allocations: 11.88 kB / 480.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.1658, allocations: 12 kB / 481 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.1658, allocations: 31.89 kB / 481 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1659, allocations: 4 kB / 481 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003342/0.1662, allocations: 283.1 kB / 481.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1662, allocations: 3.938 kB / 481.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.1668, allocations: 112 kB / 481.4 MB, free: 14.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009954/0.1678, allocations: 388.9 kB / 481.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009047/0.1687, allocations: 403.4 kB / 482.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1687, allocations: 0 / 482.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.1691, allocations: 242.5 kB / 482.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.1698, allocations: 121.7 kB / 482.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.1719, allocations: 1.27 MB / 483.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004422/0.1723, allocations: 0.8546 MB / 484.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000248/0.1726, allocations: 63.3 kB / 484.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.1727, allocations: 35.42 kB / 484.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1727, allocations: 4 kB / 484.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of Templates: time 0.01282/0.1855, allocations: 5.864 MB / 490.6 MB, free: 5.18 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)