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.001313/0.001313, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001245/0.001245, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.184/0.184, allocations: 38.04 MB / 329.9 MB, free: 8.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3042, allocations: 58.05 MB / 0.5036 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.005465/0.3097, allocations: 4.427 MB / 0.5079 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.3119, allocations: 1.422 MB / 0.5093 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.3121, allocations: 13.12 kB / 0.5093 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009593/0.3131, allocations: 376.3 kB / 0.5097 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.3137, allocations: 256.6 kB / 0.5099 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006923/0.3144, allocations: 235.4 kB / 0.5101 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006716/0.3151, allocations: 0.5606 MB / 0.5107 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000449/0.3155, allocations: 281.8 kB / 0.511 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004182/0.3159, allocations: 261.4 kB / 0.5112 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005465/0.3165, allocations: 359.4 kB / 0.5116 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.52e-05/0.3166, allocations: 39.31 kB / 0.5116 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005009/0.3171, allocations: 221.5 kB / 0.5118 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002692/0.3174, allocations: 241.8 kB / 0.512 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002494/0.3176, allocations: 253.4 kB / 0.5123 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009332/0.3186, allocations: 0.6712 MB / 0.5129 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3186, allocations: 4.516 kB / 0.5129 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3186, allocations: 5.156 kB / 0.5129 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.3186, allocations: 0 / 0.5129 GB, free: 1.68 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.001362/0.32, allocations: 0.7874 MB / 0.5137 GB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.32, allocations: 13.02 kB / 0.5137 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.528e-05/0.3201, allocations: 84.41 kB / 0.5138 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006263/0.3208, allocations: 91.03 kB / 0.5139 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/0.3214, allocations: 434.6 kB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.3215, allocations: 33.27 kB / 0.5143 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.3216, allocations: 48.88 kB / 0.5144 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3227, allocations: 0.6784 MB / 0.515 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.3227, allocations: 0.5625 kB / 0.515 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.3228, allocations: 16.38 kB / 0.5151 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/0.323, allocations: 53.56 kB / 0.5151 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3242, allocations: 0.6697 MB / 0.5158 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00444/0.3286, allocations: 2.435 MB / 0.5181 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006716/0.3294, allocations: 365 kB / 0.5185 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003583/0.3297, allocations: 250.5 kB / 0.5187 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.98e-05/0.3298, allocations: 13.2 kB / 0.5187 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.3298, allocations: 42.94 kB / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.026e-06/0.3299, allocations: 1.312 kB / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.00275/0.3326, allocations: 1.475 MB / 0.5202 GB, free: 13.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.3327, allocations: 82.5 kB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.3331, allocations: 285.9 kB / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.3332, allocations: 30.86 kB / 0.5206 GB, free: 13.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.3334, allocations: 256.3 kB / 0.5209 GB, free: 12.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3336, allocations: 166.5 kB / 0.521 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/0.3338, allocations: 99.69 kB / 0.5211 GB, free: 12.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.334, allocations: 349.4 kB / 0.5214 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.3343, allocations: 214.7 kB / 0.5216 GB, free: 12.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.3348, allocations: 361.9 kB / 0.522 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009401/0.3358, allocations: 0.6341 MB / 0.5226 GB, free: 11.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3358, allocations: 1.375 kB / 0.5226 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001484/0.3373, allocations: 0.723 MB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3373, allocations: 7.688 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00101/0.3383, allocations: 0.5177 MB / 0.5238 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003781/0.3387, allocations: 77.28 kB / 0.5239 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.3392, allocations: 113.7 kB / 0.524 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.3413, allocations: 1.72 MB / 0.5257 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004125/0.3417, allocations: 35.12 kB / 0.5257 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/0.3418, allocations: 20.84 kB / 0.5257 GB, free: 9.734 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.000415/0.3422, allocations: 214.4 kB / 0.5259 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.3424, allocations: 41.86 kB / 0.526 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.3434, allocations: 0.5681 MB / 0.5265 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.982e-05/0.3435, allocations: 20.91 kB / 0.5266 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3435, allocations: 1.344 kB / 0.5266 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3435, allocations: 1.781 kB / 0.5266 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.3459, allocations: 1.187 MB / 0.5277 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.3459, allocations: 1.25 kB / 0.5277 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/0.3464, allocations: 88.98 kB / 0.5278 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/0.3464, allocations: 7.391 kB / 0.5278 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.191e-05/0.3465, allocations: 9.766 kB / 0.5278 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.3465, allocations: 7.031 kB / 0.5278 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3465, allocations: 1.922 kB / 0.5278 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.3481, allocations: 0.9249 MB / 0.5287 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.3483, allocations: 113.3 kB / 0.5288 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.3484, allocations: 8.281 kB / 0.5289 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.3487, allocations: 18.92 kB / 0.5289 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.32e-05/0.3488, allocations: 36.52 kB / 0.5289 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.3488, allocations: 10.16 kB / 0.5289 GB, free: 8.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003361/0.3492, allocations: 197.5 kB / 0.5291 GB, free: 7.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3492, allocations: 1.438 kB / 0.5291 GB, free: 7.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007436/0.3499, allocations: 128.6 kB / 0.5292 GB, free: 7.969 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.00196/0.3519, allocations: 1.512 MB / 0.5307 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3531, allocations: 0.6613 MB / 0.5314 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.3532, allocations: 0 / 0.5314 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004135/0.3536, allocations: 270.5 kB / 0.5316 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.3542, allocations: 66.3 kB / 0.5317 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006911/0.3611, allocations: 4.595 MB / 0.5362 GB, free: 3.703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.3618, allocations: 0.8785 MB / 0.537 GB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003881/0.3622, allocations: 129.1 kB / 0.5371 GB, free: 2.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.3624, allocations: 143.2 kB / 0.5373 GB, free: 2.746 MB / 398.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3625, allocations: 0 / 0.5373 GB, free: 2.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3999, allocations: 8.621 MB / 0.5457 GB, free: 12.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.14, allocations: 12 kB / 0.5457 GB, free: 12.52 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)