Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.001828/0.001827, allocations: 106.3 kB / 17.06 MB, free: 5.82 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.002022/0.002022, allocations: 195.9 kB / 18 MB, free: 4.965 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.779/2.779, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.408/0.408, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002377/0.002377, allocations: 63.89 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7351/0.7375, allocations: 58.06 MB / 0.5036 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.0078/0.7454, allocations: 2.034 MB / 0.5056 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.747, allocations: 0.5238 MB / 0.5061 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.725e-05/0.7471, allocations: 1.094 kB / 0.5061 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.7474, allocations: 10.55 kB / 0.5061 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.7476, allocations: 27.88 kB / 0.5062 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.7482, allocations: 68.22 kB / 0.5062 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000252/0.7485, allocations: 55.58 kB / 0.5063 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.595e-05/0.7486, allocations: 2.719 kB / 0.5063 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.7488, allocations: 37.7 kB / 0.5063 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.749, allocations: 28 kB / 0.5063 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.749, allocations: 1.781 kB / 0.5063 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003641/0.7494, allocations: 78.48 kB / 0.5064 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.7495, allocations: 41.67 kB / 0.5065 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.702e-05/0.7496, allocations: 45.58 kB / 0.5065 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.7502, allocations: 152.1 kB / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.7502, allocations: 0 / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.16e-06/0.7503, allocations: 0 / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.7503, allocations: 5.281 kB / 0.5066 GB, free: 5.535 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0008707/0.7512, allocations: 494.5 kB / 0.5071 GB, free: 5.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.384e-05/0.7513, allocations: 13.39 kB / 0.5071 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.263e-05/0.7514, allocations: 46.02 kB / 0.5072 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.397e-05/0.7514, allocations: 18.52 kB / 0.5072 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.7518, allocations: 207.4 kB / 0.5074 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.7518, allocations: 0 / 0.5074 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.7519, allocations: 3.484 kB / 0.5074 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.7523, allocations: 125.7 kB / 0.5075 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.7523, allocations: 0 / 0.5075 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.7523, allocations: 5.156 kB / 0.5075 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.7524, allocations: 0 / 0.5075 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.7526, allocations: 101.5 kB / 0.5076 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.7529, allocations: 197.1 kB / 0.5078 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.7533, allocations: 153.9 kB / 0.508 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.7536, allocations: 138.2 kB / 0.5081 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/0.7536, allocations: 0 / 0.5081 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.7537, allocations: 40.28 kB / 0.5081 GB, free: 4.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.7537, allocations: 0 / 0.5081 GB, free: 4.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.00134/0.755, allocations: 483.3 kB / 0.5086 GB, free: 4.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.7552, allocations: 108.5 kB / 0.5087 GB, free: 4.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.7554, allocations: 145.3 kB / 0.5088 GB, free: 3.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.7555, allocations: 27.33 kB / 0.5089 GB, free: 3.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.171e-05/0.7555, allocations: 93.94 kB / 0.5089 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.7557, allocations: 135.7 kB / 0.5091 GB, free: 3.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.7559, allocations: 40.14 kB / 0.5091 GB, free: 3.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.7561, allocations: 335.5 kB / 0.5094 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.7563, allocations: 89.98 kB / 0.5095 GB, free: 3.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.7566, allocations: 94.75 kB / 0.5096 GB, free: 3.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007459/0.7574, allocations: 363.7 kB / 0.51 GB, free: 3.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.7574, allocations: 5 kB / 0.51 GB, free: 3.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007099/0.7581, allocations: 322.8 kB / 0.5103 GB, free: 3.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001802/0.7583, allocations: 86.19 kB / 0.5103 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.7583, allocations: 0.6562 kB / 0.5103 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.7584, allocations: 5.125 kB / 0.5104 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.914e-06/0.7584, allocations: 0 / 0.5104 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.7584, allocations: 0.6562 kB / 0.5104 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.982e-05/0.7585, allocations: 20.5 kB / 0.5104 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.426e-05/0.7586, allocations: 7.281 kB / 0.5104 GB, free: 2.992 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.0004041/0.759, allocations: 235.4 kB / 0.5106 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.384e-05/0.7591, allocations: 21.28 kB / 0.5106 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.7591, allocations: 14.95 kB / 0.5106 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.7591, allocations: 6.844 kB / 0.5106 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.7591, allocations: 4 kB / 0.5106 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.7592, allocations: 1.281 kB / 0.5107 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003909/0.7596, allocations: 233.9 kB / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.7596, allocations: 0.875 kB / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.7596, allocations: 0 / 0.5109 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.7596, allocations: 5.781 kB / 0.5109 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.7597, allocations: 6.281 kB / 0.5109 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.7597, allocations: 3.984 kB / 0.5109 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.7597, allocations: 5.547 kB / 0.5109 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.7621, allocations: 0.9023 MB / 0.5118 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.7622, allocations: 100.1 kB / 0.5119 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.7623, allocations: 6.625 kB / 0.5119 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.7624, allocations: 5.625 kB / 0.5119 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.019e-05/0.7625, allocations: 6.922 kB / 0.5119 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-05/0.7625, allocations: 7.594 kB / 0.5119 GB, free: 2.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001914/0.7627, allocations: 119.3 kB / 0.512 GB, free: 2.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7627, allocations: 0 / 0.512 GB, free: 2.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006031/0.7634, allocations: 63.36 kB / 0.5121 GB, free: 2.105 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.002688/0.7661, allocations: 1.458 MB / 0.5135 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003329/0.7694, allocations: 1.585 MB / 0.515 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.7694, allocations: 0 / 0.515 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.7717, allocations: 1.367 MB / 0.5164 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006194/0.7724, allocations: 40.33 kB / 0.5164 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009153/0.7815, allocations: 3.463 MB / 0.5198 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009935/0.7826, allocations: 0.7477 MB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.373e-05/0.7827, allocations: 1.703 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.7829, allocations: 41.75 kB / 0.5206 GB, free: 13.28 MB / 398.1 MB Notification: Performance of SimCode: time 3.116e-06/0.7829, allocations: 0 / 0.5206 GB, free: 13.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1736/0.9565, allocations: 4.86 MB / 0.5253 GB, free: 12.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.85, allocations: 12.34 kB / 0.5253 GB, free: 12.68 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_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_matrixEqCirc3.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1)