Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",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.001269/0.001269, allocations: 107.7 kB / 17.06 MB, free: 5.992 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.001227/0.001227, allocations: 198.8 kB / 18.01 MB, free: 5.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.498/1.498, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1725/0.1725, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 63.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.458/0.4602, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003034/0.4633, allocations: 2.046 MB / 0.5056 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007109/0.464, allocations: 0.5175 MB / 0.5061 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.425e-05/0.464, allocations: 1.219 kB / 0.5061 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.4643, allocations: 18.11 kB / 0.5061 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.457e-05/0.4644, allocations: 29.36 kB / 0.5062 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.4647, allocations: 59.14 kB / 0.5062 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.4648, allocations: 63.72 kB / 0.5063 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.427e-05/0.4648, allocations: 3.469 kB / 0.5063 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.061e-05/0.4649, allocations: 33.58 kB / 0.5063 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.419e-05/0.465, allocations: 34.81 kB / 0.5064 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.465, allocations: 5.234 kB / 0.5064 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.4652, allocations: 69.95 kB / 0.5064 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.231e-05/0.4653, allocations: 15.56 kB / 0.5064 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.4653, allocations: 16.59 kB / 0.5065 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.4655, allocations: 103.8 kB / 0.5066 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4655, allocations: 1.094 kB / 0.5066 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4655, allocations: 0 / 0.5066 GB, free: 5.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.4655, allocations: 0 / 0.5066 GB, free: 5.59 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000351/0.4659, allocations: 393.9 kB / 0.5069 GB, free: 5.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.466, allocations: 12.64 kB / 0.5069 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.933e-05/0.466, allocations: 38.11 kB / 0.507 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.466, allocations: 3.969 kB / 0.507 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.4662, allocations: 181 kB / 0.5072 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.4662, allocations: 4.375 kB / 0.5072 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.4662, allocations: 5.062 kB / 0.5072 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.4663, allocations: 52.05 kB / 0.5072 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.4663, allocations: 3.938 kB / 0.5072 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.4663, allocations: 1.656 kB / 0.5072 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.4664, allocations: 0 / 0.5072 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.066e-05/0.4664, allocations: 17.91 kB / 0.5072 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.4665, allocations: 164.4 kB / 0.5074 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.511e-05/0.4666, allocations: 51.58 kB / 0.5074 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.12e-05/0.4666, allocations: 33.45 kB / 0.5075 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.4667, allocations: 0 / 0.5075 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.4667, allocations: 32 kB / 0.5075 GB, free: 4.586 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.4667, allocations: 0 / 0.5075 GB, free: 4.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002577/0.4669, allocations: 145.1 kB / 0.5076 GB, free: 4.508 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.467, allocations: 84.25 kB / 0.5077 GB, free: 4.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.4671, allocations: 119 kB / 0.5078 GB, free: 4.305 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.4671, allocations: 26.83 kB / 0.5079 GB, free: 4.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.25e-05/0.4671, allocations: 86.48 kB / 0.5079 GB, free: 4.188 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.4672, allocations: 25.27 kB / 0.508 GB, free: 4.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.4672, allocations: 22.02 kB / 0.508 GB, free: 4.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.523e-05/0.4673, allocations: 319.1 kB / 0.5083 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.4673, allocations: 17.81 kB / 0.5083 GB, free: 3.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.303e-05/0.4674, allocations: 21.5 kB / 0.5083 GB, free: 3.828 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.4675, allocations: 129.9 kB / 0.5085 GB, free: 3.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4675, allocations: 3.938 kB / 0.5085 GB, free: 3.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001274/0.4676, allocations: 121.5 kB / 0.5086 GB, free: 3.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.4677, allocations: 40.88 kB / 0.5086 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.4677, allocations: 3.891 kB / 0.5086 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.4677, allocations: 0 / 0.5086 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.016e-06/0.4677, allocations: 2.109 kB / 0.5086 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.4677, allocations: 3.938 kB / 0.5086 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.439e-05/0.4677, allocations: 10.09 kB / 0.5086 GB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.4678, allocations: 3.656 kB / 0.5086 GB, free: 3.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.485e-05/0.4679, allocations: 167.9 kB / 0.5088 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.46e-05/0.4679, allocations: 7.203 kB / 0.5088 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.167e-05/0.4679, allocations: 8.172 kB / 0.5088 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.4679, allocations: 0 / 0.5088 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4679, allocations: 0 / 0.5088 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4679, allocations: 2.078 kB / 0.5088 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.838e-05/0.468, allocations: 165.7 kB / 0.509 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.468, allocations: 0.6094 kB / 0.509 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.468, allocations: 5.125 kB / 0.509 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.468, allocations: 0 / 0.509 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.468, allocations: 7.25 kB / 0.509 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.468, allocations: 0 / 0.509 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.468, allocations: 1.656 kB / 0.509 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.4683, allocations: 218.8 kB / 0.5092 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.4683, allocations: 84.56 kB / 0.5093 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.4683, allocations: 2.047 kB / 0.5093 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.62e-05/0.4683, allocations: 1.469 kB / 0.5093 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.411e-05/0.4683, allocations: 2.25 kB / 0.5093 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.4684, allocations: 7.562 kB / 0.5093 GB, free: 3.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.394e-05/0.4684, allocations: 91.08 kB / 0.5094 GB, free: 2.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4684, allocations: 0 / 0.5094 GB, free: 2.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.4687, allocations: 28.61 kB / 0.5094 GB, free: 2.938 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0004276/0.4691, allocations: 0.76 MB / 0.5101 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.4693, allocations: 195 kB / 0.5103 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4693, allocations: 0 / 0.5103 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.4695, allocations: 148.4 kB / 0.5105 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.4697, allocations: 15.66 kB / 0.5105 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4709, allocations: 1.55 MB / 0.512 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.471, allocations: 0.6907 MB / 0.5127 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.491e-05/0.471, allocations: 1.891 kB / 0.5127 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.4711, allocations: 26.34 kB / 0.5127 GB, free: 136 kB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4711, allocations: 0 / 0.5127 GB, free: 136 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02063/0.4917, allocations: 2.172 MB / 0.5148 GB, free: 15.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.205, allocations: 20.17 kB / 0.5148 GB, free: 15.7 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1)