Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.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.Load,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Load",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Load,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Load",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.001259/0.001259, allocations: 110.9 kB / 17.06 MB, free: 5.984 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.001182/0.001182, allocations: 196 kB / 18 MB, free: 5.074 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.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1745/0.1745, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.374, allocations: 58.06 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.006084/0.3801, allocations: 4.488 MB / 0.508 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.3824, allocations: 1.527 MB / 0.5095 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.3827, allocations: 11.88 kB / 0.5095 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009046/0.3836, allocations: 282.4 kB / 0.5098 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006678/0.3843, allocations: 271.6 kB / 0.51 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007329/0.385, allocations: 258.1 kB / 0.5103 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006951/0.3857, allocations: 0.6354 MB / 0.5109 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000448/0.3862, allocations: 291.6 kB / 0.5112 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003825/0.3866, allocations: 292.4 kB / 0.5115 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006193/0.3872, allocations: 391.7 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.823e-05/0.3873, allocations: 42.19 kB / 0.5119 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.3876, allocations: 145.6 kB / 0.512 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.3879, allocations: 244.3 kB / 0.5122 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002847/0.3882, allocations: 275.6 kB / 0.5125 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000848/0.3891, allocations: 0.6637 MB / 0.5132 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3891, allocations: 0 / 0.5132 GB, free: 1.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3891, allocations: 1.562 kB / 0.5132 GB, free: 1.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3891, allocations: 0 / 0.5132 GB, free: 1.645 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001841/0.391, allocations: 0.8885 MB / 0.514 GB, free: 1.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.391, allocations: 18.61 kB / 0.514 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.903e-05/0.3911, allocations: 85.91 kB / 0.5141 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005833/0.3917, allocations: 97.14 kB / 0.5142 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.3928, allocations: 0.4999 MB / 0.5147 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.3928, allocations: 29.72 kB / 0.5147 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.3929, allocations: 53.03 kB / 0.5148 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009916/0.3939, allocations: 0.6883 MB / 0.5155 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.394, allocations: 5.062 kB / 0.5155 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.394, allocations: 22.81 kB / 0.5155 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.3942, allocations: 36.27 kB / 0.5155 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009906/0.3952, allocations: 0.524 MB / 0.516 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.3994, allocations: 3.105 MB / 0.5191 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.4001, allocations: 323 kB / 0.5194 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.4004, allocations: 177.8 kB / 0.5195 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.4004, allocations: 5.219 kB / 0.5195 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.4005, allocations: 50.03 kB / 0.5196 GB, free: 13.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.4005, allocations: 0 / 0.5196 GB, free: 13.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002154/0.4026, allocations: 1.212 MB / 0.5208 GB, free: 12.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.4027, allocations: 88.11 kB / 0.5209 GB, free: 12.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.4032, allocations: 396.7 kB / 0.5212 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.4032, allocations: 36.58 kB / 0.5213 GB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.4035, allocations: 310.5 kB / 0.5216 GB, free: 12.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.4036, allocations: 126 kB / 0.5217 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.4038, allocations: 103.4 kB / 0.5218 GB, free: 11.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.404, allocations: 354.7 kB / 0.5221 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.4043, allocations: 192.4 kB / 0.5223 GB, free: 11.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.4048, allocations: 385.5 kB / 0.5227 GB, free: 11.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008134/0.4056, allocations: 0.5905 MB / 0.5232 GB, free: 10.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4056, allocations: 1.312 kB / 0.5232 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001921/0.4075, allocations: 0.8333 MB / 0.5241 GB, free: 10.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4076, allocations: 9.047 kB / 0.5241 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4076, allocations: 6.875 kB / 0.5241 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.4089, allocations: 268.1 kB / 0.5243 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/0.4095, allocations: 138.1 kB / 0.5245 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005151/0.4147, allocations: 4.051 MB / 0.5284 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.4152, allocations: 31.72 kB / 0.5285 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.4153, allocations: 25.11 kB / 0.5285 GB, free: 7.254 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * 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): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.4156, allocations: 223.3 kB / 0.5287 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.4157, allocations: 38.7 kB / 0.5287 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000861/0.4166, allocations: 486.6 kB / 0.5292 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4166, allocations: 8.906 kB / 0.5292 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.4166, allocations: 1.25 kB / 0.5292 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.4166, allocations: 2.781 kB / 0.5292 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.4182, allocations: 1.019 MB / 0.5302 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4182, allocations: 4.547 kB / 0.5302 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.4187, allocations: 85.86 kB / 0.5303 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4187, allocations: 2.156 kB / 0.5303 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.4187, allocations: 11.27 kB / 0.5303 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.4187, allocations: 3.016 kB / 0.5303 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4187, allocations: 5.031 kB / 0.5303 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.4198, allocations: 0.7444 MB / 0.531 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.4199, allocations: 126.1 kB / 0.5312 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/0.42, allocations: 8.797 kB / 0.5312 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002666/0.4202, allocations: 15.97 kB / 0.5312 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.4203, allocations: 27.02 kB / 0.5312 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.4203, allocations: 10.23 kB / 0.5312 GB, free: 5.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003085/0.4206, allocations: 269 kB / 0.5315 GB, free: 5.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4207, allocations: 0 / 0.5315 GB, free: 5.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005957/0.4213, allocations: 122.3 kB / 0.5316 GB, free: 5.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (load.psi[1],load.psi[2],load.psi[3],load.Z[1],load.Z[2]) * 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 (38): * Single equations (assignments): 37 * 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.001357/0.4226, allocations: 1.305 MB / 0.5329 GB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.4243, allocations: 0.7939 MB / 0.5336 GB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4243, allocations: 4 kB / 0.5336 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.4246, allocations: 199.2 kB / 0.5338 GB, free: 4.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005935/0.4252, allocations: 88.61 kB / 0.5339 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009115/0.4343, allocations: 5.33 MB / 0.5391 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.4349, allocations: 0.8999 MB / 0.54 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003851/0.4353, allocations: 129.9 kB / 0.5401 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.4355, allocations: 169 kB / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4355, allocations: 1.062 kB / 0.5403 GB, free: 15.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.4732, allocations: 10.63 MB / 0.5507 GB, free: 7.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.49, allocations: 10.2 kB / 0.5507 GB, free: 7.227 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load_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_Load.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Load.pipe 2>&1)