Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001248/0.001248, allocations: 195.1 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.447/1.447, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1902/0.1902, allocations: 38.02 MB / 329.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 61.02 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1195, allocations: 58.07 MB / 456.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008315/0.1279, allocations: 6.315 MB / 462.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003952/0.1319, allocations: 2.322 MB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006609/0.1326, allocations: 35.75 kB / 464.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006504/0.1333, allocations: 151.2 kB / 465 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009687/0.1343, allocations: 374.1 kB / 465.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005845/0.1349, allocations: 226.9 kB / 465.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.1361, allocations: 1.059 MB / 466.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.1366, allocations: 427 kB / 467 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004053/0.137, allocations: 294.7 kB / 467.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.1375, allocations: 354.5 kB / 467.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.626e-05/0.1375, allocations: 32 kB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.1378, allocations: 75.97 kB / 467.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.138, allocations: 163.5 kB / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.1383, allocations: 290.5 kB / 468.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007278/0.139, allocations: 0.7047 MB / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.139, allocations: 0 / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.139, allocations: 0 / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.139, allocations: 4 kB / 468.9 MB, free: 11.7 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002149/0.1412, allocations: 0.894 MB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.1413, allocations: 12.03 kB / 469.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.1414, allocations: 64.19 kB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1425, allocations: 0.4942 MB / 470.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/0.1426, allocations: 33 kB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.1427, allocations: 47.94 kB / 470.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009607/0.1437, allocations: 0.5212 MB / 471 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.1438, allocations: 4 kB / 471 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.1438, allocations: 16 kB / 471 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.349e-05/0.1439, allocations: 20.92 kB / 471 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005647/0.1445, allocations: 335.7 kB / 471.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.1473, allocations: 2.074 MB / 473.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004525/0.1478, allocations: 231.6 kB / 473.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.1479, allocations: 86.61 kB / 473.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.1479, allocations: 4 kB / 473.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.1482, allocations: 173.7 kB / 473.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.1482, allocations: 0 / 473.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001884/0.1501, allocations: 0.9204 MB / 474.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/0.1502, allocations: 132.5 kB / 475 MB, free: 5.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/0.1508, allocations: 425.9 kB / 475.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1508, allocations: 29.7 kB / 475.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.151, allocations: 303.8 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.967e-05/0.1511, allocations: 86.75 kB / 475.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1513, allocations: 78.03 kB / 475.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1514, allocations: 350.7 kB / 476.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.1516, allocations: 88.83 kB / 476.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.1519, allocations: 225.8 kB / 476.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004374/0.1523, allocations: 325.7 kB / 476.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1523, allocations: 0 / 476.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008869/0.1532, allocations: 441.3 kB / 477.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1532, allocations: 4 kB / 477.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1533, allocations: 4 kB / 477.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.1537, allocations: 101.3 kB / 477.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.154, allocations: 75.84 kB / 477.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/0.1561, allocations: 1.704 MB / 479.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.1564, allocations: 28.05 kB / 479.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.1564, allocations: 15.94 kB / 479.2 MB, free: 0.7305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003256/0.1568, allocations: 205.7 kB / 479.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.62e-05/0.1569, allocations: 47.42 kB / 479.4 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000602/0.1575, allocations: 282 kB / 479.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.1575, allocations: 0 / 479.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1575, allocations: 4 kB / 479.7 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1575, allocations: 7.984 kB / 479.7 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.1589, allocations: 0.7743 MB / 480.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.1589, allocations: 4 kB / 480.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.1592, allocations: 47.91 kB / 480.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000225/0.1594, allocations: 56.75 kB / 480.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.1595, allocations: 7.984 kB / 480.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.1609, allocations: 1.437 MB / 482 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1609, allocations: 0 / 482 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.1616, allocations: 489.9 kB / 482.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.1618, allocations: 128.6 kB / 482.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.823e-05/0.1619, allocations: 12.06 kB / 482.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.1621, allocations: 15.98 kB / 482.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.1622, allocations: 19.97 kB / 482.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.1623, allocations: 11.94 kB / 482.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003757/0.1626, allocations: 299.1 kB / 483 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.914e-06/0.1626, allocations: 0 / 483 MB, free: 12.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006812/0.1633, allocations: 115.9 kB / 483.1 MB, free: 12.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.001343/0.1647, allocations: 393.8 kB / 483.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009471/0.1656, allocations: 395 kB / 483.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1657, allocations: 256 / 483.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004126/0.1661, allocations: 238.6 kB / 484.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007763/0.1669, allocations: 121.9 kB / 484.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.1692, allocations: 1.384 MB / 485.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006559/0.1699, allocations: 0.874 MB / 486.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.1702, allocations: 64.23 kB / 486.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.889e-05/0.1703, allocations: 35.44 kB / 486.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1703, allocations: 7.875 kB / 486.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of Templates: time 0.01374/0.1841, allocations: 6.129 MB / 492.7 MB, free: 3.051 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)