Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001279/0.001279, allocations: 112.6 kB / 17.06 MB, free: 5.992 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.001342/0.001342, allocations: 194.9 kB / 18 MB, free: 5.074 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.179/0.179, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 67.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3327, allocations: 58.06 MB / 0.5036 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.007836/0.3406, allocations: 4.576 MB / 0.5081 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002882/0.3435, allocations: 1.47 MB / 0.5095 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006114/0.3441, allocations: 12.22 kB / 0.5095 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.3457, allocations: 382.7 kB / 0.5099 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000764/0.3464, allocations: 241.2 kB / 0.5101 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007974/0.3472, allocations: 244.6 kB / 0.5104 GB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000733/0.348, allocations: 0.568 MB / 0.5109 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004714/0.3485, allocations: 330.4 kB / 0.5112 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003956/0.3489, allocations: 265.9 kB / 0.5115 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005105/0.3494, allocations: 312.1 kB / 0.5118 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.128e-05/0.3495, allocations: 33.88 kB / 0.5118 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.3498, allocations: 150.3 kB / 0.512 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.3501, allocations: 222.1 kB / 0.5122 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.3503, allocations: 253 kB / 0.5124 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007139/0.351, allocations: 0.5981 MB / 0.513 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.351, allocations: 0 / 0.513 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.351, allocations: 0 / 0.513 GB, free: 1.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.3511, allocations: 1.094 kB / 0.513 GB, free: 1.91 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001223/0.3523, allocations: 0.7852 MB / 0.5138 GB, free: 1.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3523, allocations: 13.39 kB / 0.5138 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.421e-05/0.3524, allocations: 86.41 kB / 0.5139 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005844/0.353, allocations: 96.91 kB / 0.5139 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/0.3537, allocations: 419.5 kB / 0.5143 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.3537, allocations: 29.31 kB / 0.5144 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3538, allocations: 59.41 kB / 0.5144 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008314/0.3547, allocations: 0.6452 MB / 0.5151 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.3547, allocations: 1.156 kB / 0.5151 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.439e-05/0.3548, allocations: 20.97 kB / 0.5151 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.3549, allocations: 36.8 kB / 0.5151 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006825/0.3556, allocations: 480.5 kB / 0.5156 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003933/0.3595, allocations: 3.025 MB / 0.5185 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.3598, allocations: 178 kB / 0.5187 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.36, allocations: 109.6 kB / 0.5188 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.3601, allocations: 4.453 kB / 0.5188 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.3601, allocations: 36.97 kB / 0.5188 GB, free: 13.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.3601, allocations: 4 kB / 0.5188 GB, free: 13.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.001397/0.3615, allocations: 0.8441 MB / 0.5197 GB, free: 13.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.3616, allocations: 85.14 kB / 0.5198 GB, free: 13.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.3619, allocations: 353 kB / 0.5201 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.362, allocations: 26.77 kB / 0.5201 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.3622, allocations: 311.8 kB / 0.5204 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.615e-05/0.3622, allocations: 79.59 kB / 0.5205 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3624, allocations: 89.02 kB / 0.5206 GB, free: 12.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3625, allocations: 342 kB / 0.5209 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.3627, allocations: 129.2 kB / 0.521 GB, free: 12.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.363, allocations: 324.9 kB / 0.5213 GB, free: 11.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/0.3636, allocations: 0.498 MB / 0.5218 GB, free: 11.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.3636, allocations: 6.188 kB / 0.5218 GB, free: 11.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009863/0.3646, allocations: 0.5719 MB / 0.5224 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3647, allocations: 8.031 kB / 0.5224 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005089/0.3652, allocations: 274.7 kB / 0.5227 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003244/0.3655, allocations: 79.41 kB / 0.5227 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.3658, allocations: 100.7 kB / 0.5228 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.3674, allocations: 1.728 MB / 0.5245 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.3677, allocations: 15.17 kB / 0.5245 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.3677, allocations: 23.28 kB / 0.5245 GB, free: 9.547 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.368, allocations: 219.2 kB / 0.5248 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.368, allocations: 30.94 kB / 0.5248 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/0.3685, allocations: 296.3 kB / 0.5251 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3685, allocations: 3.406 kB / 0.5251 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.3685, allocations: 1.375 kB / 0.5251 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3686, allocations: 1.406 kB / 0.5251 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.3698, allocations: 0.7878 MB / 0.5258 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3698, allocations: 1.062 kB / 0.5258 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002889/0.3701, allocations: 62.62 kB / 0.5259 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3701, allocations: 1.438 kB / 0.5259 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.3701, allocations: 9.109 kB / 0.5259 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3701, allocations: 2.062 kB / 0.5259 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3702, allocations: 5.938 kB / 0.5259 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.3708, allocations: 480.8 kB / 0.5264 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.611e-05/0.3709, allocations: 107.9 kB / 0.5265 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.3709, allocations: 17.12 kB / 0.5265 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.3711, allocations: 14.12 kB / 0.5265 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.472e-05/0.3711, allocations: 15.94 kB / 0.5265 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3711, allocations: 7.625 kB / 0.5265 GB, free: 8.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.3714, allocations: 235.1 kB / 0.5268 GB, free: 8.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3714, allocations: 0 / 0.5268 GB, free: 8.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.3719, allocations: 97.31 kB / 0.5269 GB, free: 8.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008235/0.3727, allocations: 1.006 MB / 0.5278 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007493/0.3735, allocations: 447.6 kB / 0.5283 GB, free: 7.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3735, allocations: 3.938 kB / 0.5283 GB, free: 7.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.3737, allocations: 109.4 kB / 0.5284 GB, free: 7.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.3741, allocations: 73.17 kB / 0.5284 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004796/0.379, allocations: 3.999 MB / 0.5323 GB, free: 4.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.3795, allocations: 0.8656 MB / 0.5332 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000294/0.3798, allocations: 114.5 kB / 0.5333 GB, free: 3.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.38, allocations: 145.9 kB / 0.5334 GB, free: 3.531 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.38, allocations: 0 / 0.5334 GB, free: 3.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03907/0.4191, allocations: 7.411 MB / 0.5407 GB, free: 356 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.863/10.28, allocations: 9.359 kB / 0.5407 GB, free: 348 kB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)