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.00131/0.00131, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.00135/0.00135, allocations: 200 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.489/1.489, 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.196/0.196, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 67.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3856, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.003207/0.3889, allocations: 2.052 MB / 0.5056 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007052/0.3896, allocations: 0.518 MB / 0.5061 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.3897, allocations: 4.938 kB / 0.5061 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.3898, allocations: 9.781 kB / 0.5061 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.39, allocations: 24.72 kB / 0.5062 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.3903, allocations: 76.14 kB / 0.5062 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.3905, allocations: 55.14 kB / 0.5063 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.879e-05/0.3905, allocations: 2.984 kB / 0.5063 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.808e-05/0.3906, allocations: 33.42 kB / 0.5063 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.949e-05/0.3907, allocations: 28.97 kB / 0.5064 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.3907, allocations: 1.188 kB / 0.5064 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.3909, allocations: 78.53 kB / 0.5064 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.913e-05/0.3909, allocations: 15.39 kB / 0.5064 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.391, allocations: 18.08 kB / 0.5065 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.3912, allocations: 115.7 kB / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3912, allocations: 1.188 kB / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3912, allocations: 0 / 0.5066 GB, free: 5.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3912, allocations: 3.938 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.000322/0.3916, allocations: 400.2 kB / 0.507 GB, free: 5.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3916, allocations: 13.17 kB / 0.507 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.909e-05/0.3916, allocations: 37.89 kB / 0.507 GB, free: 5.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.73e-05/0.3917, allocations: 7.766 kB / 0.507 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.3918, allocations: 182.9 kB / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.3918, allocations: 384 / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.3918, allocations: 10.2 kB / 0.5072 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.392, allocations: 61.98 kB / 0.5073 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.392, allocations: 0 / 0.5073 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.392, allocations: 1.5 kB / 0.5073 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.392, allocations: 0.5156 kB / 0.5073 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.841e-05/0.3921, allocations: 28.23 kB / 0.5073 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.3922, allocations: 172.5 kB / 0.5074 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.275e-05/0.3923, allocations: 58.8 kB / 0.5075 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.3923, allocations: 47.72 kB / 0.5075 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.3923, allocations: 1.641 kB / 0.5076 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.3924, allocations: 31.44 kB / 0.5076 GB, free: 4.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.3924, allocations: 7.875 kB / 0.5076 GB, free: 4.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002844/0.3926, allocations: 184.2 kB / 0.5078 GB, free: 4.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.3927, allocations: 87.41 kB / 0.5078 GB, free: 4.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.3928, allocations: 119.7 kB / 0.508 GB, free: 4.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.3928, allocations: 29.73 kB / 0.508 GB, free: 4.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/0.3928, allocations: 88.28 kB / 0.5081 GB, free: 4.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.3929, allocations: 35.48 kB / 0.5081 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.3929, allocations: 19.66 kB / 0.5081 GB, free: 4.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.163e-05/0.393, allocations: 320 kB / 0.5084 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.463e-05/0.393, allocations: 28.03 kB / 0.5085 GB, free: 3.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.666e-05/0.3931, allocations: 28.83 kB / 0.5085 GB, free: 3.688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.3932, allocations: 163.7 kB / 0.5086 GB, free: 3.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3932, allocations: 5.219 kB / 0.5086 GB, free: 3.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001476/0.3934, allocations: 144.4 kB / 0.5088 GB, free: 3.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/0.3934, allocations: 50.28 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3934, allocations: 1.156 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.3934, allocations: 0 / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.954e-06/0.3935, allocations: 0.75 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3935, allocations: 1.188 kB / 0.5088 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.854e-05/0.3935, allocations: 10.08 kB / 0.5088 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3935, allocations: 4.172 kB / 0.5088 GB, free: 3.469 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 9.604e-05/0.3936, allocations: 172.1 kB / 0.509 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.3936, allocations: 10.75 kB / 0.509 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.486e-05/0.3937, allocations: 7.688 kB / 0.509 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3937, allocations: 1.219 kB / 0.509 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3937, allocations: 4 kB / 0.509 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3937, allocations: 0.5625 kB / 0.509 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.781e-05/0.3938, allocations: 180.3 kB / 0.5092 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3938, allocations: 0.7031 kB / 0.5092 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.593e-06/0.3938, allocations: 3.938 kB / 0.5092 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3938, allocations: 5.125 kB / 0.5092 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.3938, allocations: 3.031 kB / 0.5092 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3938, allocations: 5.094 kB / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3938, allocations: 0 / 0.5092 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.3941, allocations: 277.6 kB / 0.5095 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.3942, allocations: 87.98 kB / 0.5096 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.3942, allocations: 2.188 kB / 0.5096 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.793e-05/0.3942, allocations: 6.188 kB / 0.5096 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.3942, allocations: 2.797 kB / 0.5096 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3943, allocations: 7.844 kB / 0.5096 GB, free: 2.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.485e-05/0.3943, allocations: 96.84 kB / 0.5097 GB, free: 2.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3943, allocations: 0 / 0.5097 GB, free: 2.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.3946, allocations: 33.69 kB / 0.5097 GB, free: 2.758 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.0006004/0.3952, allocations: 0.8272 MB / 0.5105 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000318/0.3955, allocations: 292.2 kB / 0.5108 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3955, allocations: 0 / 0.5108 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.3957, allocations: 223.3 kB / 0.511 GB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.396, allocations: 11.41 kB / 0.511 GB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.3976, allocations: 1.769 MB / 0.5128 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.3978, allocations: 0.702 MB / 0.5134 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.145e-05/0.3978, allocations: 1.312 kB / 0.5134 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.3979, allocations: 22.17 kB / 0.5135 GB, free: 15.82 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3979, allocations: 0 / 0.5135 GB, free: 15.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.4271, allocations: 2.569 MB / 0.516 GB, free: 15.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.509, allocations: 8.688 kB / 0.516 GB, free: 15.38 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)