Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",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.001562/0.001562, allocations: 107.8 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.001804/0.001804, 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1878/0.1878, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 63.89 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4148, allocations: 58.06 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004908/0.4197, allocations: 4.41 MB / 0.5079 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.4218, allocations: 1.505 MB / 0.5094 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.4221, allocations: 20.19 kB / 0.5094 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007779/0.4228, allocations: 285.4 kB / 0.5097 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005626/0.4234, allocations: 288.9 kB / 0.51 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.4241, allocations: 248.1 kB / 0.5102 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005965/0.4247, allocations: 0.6085 MB / 0.5108 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.425, allocations: 226.6 kB / 0.511 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.4254, allocations: 270.3 kB / 0.5113 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004882/0.4259, allocations: 366 kB / 0.5116 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.088e-05/0.426, allocations: 38.84 kB / 0.5116 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000417/0.4264, allocations: 232.3 kB / 0.5119 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.4266, allocations: 227.3 kB / 0.5121 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.4269, allocations: 254.7 kB / 0.5123 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007792/0.4277, allocations: 0.6748 MB / 0.513 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4277, allocations: 0 / 0.513 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4277, allocations: 0 / 0.513 GB, free: 1.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.4277, allocations: 1.219 kB / 0.513 GB, free: 1.824 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001294/0.429, allocations: 0.7835 MB / 0.5138 GB, free: 1.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.429, allocations: 14.56 kB / 0.5138 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.613e-05/0.4291, allocations: 91.64 kB / 0.5139 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006206/0.4298, allocations: 91 kB / 0.5139 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006378/0.4304, allocations: 431.2 kB / 0.5144 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.4304, allocations: 26.69 kB / 0.5144 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.4306, allocations: 52.66 kB / 0.5144 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009822/0.4316, allocations: 0.6964 MB / 0.5151 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.4316, allocations: 0 / 0.5151 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.4317, allocations: 16.78 kB / 0.5151 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002267/0.4319, allocations: 69.42 kB / 0.5152 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.433, allocations: 0.6713 MB / 0.5158 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00376/0.4367, allocations: 2.653 MB / 0.5184 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006184/0.4374, allocations: 310.2 kB / 0.5187 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003321/0.4377, allocations: 212.4 kB / 0.5189 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.4378, allocations: 8.391 kB / 0.5189 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.4378, allocations: 33.44 kB / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.114e-06/0.4378, allocations: 0 / 0.519 GB, free: 14.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002031/0.4399, allocations: 1.312 MB / 0.5203 GB, free: 13.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.4399, allocations: 85.48 kB / 0.5203 GB, free: 13.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.4402, allocations: 288.7 kB / 0.5206 GB, free: 13.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.4402, allocations: 30.98 kB / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.4404, allocations: 257.8 kB / 0.5209 GB, free: 12.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.4405, allocations: 149.3 kB / 0.521 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.4407, allocations: 81.89 kB / 0.5211 GB, free: 12.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4408, allocations: 351.9 kB / 0.5214 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.4411, allocations: 187 kB / 0.5216 GB, free: 12.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.4414, allocations: 330.1 kB / 0.5219 GB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006521/0.4421, allocations: 0.5645 MB / 0.5225 GB, free: 11.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4421, allocations: 1.375 kB / 0.5225 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001186/0.4433, allocations: 0.683 MB / 0.5232 GB, free: 11.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4433, allocations: 6.812 kB / 0.5232 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008456/0.4442, allocations: 493 kB / 0.5236 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004438/0.4446, allocations: 117.5 kB / 0.5237 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.445, allocations: 82.02 kB / 0.5238 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.4478, allocations: 3.264 MB / 0.527 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.4482, allocations: 24.66 kB / 0.527 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.4482, allocations: 19.7 kB / 0.5271 GB, free: 8.355 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.4485, allocations: 213.2 kB / 0.5273 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4487, allocations: 40.31 kB / 0.5273 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008324/0.4495, allocations: 461.5 kB / 0.5277 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/0.4495, allocations: 15.27 kB / 0.5278 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.4496, allocations: 6.203 kB / 0.5278 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4496, allocations: 1.219 kB / 0.5278 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.4513, allocations: 1.018 MB / 0.5288 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.4513, allocations: 1.031 kB / 0.5288 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.4517, allocations: 71.31 kB / 0.5288 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.4517, allocations: 5.562 kB / 0.5288 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.4517, allocations: 8.562 kB / 0.5288 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.4518, allocations: 2.844 kB / 0.5288 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4518, allocations: 1.438 kB / 0.5288 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.4529, allocations: 0.7516 MB / 0.5296 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.4531, allocations: 142.4 kB / 0.5297 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.4531, allocations: 7.406 kB / 0.5297 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.4533, allocations: 18.61 kB / 0.5297 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.4534, allocations: 15.19 kB / 0.5298 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.4534, allocations: 15.95 kB / 0.5298 GB, free: 6.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.4536, allocations: 208.1 kB / 0.53 GB, free: 6.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4536, allocations: 0 / 0.53 GB, free: 6.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005681/0.4542, allocations: 119 kB / 0.5301 GB, free: 6.762 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 (30): * Single equations (assignments): 27 * 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.001326/0.4555, allocations: 1.322 MB / 0.5314 GB, free: 5.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.4567, allocations: 0.7118 MB / 0.5321 GB, free: 5.473 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.4567, allocations: 1.094 kB / 0.5321 GB, free: 5.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.4571, allocations: 208 kB / 0.5323 GB, free: 5.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.4576, allocations: 66.59 kB / 0.5323 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00701/0.4647, allocations: 4.406 MB / 0.5366 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.4652, allocations: 0.8717 MB / 0.5375 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003292/0.4655, allocations: 113.3 kB / 0.5376 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.4658, allocations: 148 kB / 0.5377 GB, free: 1.637 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4658, allocations: 0 / 0.5377 GB, free: 1.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04362/0.5094, allocations: 8.174 MB / 0.5457 GB, free: 12.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.915/10.42, allocations: 10.47 kB / 0.5457 GB, free: 12.43 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)