Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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_matrixEqCirc2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001285/0.001285, allocations: 105.2 kB / 17.06 MB, free: 6.02 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.001196/0.001196, allocations: 192 kB / 18 MB, free: 5.098 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.368/1.368, 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.1795/0.1795, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 59.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4004, allocations: 58.06 MB / 0.5036 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003117/0.4036, allocations: 2.042 MB / 0.5056 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006832/0.4043, allocations: 0.5235 MB / 0.5061 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.76e-05/0.4043, allocations: 1.094 kB / 0.5061 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.4045, allocations: 14.45 kB / 0.5061 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.504e-05/0.4046, allocations: 24.19 kB / 0.5062 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.405, allocations: 67.64 kB / 0.5062 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.4051, allocations: 58.84 kB / 0.5063 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.4052, allocations: 3.281 kB / 0.5063 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.305e-05/0.4053, allocations: 33.03 kB / 0.5063 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.14e-05/0.4053, allocations: 33.14 kB / 0.5063 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.4053, allocations: 1.094 kB / 0.5064 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.4055, allocations: 81.78 kB / 0.5064 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.968e-05/0.4056, allocations: 29.03 kB / 0.5065 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.4056, allocations: 31.69 kB / 0.5065 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.4059, allocations: 121.9 kB / 0.5066 GB, free: 5.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.4059, allocations: 1.859 kB / 0.5066 GB, free: 5.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4059, allocations: 0 / 0.5066 GB, free: 5.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.4059, allocations: 0 / 0.5066 GB, free: 5.582 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003636/0.4063, allocations: 445.2 kB / 0.507 GB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4063, allocations: 17.3 kB / 0.507 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.4064, allocations: 36.81 kB / 0.5071 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.4064, allocations: 16.88 kB / 0.5071 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.4066, allocations: 192.1 kB / 0.5073 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.4066, allocations: 1.625 kB / 0.5073 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.4066, allocations: 5.094 kB / 0.5073 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.4067, allocations: 86.89 kB / 0.5074 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.4067, allocations: 1.219 kB / 0.5074 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.4068, allocations: 4 kB / 0.5074 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4068, allocations: 1.094 kB / 0.5074 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.691e-05/0.4068, allocations: 64.83 kB / 0.5074 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.407, allocations: 187.8 kB / 0.5076 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.378e-05/0.4071, allocations: 100 kB / 0.5077 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.566e-05/0.4072, allocations: 83.09 kB / 0.5078 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4072, allocations: 1.562 kB / 0.5078 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.4072, allocations: 35.31 kB / 0.5078 GB, free: 4.457 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.012e-06/0.4072, allocations: 0 / 0.5078 GB, free: 4.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004152/0.4076, allocations: 308.6 kB / 0.5081 GB, free: 4.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.4077, allocations: 94.22 kB / 0.5082 GB, free: 4.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.607e-05/0.4078, allocations: 136.8 kB / 0.5083 GB, free: 4.141 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.787e-06/0.4078, allocations: 26.59 kB / 0.5084 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.914e-05/0.4078, allocations: 89.48 kB / 0.5085 GB, free: 4.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.4079, allocations: 76.47 kB / 0.5085 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.4079, allocations: 29.66 kB / 0.5086 GB, free: 3.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.388e-05/0.408, allocations: 328 kB / 0.5089 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.735e-05/0.4081, allocations: 60.36 kB / 0.5089 GB, free: 3.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.979e-05/0.4081, allocations: 53.55 kB / 0.509 GB, free: 3.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.4084, allocations: 246.5 kB / 0.5092 GB, free: 3.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4084, allocations: 3.938 kB / 0.5092 GB, free: 3.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002457/0.4086, allocations: 227.1 kB / 0.5094 GB, free: 3.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.827e-05/0.4087, allocations: 67.7 kB / 0.5095 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.4087, allocations: 1.281 kB / 0.5095 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4087, allocations: 4.672 kB / 0.5095 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.744e-06/0.4087, allocations: 4 kB / 0.5095 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.4087, allocations: 5.125 kB / 0.5095 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.774e-05/0.4088, allocations: 13.39 kB / 0.5095 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.4088, allocations: 3.844 kB / 0.5095 GB, free: 3.332 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.0001304/0.4089, allocations: 195 kB / 0.5097 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.409, allocations: 17.09 kB / 0.5097 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.765e-05/0.409, allocations: 9.25 kB / 0.5097 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.409, allocations: 0.9844 kB / 0.5097 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.409, allocations: 4.797 kB / 0.5097 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.409, allocations: 1.188 kB / 0.5097 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.4091, allocations: 202 kB / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4091, allocations: 1.859 kB / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4091, allocations: 0 / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.4092, allocations: 0 / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.4092, allocations: 5.656 kB / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-06/0.4092, allocations: 0 / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4092, allocations: 1.594 kB / 0.5099 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005549/0.4097, allocations: 0.5103 MB / 0.5104 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.4098, allocations: 94.11 kB / 0.5105 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.4098, allocations: 7.312 kB / 0.5105 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.166e-05/0.4099, allocations: 4.734 kB / 0.5105 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.4099, allocations: 5.016 kB / 0.5105 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.4099, allocations: 4.531 kB / 0.5106 GB, free: 2.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.042e-05/0.41, allocations: 107.1 kB / 0.5107 GB, free: 2.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.41, allocations: 0 / 0.5107 GB, free: 2.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.4102, allocations: 46.09 kB / 0.5107 GB, free: 2.57 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.0008425/0.4111, allocations: 1.055 MB / 0.5117 GB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006562/0.4117, allocations: 0.7077 MB / 0.5124 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4118, allocations: 0 / 0.5124 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.4122, allocations: 0.5679 MB / 0.513 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.4125, allocations: 18.11 kB / 0.513 GB, free: 1.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.4151, allocations: 2.481 MB / 0.5154 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.4155, allocations: 0.7195 MB / 0.5161 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.871e-05/0.4155, allocations: 1.672 kB / 0.5161 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/0.4156, allocations: 28.06 kB / 0.5161 GB, free: 15.03 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4156, allocations: 3.938 kB / 0.5161 GB, free: 15.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.4381, allocations: 3.59 MB / 0.5197 GB, free: 14.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.588/8.026, allocations: 9.062 kB / 0.5197 GB, free: 14.51 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_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_matrixEqCirc2.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1)