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.001591/0.001591, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001764/0.001764, allocations: 200 kB / 18.01 MB, free: 5.047 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1831/0.1831, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.89 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3819, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003246/0.3852, allocations: 2.045 MB / 0.5056 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007255/0.3859, allocations: 0.5171 MB / 0.5061 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.386, allocations: 5.094 kB / 0.5061 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.3861, allocations: 17.17 kB / 0.5061 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.329e-05/0.3862, allocations: 26.23 kB / 0.5062 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.3866, allocations: 66.41 kB / 0.5062 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.3867, allocations: 56.14 kB / 0.5063 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.549e-05/0.3867, allocations: 3.156 kB / 0.5063 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.592e-05/0.3868, allocations: 33.83 kB / 0.5063 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.779e-05/0.3869, allocations: 27.75 kB / 0.5063 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.3869, allocations: 0.9375 kB / 0.5063 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.387, allocations: 78.66 kB / 0.5064 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.12e-05/0.3871, allocations: 49.41 kB / 0.5065 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.3872, allocations: 43.3 kB / 0.5065 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.3874, allocations: 147.1 kB / 0.5067 GB, free: 5.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3874, allocations: 0 / 0.5067 GB, free: 5.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3874, allocations: 1.219 kB / 0.5067 GB, free: 5.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.3874, allocations: 3.938 kB / 0.5067 GB, free: 5.441 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.0004106/0.3878, allocations: 491.4 kB / 0.5071 GB, free: 4.984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3879, allocations: 12.83 kB / 0.5071 GB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.869e-05/0.3879, allocations: 45.53 kB / 0.5072 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.388, allocations: 26.45 kB / 0.5072 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.3881, allocations: 202.3 kB / 0.5074 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3881, allocations: 1.062 kB / 0.5074 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.3881, allocations: 3.328 kB / 0.5074 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.3883, allocations: 129.8 kB / 0.5075 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.3883, allocations: 0 / 0.5075 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.3884, allocations: 1.188 kB / 0.5075 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3884, allocations: 0.5625 kB / 0.5075 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.698e-05/0.3885, allocations: 93.72 kB / 0.5076 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.3886, allocations: 201.9 kB / 0.5078 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.3888, allocations: 155.9 kB / 0.508 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.3889, allocations: 138.6 kB / 0.5081 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.3889, allocations: 0 / 0.5081 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.389, allocations: 32.55 kB / 0.5081 GB, free: 4.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 9.11e-07/0.389, allocations: 0 / 0.5081 GB, free: 4.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006601/0.3896, allocations: 482.5 kB / 0.5086 GB, free: 4.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.3897, allocations: 114 kB / 0.5087 GB, free: 3.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.3898, allocations: 145.3 kB / 0.5088 GB, free: 3.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.727e-06/0.3898, allocations: 25.7 kB / 0.5089 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.705e-05/0.3899, allocations: 95.88 kB / 0.5089 GB, free: 3.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.107e-05/0.39, allocations: 142 kB / 0.5091 GB, free: 3.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.39, allocations: 31.7 kB / 0.5091 GB, free: 3.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.3901, allocations: 336.1 kB / 0.5094 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3902, allocations: 93.09 kB / 0.5095 GB, free: 3.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.292e-05/0.3903, allocations: 95.31 kB / 0.5096 GB, free: 3.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.3907, allocations: 368.7 kB / 0.51 GB, free: 3.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3907, allocations: 0 / 0.51 GB, free: 3.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003174/0.391, allocations: 327.4 kB / 0.5103 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-05/0.3911, allocations: 86.16 kB / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.3911, allocations: 0 / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3911, allocations: 1.609 kB / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.3911, allocations: 0 / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3911, allocations: 0.75 kB / 0.5104 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.818e-05/0.3912, allocations: 20.84 kB / 0.5104 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3912, allocations: 18.11 kB / 0.5104 GB, free: 2.887 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.0001687/0.3914, allocations: 236.1 kB / 0.5106 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.3914, allocations: 22 kB / 0.5106 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.472e-05/0.3914, allocations: 13.94 kB / 0.5107 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3914, allocations: 5.281 kB / 0.5107 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3915, allocations: 0.75 kB / 0.5107 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3915, allocations: 0 / 0.5107 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.3916, allocations: 230.2 kB / 0.5109 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3916, allocations: 1.062 kB / 0.5109 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.122e-06/0.3916, allocations: 4 kB / 0.5109 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3916, allocations: 5.031 kB / 0.5109 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.3916, allocations: 6.188 kB / 0.5109 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3916, allocations: 1.031 kB / 0.5109 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3916, allocations: 0 / 0.5109 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008982/0.3925, allocations: 0.908 MB / 0.5118 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.3926, allocations: 99.12 kB / 0.5119 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3926, allocations: 7.047 kB / 0.5119 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.617e-05/0.3927, allocations: 9.406 kB / 0.5119 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.83e-05/0.3927, allocations: 3.234 kB / 0.5119 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.3927, allocations: 7.312 kB / 0.5119 GB, free: 2.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.153e-05/0.3928, allocations: 119.5 kB / 0.512 GB, free: 2.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3928, allocations: 0 / 0.512 GB, free: 2.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.3931, allocations: 66.86 kB / 0.5121 GB, free: 2.008 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.001148/0.3942, allocations: 1.454 MB / 0.5135 GB, free: 1.223 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.3957, allocations: 1.589 MB / 0.5151 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3957, allocations: 0 / 0.5151 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3967, allocations: 1.362 MB / 0.5164 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.397, allocations: 28.38 kB / 0.5164 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.4006, allocations: 3.468 MB / 0.5198 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.4009, allocations: 0.7497 MB / 0.5205 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.763e-05/0.401, allocations: 2.297 kB / 0.5205 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.535e-05/0.401, allocations: 40.84 kB / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.401, allocations: 1.188 kB / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.4245, allocations: 4.855 MB / 0.5253 GB, free: 12.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/8.065, allocations: 8.031 kB / 0.5253 GB, free: 12.59 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)