Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",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.001759/0.001759, allocations: 107.8 kB / 17.06 MB, free: 6.016 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.002062/0.002062, allocations: 189.4 kB / 18 MB, free: 5.102 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.478/1.478, 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.189/0.189, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 59.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3891, allocations: 58.06 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003749/0.3929, allocations: 2.045 MB / 0.5056 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008632/0.3938, allocations: 0.525 MB / 0.5061 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.761e-05/0.3939, allocations: 1.562 kB / 0.5061 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002057/0.3941, allocations: 9.734 kB / 0.5061 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.488e-05/0.3942, allocations: 37.66 kB / 0.5062 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.3946, allocations: 53.7 kB / 0.5062 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.3947, allocations: 68.59 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.767e-05/0.3948, allocations: 2.797 kB / 0.5063 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.182e-05/0.3949, allocations: 30.11 kB / 0.5063 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.3949, allocations: 38.48 kB / 0.5064 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.046e-05/0.395, allocations: 1.094 kB / 0.5064 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.3951, allocations: 79.17 kB / 0.5064 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.948e-05/0.3952, allocations: 10.61 kB / 0.5064 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.824e-05/0.3952, allocations: 13.09 kB / 0.5065 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.3955, allocations: 95.55 kB / 0.5065 GB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3955, allocations: 1.094 kB / 0.5066 GB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3955, allocations: 0 / 0.5066 GB, free: 5.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3955, allocations: 3.938 kB / 0.5066 GB, free: 5.531 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004494/0.396, allocations: 396.5 kB / 0.5069 GB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.396, allocations: 18.25 kB / 0.5069 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.904e-05/0.3961, allocations: 37.62 kB / 0.507 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.3961, allocations: 3.219 kB / 0.507 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.3963, allocations: 177.4 kB / 0.5072 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3963, allocations: 1.375 kB / 0.5072 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.3963, allocations: 5.125 kB / 0.5072 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3964, allocations: 50.84 kB / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.3965, allocations: 1.031 kB / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.3965, allocations: 0.75 kB / 0.5072 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3965, allocations: 5.125 kB / 0.5072 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.165e-05/0.3965, allocations: 17.17 kB / 0.5072 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.3967, allocations: 165.3 kB / 0.5074 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.796e-05/0.3968, allocations: 51.53 kB / 0.5074 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.658e-05/0.3968, allocations: 33 kB / 0.5075 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.3968, allocations: 0 / 0.5075 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.641e-05/0.3968, allocations: 32.44 kB / 0.5075 GB, free: 4.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.173e-06/0.3968, allocations: 4 kB / 0.5075 GB, free: 4.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002601/0.3971, allocations: 139.8 kB / 0.5076 GB, free: 4.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.3972, allocations: 84.3 kB / 0.5077 GB, free: 4.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/0.3973, allocations: 115.4 kB / 0.5078 GB, free: 4.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.928e-06/0.3973, allocations: 26.67 kB / 0.5079 GB, free: 4.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.85e-05/0.3973, allocations: 86.97 kB / 0.5079 GB, free: 4.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.3973, allocations: 29.59 kB / 0.508 GB, free: 4.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.3974, allocations: 21.03 kB / 0.508 GB, free: 4.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.085e-05/0.3974, allocations: 323.5 kB / 0.5083 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.711e-05/0.3975, allocations: 17 kB / 0.5083 GB, free: 3.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.243e-05/0.3975, allocations: 22.3 kB / 0.5083 GB, free: 3.766 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.3977, allocations: 125.9 kB / 0.5085 GB, free: 3.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3977, allocations: 5.156 kB / 0.5085 GB, free: 3.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001332/0.3978, allocations: 128.8 kB / 0.5086 GB, free: 3.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.898e-05/0.3979, allocations: 44.53 kB / 0.5086 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3979, allocations: 1.031 kB / 0.5086 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3979, allocations: 0 / 0.5086 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.405e-06/0.3979, allocations: 5.953 kB / 0.5086 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.3979, allocations: 0 / 0.5086 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.495e-05/0.3979, allocations: 6.156 kB / 0.5086 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.398, allocations: 2.859 kB / 0.5086 GB, free: 3.555 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.084e-05/0.3981, allocations: 159.8 kB / 0.5088 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.3981, allocations: 8.734 kB / 0.5088 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.508e-05/0.3981, allocations: 6.078 kB / 0.5088 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.3981, allocations: 1.766 kB / 0.5088 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3981, allocations: 0 / 0.5088 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3981, allocations: 5.219 kB / 0.5088 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.464e-05/0.3982, allocations: 165.5 kB / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3982, allocations: 1.859 kB / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3982, allocations: 0 / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3982, allocations: 0 / 0.509 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.3982, allocations: 7.688 kB / 0.509 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3983, allocations: 0 / 0.509 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.3983, allocations: 5.297 kB / 0.509 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.3985, allocations: 215.5 kB / 0.5092 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.629e-05/0.3986, allocations: 86.81 kB / 0.5093 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.3986, allocations: 3.141 kB / 0.5093 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.585e-05/0.3986, allocations: 1.719 kB / 0.5093 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.3986, allocations: 1.969 kB / 0.5093 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.3986, allocations: 4.297 kB / 0.5093 GB, free: 2.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.177e-05/0.3987, allocations: 89.83 kB / 0.5094 GB, free: 2.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3987, allocations: 0 / 0.5094 GB, free: 2.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.3989, allocations: 27.94 kB / 0.5094 GB, free: 2.883 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.0004762/0.3994, allocations: 0.7718 MB / 0.5102 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002606/0.3997, allocations: 190.9 kB / 0.5103 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3997, allocations: 5.375 kB / 0.5103 GB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.3998, allocations: 146.7 kB / 0.5105 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.4001, allocations: 17 kB / 0.5105 GB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.4016, allocations: 1.549 MB / 0.512 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.4018, allocations: 0.6952 MB / 0.5127 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.628e-05/0.4018, allocations: 1.438 kB / 0.5127 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.071e-05/0.4018, allocations: 17.23 kB / 0.5127 GB, free: 76 kB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4018, allocations: 1.375 kB / 0.5127 GB, free: 76 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.4282, allocations: 2.176 MB / 0.5148 GB, free: 15.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.487, allocations: 12.81 kB / 0.5148 GB, free: 15.64 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_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_matrixEqCirc0.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1)