Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001707/0.001707, allocations: 116.1 kB / 17.06 MB, free: 5.812 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.001841/0.001841, allocations: 196 kB / 18.01 MB, free: 4.938 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.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1722/0.1722, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4351, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.004282/0.4394, allocations: 2.04 MB / 0.5056 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009545/0.4404, allocations: 0.5275 MB / 0.5061 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.261e-05/0.4405, allocations: 0 / 0.5061 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.4407, allocations: 10 kB / 0.5061 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001457/0.4408, allocations: 28.77 kB / 0.5062 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.4412, allocations: 63.41 kB / 0.5062 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.4414, allocations: 59.41 kB / 0.5063 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.638e-05/0.4415, allocations: 3.438 kB / 0.5063 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.659e-05/0.4416, allocations: 28.53 kB / 0.5063 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.875e-05/0.4416, allocations: 37.84 kB / 0.5063 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.4417, allocations: 1.094 kB / 0.5063 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002589/0.4419, allocations: 83.09 kB / 0.5064 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.442, allocations: 15.25 kB / 0.5064 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/0.4421, allocations: 17.42 kB / 0.5065 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.4424, allocations: 107.4 kB / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4425, allocations: 1.375 kB / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.4425, allocations: 0 / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.4425, allocations: 4.594 kB / 0.5066 GB, free: 5.492 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005351/0.443, allocations: 398.5 kB / 0.5069 GB, free: 5.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.4431, allocations: 17.98 kB / 0.507 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.892e-05/0.4432, allocations: 38.69 kB / 0.507 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.4432, allocations: 8.234 kB / 0.507 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.4434, allocations: 182 kB / 0.5072 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.4434, allocations: 1.312 kB / 0.5072 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.4435, allocations: 4.906 kB / 0.5072 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.4436, allocations: 62.91 kB / 0.5072 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.4437, allocations: 0 / 0.5072 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.4437, allocations: 1.562 kB / 0.5072 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.4437, allocations: 0 / 0.5072 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.032e-05/0.4438, allocations: 32.61 kB / 0.5073 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.4439, allocations: 172.2 kB / 0.5074 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.957e-05/0.444, allocations: 62.34 kB / 0.5075 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.076e-05/0.4441, allocations: 48.78 kB / 0.5076 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.4441, allocations: 224 / 0.5076 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.4442, allocations: 32.25 kB / 0.5076 GB, free: 4.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.193e-06/0.4442, allocations: 8.875 kB / 0.5076 GB, free: 4.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003456/0.4445, allocations: 179.1 kB / 0.5078 GB, free: 4.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.4446, allocations: 86.92 kB / 0.5078 GB, free: 4.277 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.399e-05/0.4447, allocations: 119.2 kB / 0.508 GB, free: 4.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.4447, allocations: 31.08 kB / 0.508 GB, free: 4.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.467e-05/0.4447, allocations: 87.22 kB / 0.5081 GB, free: 4.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.604e-05/0.4448, allocations: 37.41 kB / 0.5081 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.4448, allocations: 17.19 kB / 0.5081 GB, free: 4.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.927e-05/0.4449, allocations: 324.8 kB / 0.5084 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-05/0.445, allocations: 29.05 kB / 0.5085 GB, free: 3.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.51e-05/0.4451, allocations: 29.31 kB / 0.5085 GB, free: 3.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.4453, allocations: 158.4 kB / 0.5086 GB, free: 3.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4453, allocations: 1.188 kB / 0.5086 GB, free: 3.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002312/0.4455, allocations: 145.5 kB / 0.5088 GB, free: 3.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/0.4456, allocations: 50.02 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4456, allocations: 0.5625 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4456, allocations: 1.281 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.805e-06/0.4457, allocations: 3.938 kB / 0.5088 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.4457, allocations: 8.844 kB / 0.5088 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.243e-05/0.4457, allocations: 10.83 kB / 0.5089 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.4458, allocations: 3.125 kB / 0.5089 GB, free: 3.457 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 0.0001265/0.4459, allocations: 169.1 kB / 0.509 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.292e-05/0.4459, allocations: 10.25 kB / 0.509 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.446, allocations: 9.203 kB / 0.509 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.446, allocations: 1.5 kB / 0.509 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.446, allocations: 0 / 0.509 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.446, allocations: 0.8438 kB / 0.509 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.4461, allocations: 184.1 kB / 0.5092 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4461, allocations: 0 / 0.5092 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-06/0.4461, allocations: 1.594 kB / 0.5092 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4461, allocations: 3.938 kB / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.4462, allocations: 3.203 kB / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.4462, allocations: 0.6562 kB / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4462, allocations: 1.156 kB / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.4466, allocations: 279.5 kB / 0.5095 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.4467, allocations: 91.83 kB / 0.5096 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.4467, allocations: 7.109 kB / 0.5096 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.297e-05/0.4467, allocations: 6.438 kB / 0.5096 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.4468, allocations: 2.109 kB / 0.5096 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.4468, allocations: 3.344 kB / 0.5096 GB, free: 2.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.319e-05/0.4469, allocations: 93.58 kB / 0.5097 GB, free: 2.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4469, allocations: 0 / 0.5097 GB, free: 2.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.4473, allocations: 33.12 kB / 0.5097 GB, free: 2.754 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.0007195/0.448, allocations: 0.8356 MB / 0.5105 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004532/0.4485, allocations: 291.6 kB / 0.5108 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4485, allocations: 1.562 kB / 0.5108 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.4487, allocations: 222.8 kB / 0.511 GB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.4491, allocations: 14.42 kB / 0.511 GB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.4513, allocations: 1.771 MB / 0.5128 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.4516, allocations: 0.6992 MB / 0.5134 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.237e-05/0.4516, allocations: 1.094 kB / 0.5134 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.4516, allocations: 18.81 kB / 0.5135 GB, free: 15.81 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.4516, allocations: 0 / 0.5135 GB, free: 15.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.4819, allocations: 2.562 MB / 0.516 GB, free: 15.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.694/8.176, allocations: 9.125 kB / 0.516 GB, free: 15.37 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_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_matrixEqCirc1.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1)