Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001127/0.001127, allocations: 108.3 kB / 17.06 MB, free: 5.957 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.00106/0.00106, allocations: 200 kB / 18.01 MB, free: 5.039 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 67.91 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3315, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer): time 0.005833/0.3374, allocations: 4.707 MB / 0.5082 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3395, allocations: 1.341 MB / 0.5095 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.3397, allocations: 17.28 kB / 0.5095 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.3408, allocations: 405.1 kB / 0.5099 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004905/0.3413, allocations: 240.3 kB / 0.5101 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.3418, allocations: 184 kB / 0.5103 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005597/0.3423, allocations: 0.5541 MB / 0.5109 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005123/0.3429, allocations: 341.5 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000402/0.3433, allocations: 257.7 kB / 0.5114 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.3438, allocations: 280.4 kB / 0.5117 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-05/0.3438, allocations: 31.44 kB / 0.5117 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002973/0.3442, allocations: 128.8 kB / 0.5119 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002267/0.3444, allocations: 182.8 kB / 0.512 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002407/0.3446, allocations: 225.5 kB / 0.5122 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006831/0.3453, allocations: 0.531 MB / 0.5128 GB, free: 1.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3453, allocations: 0 / 0.5128 GB, free: 1.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3453, allocations: 1.188 kB / 0.5128 GB, free: 1.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.3454, allocations: 0 / 0.5128 GB, free: 1.727 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001132/0.3465, allocations: 0.7269 MB / 0.5135 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.3466, allocations: 14.62 kB / 0.5135 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.31e-05/0.3467, allocations: 76.86 kB / 0.5136 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007797/0.3474, allocations: 93.08 kB / 0.5137 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006871/0.3481, allocations: 430.4 kB / 0.5141 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.3482, allocations: 22.5 kB / 0.5141 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.3483, allocations: 46.81 kB / 0.5141 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007733/0.3491, allocations: 485.6 kB / 0.5146 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.3491, allocations: 1.906 kB / 0.5146 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.3492, allocations: 12.5 kB / 0.5146 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.3493, allocations: 27.62 kB / 0.5146 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006043/0.3499, allocations: 344.2 kB / 0.515 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.3522, allocations: 1.623 MB / 0.5165 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.3526, allocations: 176.3 kB / 0.5167 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.3528, allocations: 111.8 kB / 0.5168 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.3528, allocations: 10.36 kB / 0.5168 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.3529, allocations: 36.16 kB / 0.5169 GB, free: 15.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.3529, allocations: 1.062 kB / 0.5169 GB, free: 15.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001479/0.3544, allocations: 0.7898 MB / 0.5176 GB, free: 14.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.3544, allocations: 84.61 kB / 0.5177 GB, free: 14.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.3548, allocations: 311.6 kB / 0.518 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.3548, allocations: 30.92 kB / 0.518 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.355, allocations: 253.9 kB / 0.5183 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.258e-05/0.3551, allocations: 79.58 kB / 0.5184 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3552, allocations: 59.38 kB / 0.5184 GB, free: 13.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3553, allocations: 342.6 kB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.3555, allocations: 102.9 kB / 0.5188 GB, free: 13.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.3557, allocations: 199.9 kB / 0.519 GB, free: 13.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.3561, allocations: 331.7 kB / 0.5193 GB, free: 13.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3561, allocations: 4.938 kB / 0.5194 GB, free: 13.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008179/0.357, allocations: 428.5 kB / 0.5198 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.357, allocations: 7.734 kB / 0.5198 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005156/0.3575, allocations: 265.2 kB / 0.52 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/0.3579, allocations: 84.81 kB / 0.5201 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.3581, allocations: 65.69 kB / 0.5202 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.3598, allocations: 1.709 MB / 0.5218 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.3601, allocations: 10.61 kB / 0.5218 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.3601, allocations: 12.25 kB / 0.5219 GB, free: 11.31 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (34): * Single equations (assignments): 33 * 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.0002528/0.3603, allocations: 196.6 kB / 0.522 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.014e-05/0.3604, allocations: 34.02 kB / 0.5221 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004714/0.3609, allocations: 261.8 kB / 0.5223 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3609, allocations: 3.234 kB / 0.5223 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.3609, allocations: 1.062 kB / 0.5223 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.3609, allocations: 9.562 kB / 0.5223 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.3622, allocations: 0.7551 MB / 0.5231 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3622, allocations: 1.891 kB / 0.5231 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.3625, allocations: 51.22 kB / 0.5231 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.3625, allocations: 6.688 kB / 0.5231 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.3625, allocations: 7.781 kB / 0.5231 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.3625, allocations: 2.078 kB / 0.5231 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3625, allocations: 1.375 kB / 0.5231 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005524/0.3631, allocations: 455.8 kB / 0.5236 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.209e-05/0.3632, allocations: 111.7 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.011e-05/0.3632, allocations: 9.016 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.3634, allocations: 7.781 kB / 0.5237 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.3635, allocations: 11.94 kB / 0.5237 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.3635, allocations: 18.02 kB / 0.5237 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.3637, allocations: 216.3 kB / 0.5239 GB, free: 9.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3637, allocations: 1.188 kB / 0.5239 GB, free: 9.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.3642, allocations: 84.75 kB / 0.524 GB, free: 9.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (23): * Single equations (assignments): 22 * 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.0007768/0.3649, allocations: 0.9971 MB / 0.525 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006232/0.3656, allocations: 370 kB / 0.5253 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3656, allocations: 0 / 0.5253 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.3658, allocations: 113 kB / 0.5255 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.3663, allocations: 66.88 kB / 0.5255 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004817/0.3711, allocations: 3.544 MB / 0.529 GB, free: 6.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004752/0.3716, allocations: 0.8476 MB / 0.5298 GB, free: 5.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.3718, allocations: 75.31 kB / 0.5299 GB, free: 5.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.372, allocations: 138.8 kB / 0.53 GB, free: 5.719 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.372, allocations: 1.406 kB / 0.53 GB, free: 5.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.4047, allocations: 7.196 MB / 0.537 GB, free: 3.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.641/10.05, allocations: 16.19 kB / 0.5371 GB, free: 3.008 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1)