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.001962/0.001962, allocations: 109.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.002173/0.002173, 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 2.254/2.254, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2634/0.2634, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002566/0.002567, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4969/0.4995, allocations: 58.05 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.007129/0.5067, allocations: 4.427 MB / 0.5079 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003345/0.5101, allocations: 1.411 MB / 0.5093 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.5104, allocations: 12.88 kB / 0.5093 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.512, allocations: 384.6 kB / 0.5097 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009283/0.513, allocations: 253.1 kB / 0.5099 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.514, allocations: 239.5 kB / 0.5101 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.5151, allocations: 0.5627 MB / 0.5107 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006807/0.5158, allocations: 284.8 kB / 0.511 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005712/0.5164, allocations: 266.1 kB / 0.5112 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008054/0.5172, allocations: 355.6 kB / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.5173, allocations: 39.31 kB / 0.5116 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007303/0.5181, allocations: 224.7 kB / 0.5118 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.5185, allocations: 234.2 kB / 0.512 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004244/0.5189, allocations: 265.4 kB / 0.5123 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.5203, allocations: 0.6679 MB / 0.5129 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.5203, allocations: 0 / 0.5129 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5203, allocations: 0 / 0.5129 GB, free: 1.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.5204, allocations: 1.406 kB / 0.5129 GB, free: 1.867 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.00207/0.5224, allocations: 0.7829 MB / 0.5137 GB, free: 1.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/0.5225, allocations: 17.58 kB / 0.5137 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/0.5227, allocations: 92.23 kB / 0.5138 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.5238, allocations: 90.91 kB / 0.5139 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.525, allocations: 426 kB / 0.5143 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.525, allocations: 29.77 kB / 0.5143 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.5253, allocations: 53.38 kB / 0.5144 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.5271, allocations: 0.6814 MB / 0.515 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.5272, allocations: 1.312 kB / 0.515 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.909e-05/0.5273, allocations: 16.59 kB / 0.5151 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003046/0.5276, allocations: 48.38 kB / 0.5151 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.5296, allocations: 0.6743 MB / 0.5158 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006747/0.5364, allocations: 2.436 MB / 0.5181 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009513/0.5374, allocations: 363.1 kB / 0.5185 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006124/0.538, allocations: 257.8 kB / 0.5187 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.025e-05/0.5381, allocations: 5.297 kB / 0.5187 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.5381, allocations: 42.06 kB / 0.5188 GB, free: 14.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 4.178e-06/0.5382, allocations: 0 / 0.5188 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.004131/0.5423, allocations: 1.48 MB / 0.5202 GB, free: 13.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.945e-05/0.5424, allocations: 81.33 kB / 0.5203 GB, free: 13.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005123/0.543, allocations: 286.3 kB / 0.5206 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.543, allocations: 30.83 kB / 0.5206 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.5433, allocations: 256.7 kB / 0.5209 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.5435, allocations: 168.6 kB / 0.521 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/0.5438, allocations: 90.88 kB / 0.5211 GB, free: 12.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.544, allocations: 353.5 kB / 0.5214 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/0.5446, allocations: 216.6 kB / 0.5216 GB, free: 12.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007508/0.5454, allocations: 367 kB / 0.522 GB, free: 12.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.5468, allocations: 0.6283 MB / 0.5226 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5469, allocations: 1.438 kB / 0.5226 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002358/0.5492, allocations: 0.7192 MB / 0.5233 GB, free: 11.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.5493, allocations: 8.359 kB / 0.5233 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00165/0.551, allocations: 0.5253 MB / 0.5238 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.5515, allocations: 82 kB / 0.5239 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.5523, allocations: 105.5 kB / 0.524 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.555, allocations: 1.728 MB / 0.5257 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005688/0.5556, allocations: 29.88 kB / 0.5257 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.5557, allocations: 18.16 kB / 0.5257 GB, free: 9.918 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.0005077/0.5562, allocations: 218 kB / 0.526 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.5564, allocations: 45.92 kB / 0.526 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.5581, allocations: 0.5566 MB / 0.5265 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.333e-05/0.5581, allocations: 13.08 kB / 0.5266 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5582, allocations: 3.938 kB / 0.5266 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5582, allocations: 3.141 kB / 0.5266 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003504/0.5617, allocations: 1.192 MB / 0.5277 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.5617, allocations: 4 kB / 0.5277 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.5625, allocations: 84.33 kB / 0.5278 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.201e-05/0.5625, allocations: 2.891 kB / 0.5278 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-05/0.5626, allocations: 9.938 kB / 0.5278 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.5626, allocations: 2.312 kB / 0.5278 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.5626, allocations: 6.625 kB / 0.5278 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/0.5649, allocations: 0.9321 MB / 0.5287 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.5651, allocations: 113.3 kB / 0.5288 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.5652, allocations: 9.234 kB / 0.5289 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/0.5657, allocations: 18.56 kB / 0.5289 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.5658, allocations: 37.09 kB / 0.5289 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.877e-05/0.5659, allocations: 17.55 kB / 0.5289 GB, free: 8.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003668/0.5663, allocations: 198.9 kB / 0.5291 GB, free: 8.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5663, allocations: 0 / 0.5291 GB, free: 8.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001054/0.5673, allocations: 119.5 kB / 0.5292 GB, free: 8.152 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.002773/0.5701, allocations: 1.513 MB / 0.5307 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.572, allocations: 0.6691 MB / 0.5314 GB, free: 6.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.572, allocations: 0 / 0.5314 GB, free: 6.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000657/0.5727, allocations: 261.9 kB / 0.5316 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000939/0.5737, allocations: 75.59 kB / 0.5317 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.5846, allocations: 4.582 MB / 0.5362 GB, free: 3.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007819/0.5854, allocations: 0.8776 MB / 0.537 GB, free: 3.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006374/0.586, allocations: 133.3 kB / 0.5371 GB, free: 3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003901/0.5865, allocations: 148.1 kB / 0.5373 GB, free: 2.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5865, allocations: 0 / 0.5373 GB, free: 2.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05628/0.6428, allocations: 8.622 MB / 0.5457 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.39/17.04, allocations: 2.406 kB / 0.5457 GB, free: 12.62 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)