Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.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.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_InitialSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_InitialSteadyState",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.001122/0.001121, allocations: 109 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.001144/0.001144, allocations: 191 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.299/1.299, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1844/0.1844, allocations: 38.03 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 63.91 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2934, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.0049/0.2984, allocations: 4.431 MB / 0.5079 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.3005, allocations: 1.416 MB / 0.5093 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.3008, allocations: 12.81 kB / 0.5093 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009778/0.3018, allocations: 379.2 kB / 0.5097 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005963/0.3024, allocations: 259.3 kB / 0.5099 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006657/0.3031, allocations: 234 kB / 0.5101 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006191/0.3037, allocations: 0.5657 MB / 0.5107 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.3041, allocations: 287 kB / 0.511 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000363/0.3045, allocations: 264.8 kB / 0.5112 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004759/0.305, allocations: 352.2 kB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.724e-05/0.305, allocations: 39.81 kB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004569/0.3055, allocations: 224.8 kB / 0.5118 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.3058, allocations: 236.9 kB / 0.512 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002653/0.306, allocations: 261.9 kB / 0.5123 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008515/0.3069, allocations: 0.6721 MB / 0.5129 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3069, allocations: 5.109 kB / 0.5129 GB, free: 1.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3069, allocations: 1.312 kB / 0.5129 GB, free: 1.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.3069, allocations: 0 / 0.5129 GB, free: 1.816 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001352/0.3083, allocations: 0.7789 MB / 0.5137 GB, free: 1.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3083, allocations: 12.86 kB / 0.5137 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.711e-05/0.3085, allocations: 92.67 kB / 0.5138 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006307/0.3091, allocations: 90.36 kB / 0.5139 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007048/0.3098, allocations: 427.1 kB / 0.5143 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.3098, allocations: 29.19 kB / 0.5143 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.31, allocations: 53.08 kB / 0.5144 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009829/0.311, allocations: 0.6831 MB / 0.515 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.311, allocations: 1.094 kB / 0.515 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.3111, allocations: 15.84 kB / 0.5151 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001866/0.3113, allocations: 47.31 kB / 0.5151 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.3124, allocations: 0.6706 MB / 0.5158 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.3164, allocations: 2.439 MB / 0.5181 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/0.3171, allocations: 363.8 kB / 0.5185 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.3174, allocations: 255.6 kB / 0.5187 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.3175, allocations: 7.172 kB / 0.5187 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.3175, allocations: 40.94 kB / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.325e-06/0.3175, allocations: 0 / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.002843/0.3204, allocations: 1.479 MB / 0.5202 GB, free: 13.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.3205, allocations: 81.23 kB / 0.5203 GB, free: 13.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.3208, allocations: 286.1 kB / 0.5206 GB, free: 13.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.3208, allocations: 31.02 kB / 0.5206 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.321, allocations: 256 kB / 0.5209 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.3212, allocations: 168.7 kB / 0.521 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.3213, allocations: 91.47 kB / 0.5211 GB, free: 12.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3215, allocations: 352.9 kB / 0.5214 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.3219, allocations: 220.3 kB / 0.5216 GB, free: 12.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.3223, allocations: 366.8 kB / 0.522 GB, free: 12.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008413/0.3232, allocations: 0.6286 MB / 0.5226 GB, free: 11.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3232, allocations: 1.375 kB / 0.5226 GB, free: 11.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001365/0.3245, allocations: 0.72 MB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3246, allocations: 7.156 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009288/0.3255, allocations: 0.5264 MB / 0.5238 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.3259, allocations: 81.02 kB / 0.5239 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.3263, allocations: 105.5 kB / 0.524 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.328, allocations: 1.727 MB / 0.5257 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.3283, allocations: 30.98 kB / 0.5257 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-05/0.3284, allocations: 21.38 kB / 0.5257 GB, free: 9.871 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (54): * Single equations (assignments): 51 * Array equations: 2 * 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.0003051/0.3287, allocations: 218 kB / 0.526 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.3288, allocations: 44.42 kB / 0.526 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009557/0.3298, allocations: 0.5627 MB / 0.5265 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.3298, allocations: 11.94 kB / 0.5266 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3298, allocations: 1.375 kB / 0.5266 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3298, allocations: 1.359 kB / 0.5266 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.3319, allocations: 1.19 MB / 0.5277 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3319, allocations: 1.156 kB / 0.5277 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.3324, allocations: 84.97 kB / 0.5278 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3324, allocations: 2.844 kB / 0.5278 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.3324, allocations: 11.2 kB / 0.5278 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.3325, allocations: 6.469 kB / 0.5278 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3325, allocations: 2.047 kB / 0.5278 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.3337, allocations: 0.9328 MB / 0.5287 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3338, allocations: 112.7 kB / 0.5288 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.3339, allocations: 7.984 kB / 0.5289 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.3341, allocations: 23.16 kB / 0.5289 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.3342, allocations: 37 kB / 0.5289 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.3343, allocations: 21.23 kB / 0.5289 GB, free: 8.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.3345, allocations: 198.3 kB / 0.5291 GB, free: 8.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3345, allocations: 0 / 0.5291 GB, free: 8.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005788/0.3351, allocations: 120.6 kB / 0.5292 GB, free: 8.105 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (39): * Single equations (assignments): 36 * Array equations: 2 * 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.001634/0.3367, allocations: 1.513 MB / 0.5307 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.3379, allocations: 0.6675 MB / 0.5314 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3379, allocations: 1.438 kB / 0.5314 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.3383, allocations: 257.9 kB / 0.5316 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.3389, allocations: 74.16 kB / 0.5317 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006332/0.3452, allocations: 4.578 MB / 0.5362 GB, free: 3.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005235/0.3458, allocations: 0.8779 MB / 0.537 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003633/0.3462, allocations: 138.4 kB / 0.5371 GB, free: 2.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002442/0.3464, allocations: 146.7 kB / 0.5373 GB, free: 2.84 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3464, allocations: 0 / 0.5373 GB, free: 2.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.3777, allocations: 8.616 MB / 0.5457 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.675/10.05, allocations: 3.938 kB / 0.5457 GB, free: 12.68 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_InitialSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.InitialSteadyState.pipe 2>&1)