Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001517/0.001517, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.429/1.429, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1927/0.1927, allocations: 38.03 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 69.64 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1251, allocations: 58.06 MB / 456.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006747/0.1319, allocations: 4.416 MB / 461.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002951/0.1349, allocations: 1.429 MB / 462.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005018/0.1354, allocations: 15.94 kB / 462.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.1369, allocations: 370.5 kB / 463.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006929/0.1376, allocations: 226.8 kB / 463.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007385/0.1384, allocations: 247.4 kB / 463.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006407/0.139, allocations: 0.534 MB / 464.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004763/0.1395, allocations: 281.1 kB / 464.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004538/0.14, allocations: 239 kB / 464.6 MB, free: 328 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.1405, allocations: 299 kB / 464.9 MB, free: 28 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.404e-05/0.1407, allocations: 32.05 kB / 464.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003329/0.141, allocations: 131.7 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002446/0.1413, allocations: 227.5 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.1416, allocations: 230.9 kB / 465.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000645/0.1422, allocations: 0.5646 MB / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1422, allocations: 0 / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1422, allocations: 0 / 466 MB, free: 14.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.1423, allocations: 0 / 466 MB, free: 14.85 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001294/0.1436, allocations: 0.7272 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1436, allocations: 11.89 kB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005937/0.1442, allocations: 84.31 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006008/0.1448, allocations: 403.2 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.1449, allocations: 29.38 kB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.145, allocations: 44.12 kB / 467.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/0.1458, allocations: 0.6248 MB / 468 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1458, allocations: 7.938 kB / 468 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.1459, allocations: 19.98 kB / 468 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.146, allocations: 32.98 kB / 468 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007102/0.1467, allocations: 479.5 kB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.1502, allocations: 2.884 MB / 471.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004199/0.1507, allocations: 239 kB / 471.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.1509, allocations: 145.7 kB / 471.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.1509, allocations: 4 kB / 471.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.151, allocations: 42.5 kB / 471.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.151, allocations: 0 / 471.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00175/0.1527, allocations: 0.9597 MB / 472.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.1528, allocations: 89.09 kB / 472.8 MB, free: 7.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.1532, allocations: 324.3 kB / 473.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.1533, allocations: 29.7 kB / 473.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.1535, allocations: 279.4 kB / 473.5 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1537, allocations: 98.64 kB / 473.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.1538, allocations: 94.16 kB / 473.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002735/0.1541, allocations: 342.8 kB / 474 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.1544, allocations: 149 kB / 474.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.1549, allocations: 351.2 kB / 474.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008281/0.1557, allocations: 0.5247 MB / 475 MB, free: 5.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.1558, allocations: 0 / 475 MB, free: 5.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009875/0.1568, allocations: 0.5362 MB / 475.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.1568, allocations: 4 kB / 475.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.1568, allocations: 8 kB / 475.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.364e-05/0.1569, allocations: 12 kB / 475.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.1573, allocations: 111.8 kB / 475.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/0.1573, allocations: 15.92 kB / 475.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.1576, allocations: 27.98 kB / 475.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.1576, allocations: 20 kB / 475.7 MB, free: 4.539 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000396/0.1581, allocations: 229.8 kB / 475.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.52e-05/0.1581, allocations: 27.62 kB / 476 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006773/0.1588, allocations: 361.7 kB / 476.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1588, allocations: 4 kB / 476.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1588, allocations: 0 / 476.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1589, allocations: 4 kB / 476.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.1603, allocations: 0.8909 MB / 477.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.1603, allocations: 7.938 kB / 477.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.1606, allocations: 59.91 kB / 477.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.1606, allocations: 4 kB / 477.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1606, allocations: 11.98 kB / 477.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1606, allocations: 3.938 kB / 477.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1607, allocations: 4.094 kB / 477.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007786/0.1614, allocations: 0.5852 MB / 477.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.1616, allocations: 104.7 kB / 478 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.1617, allocations: 8 kB / 478 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.1619, allocations: 19.97 kB / 478 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.854e-05/0.1619, allocations: 19.97 kB / 478 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.162, allocations: 12.09 kB / 478.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.1622, allocations: 219.1 kB / 478.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1622, allocations: 4 kB / 478.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004577/0.1627, allocations: 88 kB / 478.4 MB, free: 1.758 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0002387/0.1629, allocations: 111.4 kB / 478.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008438/0.1638, allocations: 417.1 kB / 478.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1638, allocations: 0 / 478.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.164, allocations: 155.7 kB / 479 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/0.1646, allocations: 73.36 kB / 479.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.1663, allocations: 0.9975 MB / 480.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.1669, allocations: 0.8504 MB / 481 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.1673, allocations: 139.1 kB / 481.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1674, allocations: 35.44 kB / 481.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1674, allocations: 0 / 481.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Templates: time 0.009022/0.1764, allocations: 3.325 MB / 484.4 MB, free: 11.63 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)