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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007925/0.0007925, allocations: 82.94 kB / 16.31 MB, free: 6.449 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.0009473/0.0009474, allocations: 181.6 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 223.4 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3485/0.3485, allocations: 38.06 MB / 309.7 MB, free: 8.891 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005391/0.0005391, allocations: 16 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1455, allocations: 56.32 MB / 432.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006419/0.152, allocations: 4.451 MB / 437.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1553, allocations: 1.579 MB / 439 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005618/0.1559, allocations: 27.81 kB / 439 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.1563, allocations: 75.39 kB / 439.1 MB, free: 460 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.1574, allocations: 250.8 kB / 439.3 MB, free: 208 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009814/0.1584, allocations: 227.6 kB / 439.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009089/0.1594, allocations: 0.6391 MB / 440.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1604, allocations: 0.5192 MB / 440.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005096/0.161, allocations: 199 kB / 440.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006029/0.1616, allocations: 283.2 kB / 441.2 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.117e-05/0.1617, allocations: 20 kB / 441.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.162, allocations: 91.8 kB / 441.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003078/0.1623, allocations: 199.5 kB / 441.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.1626, allocations: 113.5 kB / 441.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.1631, allocations: 427 kB / 442 MB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1631, allocations: 4 kB / 442 MB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1632, allocations: 0 / 442 MB, free: 13.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.1632, allocations: 0 / 442 MB, free: 13.47 MB / 382.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.001373/0.1646, allocations: 0.6568 MB / 442.7 MB, free: 12.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1646, allocations: 16.03 kB / 442.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.1648, allocations: 86.52 kB / 442.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005854/0.1654, allocations: 79.39 kB / 442.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006875/0.1661, allocations: 386.1 kB / 443.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.1661, allocations: 29 kB / 443.2 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.1663, allocations: 47.94 kB / 443.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.1674, allocations: 0.6287 MB / 443.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.1674, allocations: 3.938 kB / 443.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.069e-05/0.1675, allocations: 20 kB / 443.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.1676, allocations: 28.98 kB / 444 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008533/0.1685, allocations: 479.4 kB / 444.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.1721, allocations: 2.888 MB / 447.3 MB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.1725, allocations: 233 kB / 447.6 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.1727, allocations: 141.7 kB / 447.7 MB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.1728, allocations: 15.98 kB / 447.7 MB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.1728, allocations: 34.98 kB / 447.7 MB, free: 7.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 3.827e-06/0.1728, allocations: 0 / 447.7 MB, free: 7.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001698/0.1745, allocations: 0.9612 MB / 448.7 MB, free: 6.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.1746, allocations: 77.23 kB / 448.8 MB, free: 6.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.175, allocations: 328.4 kB / 449.1 MB, free: 5.938 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.1751, allocations: 33.7 kB / 449.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.1753, allocations: 271.2 kB / 449.4 MB, free: 5.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.624e-05/0.1754, allocations: 102.6 kB / 449.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.1754, allocations: 4 kB / 449.5 MB, free: 5.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1756, allocations: 350.8 kB / 449.8 MB, free: 5.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.1758, allocations: 141 kB / 450 MB, free: 5.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.1762, allocations: 343.2 kB / 450.3 MB, free: 4.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.1765, allocations: 207.8 kB / 450.5 MB, free: 4.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1765, allocations: 7.891 kB / 450.5 MB, free: 4.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008546/0.1774, allocations: 0.5287 MB / 451.1 MB, free: 3.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1774, allocations: 11.91 kB / 451.1 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.1774, allocations: 12.06 kB / 451.1 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.1775, allocations: 15.98 kB / 451.1 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.1779, allocations: 115.8 kB / 451.2 MB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.1779, allocations: 15.94 kB / 451.2 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.1782, allocations: 27.97 kB / 451.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/0.1783, allocations: 20 kB / 451.3 MB, free: 3.645 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002626/0.1785, allocations: 210 kB / 451.5 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.017e-05/0.1786, allocations: 35.56 kB / 451.5 MB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006028/0.1792, allocations: 365.6 kB / 451.9 MB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1792, allocations: 4 kB / 451.9 MB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.1792, allocations: 0 / 451.9 MB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1792, allocations: 0 / 451.9 MB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.1807, allocations: 0.8794 MB / 452.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1807, allocations: 0 / 452.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.181, allocations: 63.91 kB / 452.8 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.1811, allocations: 0 / 452.8 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.1811, allocations: 8 kB / 452.8 MB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.848e-06/0.1811, allocations: 11.98 kB / 452.8 MB, free: 2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1811, allocations: 0 / 452.8 MB, free: 2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007976/0.1819, allocations: 0.5887 MB / 453.4 MB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.1821, allocations: 120.6 kB / 453.5 MB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.1821, allocations: 8 kB / 453.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.1823, allocations: 11.98 kB / 453.6 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1823, allocations: 11.98 kB / 453.6 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.1824, allocations: 19.94 kB / 453.6 MB, free: 1.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.1826, allocations: 219.1 kB / 453.8 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1826, allocations: 0 / 453.8 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.1831, allocations: 92 kB / 453.9 MB, free: 0.8945 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2735/0.4566, allocations: 1.123 MB / 455 MB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.4574, allocations: 358.6 kB / 455.4 MB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4575, allocations: 4.969 kB / 455.4 MB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.4577, allocations: 146.5 kB / 455.5 MB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.4583, allocations: 64.05 kB / 455.6 MB, free: 51.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.4616, allocations: 2.651 MB / 458.2 MB, free: 50.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.462, allocations: 0.8566 MB / 459.1 MB, free: 49.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003303/0.4623, allocations: 130.6 kB / 459.2 MB, free: 49.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.4625, allocations: 143.3 kB / 459.4 MB, free: 49.43 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4625, allocations: 4 kB / 459.4 MB, free: 49.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.4819, allocations: 6.675 MB / 466 MB, free: 48.91 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.4822, allocations: 192.1 kB / 466.2 MB, free: 48.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.373, allocations: 0 / 466.2 MB, free: 48.66 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) Environment - environmentSimulation: