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.002304/0.002304, allocations: 114.1 kB / 17.29 MB, free: 6.219 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.00267/0.002671, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.681/2.681, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3461/0.3461, allocations: 38.03 MB / 330.1 MB, free: 9.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.001941, allocations: 55.25 kB / 398.9 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1729, allocations: 58.07 MB / 457 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.009156/0.1822, allocations: 5.081 MB / 462.1 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004177/0.1865, allocations: 1.597 MB / 463.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006628/0.1872, allocations: 27.81 kB / 463.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.1886, allocations: 354.8 kB / 464 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008912/0.1895, allocations: 199.1 kB / 464.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009674/0.1905, allocations: 231.6 kB / 464.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008496/0.1914, allocations: 0.5377 MB / 465 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000659/0.192, allocations: 297.1 kB / 465.3 MB, free: 140 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005073/0.1926, allocations: 243.1 kB / 465.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005915/0.1932, allocations: 323 kB / 465.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.1932, allocations: 32 kB / 465.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003845/0.1936, allocations: 139.8 kB / 466 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002796/0.1939, allocations: 223.4 kB / 466.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002953/0.1942, allocations: 230.9 kB / 466.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006413/0.1949, allocations: 443 kB / 466.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.1949, allocations: 7.984 kB / 466.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1949, allocations: 0 / 466.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.1949, allocations: 0 / 466.9 MB, free: 14.53 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.001768/0.1967, allocations: 0.731 MB / 467.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/0.1968, allocations: 19.83 kB / 467.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007617/0.1976, allocations: 76.33 kB / 467.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000812/0.1984, allocations: 395.2 kB / 468.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.1984, allocations: 29.38 kB / 468.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.1986, allocations: 52.11 kB / 468.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.1999, allocations: 0.617 MB / 468.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.1999, allocations: 4 kB / 468.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.2, allocations: 23.94 kB / 468.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.2002, allocations: 32.98 kB / 468.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.2012, allocations: 479.4 kB / 469.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.2059, allocations: 2.895 MB / 472.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.2065, allocations: 231.5 kB / 472.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.2069, allocations: 141.7 kB / 472.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.406e-05/0.2069, allocations: 11.97 kB / 472.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.206e-05/0.207, allocations: 30.56 kB / 472.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 4.839e-06/0.207, allocations: 4 kB / 472.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002451/0.2095, allocations: 0.963 MB / 473.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.2096, allocations: 81.11 kB / 473.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004767/0.21, allocations: 328.4 kB / 474 MB, free: 7.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.2101, allocations: 29.7 kB / 474 MB, free: 6.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.2103, allocations: 275.2 kB / 474.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.2105, allocations: 106.7 kB / 474.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002797/0.2108, allocations: 98.09 kB / 474.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.211, allocations: 346.7 kB / 474.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.2113, allocations: 145 kB / 475 MB, free: 5.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/0.2118, allocations: 347.2 kB / 475.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008881/0.2127, allocations: 0.5247 MB / 475.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.2128, allocations: 4 kB / 475.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001135/0.2139, allocations: 0.5247 MB / 476.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.214, allocations: 10.34 kB / 476.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.214, allocations: 8 kB / 476.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.415e-05/0.214, allocations: 8 kB / 476.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.2147, allocations: 123.8 kB / 476.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.2148, allocations: 11.94 kB / 476.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.2151, allocations: 27.98 kB / 476.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/0.2152, allocations: 27.98 kB / 476.6 MB, free: 4.203 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.0003662/0.2156, allocations: 217.6 kB / 476.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2157, allocations: 31.62 kB / 476.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008323/0.2165, allocations: 357.7 kB / 477.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2166, allocations: 4 kB / 477.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2166, allocations: 0 / 477.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.2166, allocations: 3.984 kB / 477.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.2185, allocations: 0.8951 MB / 478.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2185, allocations: 0 / 478.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.219, allocations: 71.89 kB / 478.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.219, allocations: 0 / 478.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.219, allocations: 8 kB / 478.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.116e-05/0.2191, allocations: 7.938 kB / 478.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2191, allocations: 0 / 478.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.2202, allocations: 0.5887 MB / 478.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.2203, allocations: 100.7 kB / 478.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.332e-05/0.2204, allocations: 12.03 kB / 478.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.2207, allocations: 11.94 kB / 478.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.351e-05/0.2207, allocations: 27.97 kB / 478.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.2208, allocations: 8 kB / 478.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003168/0.2211, allocations: 223 kB / 479.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2211, allocations: 0 / 479.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000784/0.2219, allocations: 92 kB / 479.2 MB, free: 1.43 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.0001875/0.2221, allocations: 103.2 kB / 479.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.223, allocations: 411.4 kB / 479.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.2231, allocations: 1.812 kB / 479.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.2234, allocations: 143.8 kB / 479.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007901/0.2242, allocations: 77.23 kB / 479.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.2267, allocations: 1.222 MB / 481.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.2273, allocations: 0.8504 MB / 482 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.2275, allocations: 39.42 kB / 482 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2275, allocations: 4 kB / 482.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of Templates: time 0.01304/0.2405, allocations: 4.933 MB / 487 MB, free: 9.59 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)