Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 101.3 kB / 16.5 MB, free: 6.691 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.001299/0.001299, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.357/1.357, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1993/0.1993, allocations: 38.03 MB / 329.3 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 59.55 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.11, allocations: 58.07 MB / 456.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007132/0.1172, allocations: 5.434 MB / 461.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1196, allocations: 1.667 MB / 463.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000374/0.12, allocations: 31.81 kB / 463.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004884/0.1205, allocations: 91.42 kB / 463.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007511/0.1213, allocations: 250.6 kB / 463.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.1217, allocations: 119.8 kB / 463.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009387/0.1226, allocations: 0.7164 MB / 464.5 MB, free: 216 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005329/0.1232, allocations: 325.8 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003286/0.1235, allocations: 215 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.1239, allocations: 235 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.682e-05/0.124, allocations: 28 kB / 465.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.508e-05/0.1241, allocations: 24 kB / 465.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.1242, allocations: 115.6 kB / 465.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.1244, allocations: 207 kB / 465.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004889/0.1249, allocations: 0.4905 MB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.125, allocations: 4 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.125, allocations: 0 / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.125, allocations: 0 / 466.1 MB, free: 14.58 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001348/0.1263, allocations: 0.703 MB / 466.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1264, allocations: 12.03 kB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.1265, allocations: 48.38 kB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006474/0.1271, allocations: 400 kB / 467.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.924e-05/0.1272, allocations: 58.64 kB / 467.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.1273, allocations: 36 kB / 467.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/0.128, allocations: 436 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.128, allocations: 0 / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.1281, allocations: 16 kB / 467.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.1281, allocations: 8 kB / 467.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.1286, allocations: 274 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1309, allocations: 1.845 MB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.1313, allocations: 183.6 kB / 470.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1315, allocations: 73.56 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.1315, allocations: 4 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1316, allocations: 34.56 kB / 470.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.1316, allocations: 0 / 470.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001367/0.1329, allocations: 0.706 MB / 470.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.133, allocations: 110.8 kB / 471 MB, free: 9.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.1334, allocations: 312.5 kB / 471.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1334, allocations: 25.7 kB / 471.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.1336, allocations: 251.9 kB / 471.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.292e-05/0.1337, allocations: 63.02 kB / 471.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.1338, allocations: 69.92 kB / 471.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.134, allocations: 346.8 kB / 472 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.1341, allocations: 68.61 kB / 472.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.1344, allocations: 197.5 kB / 472.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004326/0.1349, allocations: 297.9 kB / 472.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1349, allocations: 0 / 472.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006059/0.1355, allocations: 332.1 kB / 472.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.1355, allocations: 11.94 kB / 472.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1355, allocations: 7.938 kB / 472.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.1356, allocations: 8 kB / 472.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.1359, allocations: 75.89 kB / 473 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.1359, allocations: 11.94 kB / 473 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.1361, allocations: 15.94 kB / 473 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.1361, allocations: 19.97 kB / 473.1 MB, free: 7.07 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001948/0.1363, allocations: 177.8 kB / 473.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.539e-05/0.1364, allocations: 35.56 kB / 473.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004391/0.1369, allocations: 195 kB / 473.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1369, allocations: 4 kB / 473.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.1369, allocations: 0 / 473.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1369, allocations: 3.984 kB / 473.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.138, allocations: 0.6201 MB / 474.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.138, allocations: 4 kB / 474.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.1383, allocations: 35.98 kB / 474.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1383, allocations: 4 kB / 474.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.1383, allocations: 15.94 kB / 474.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1383, allocations: 0 / 474.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.1383, allocations: 3.984 kB / 474.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.139, allocations: 448 kB / 474.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.94e-05/0.139, allocations: 112.7 kB / 474.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1391, allocations: 0 / 474.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.1393, allocations: 8 kB / 474.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.1394, allocations: 19.91 kB / 474.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.1394, allocations: 12 kB / 474.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.1396, allocations: 215.1 kB / 474.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1396, allocations: 0 / 474.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.1401, allocations: 71.94 kB / 475 MB, free: 5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001156/0.1402, allocations: 99.25 kB / 475.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000428/0.1406, allocations: 200.1 kB / 475.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1407, allocations: 0 / 475.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.1408, allocations: 71.91 kB / 475.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007239/0.1416, allocations: 103.2 kB / 475.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.1433, allocations: 1.035 MB / 476.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.1438, allocations: 0.8149 MB / 477.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.144, allocations: 47.27 kB / 477.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.735e-05/0.144, allocations: 23.44 kB / 477.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of SimCode: time 2.936e-06/0.1441, allocations: 0 / 477.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of Templates: time 0.007/0.1511, allocations: 3.226 MB / 480.6 MB, free: 15.36 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)