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.001329/0.001329, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.00124/0.00124, allocations: 193.4 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1847/0.1847, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 71.89 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3641, allocations: 58.05 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Load): time 0.007547/0.3718, allocations: 4.487 MB / 0.508 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.3746, allocations: 1.525 MB / 0.5095 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003248/0.375, allocations: 16.78 kB / 0.5095 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009683/0.376, allocations: 277.1 kB / 0.5098 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006941/0.3767, allocations: 270.5 kB / 0.51 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008658/0.3775, allocations: 253.9 kB / 0.5103 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008263/0.3784, allocations: 0.643 MB / 0.5109 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004752/0.3789, allocations: 292 kB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.3792, allocations: 283.6 kB / 0.5114 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000594/0.3799, allocations: 386 kB / 0.5118 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.322e-05/0.3799, allocations: 41.38 kB / 0.5119 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.3803, allocations: 158.1 kB / 0.512 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002794/0.3806, allocations: 239.9 kB / 0.5122 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.3809, allocations: 277 kB / 0.5125 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009532/0.3818, allocations: 0.6636 MB / 0.5131 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3818, allocations: 1.188 kB / 0.5131 GB, free: 1.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3818, allocations: 0 / 0.5131 GB, free: 1.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.3819, allocations: 4 kB / 0.5131 GB, free: 1.707 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.001965/0.3838, allocations: 0.8878 MB / 0.514 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3839, allocations: 13.3 kB / 0.514 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.384, allocations: 87.12 kB / 0.5141 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.3846, allocations: 92.98 kB / 0.5142 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009612/0.3856, allocations: 0.4984 MB / 0.5147 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3856, allocations: 34.59 kB / 0.5147 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3858, allocations: 49.59 kB / 0.5148 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.3868, allocations: 0.6898 MB / 0.5154 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3868, allocations: 5.344 kB / 0.5154 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.3869, allocations: 22.23 kB / 0.5155 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.387, allocations: 36.44 kB / 0.5155 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009925/0.388, allocations: 0.5246 MB / 0.516 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004722/0.3927, allocations: 3.1 MB / 0.519 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006515/0.3934, allocations: 328.1 kB / 0.5194 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.3937, allocations: 179.3 kB / 0.5195 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/0.3938, allocations: 7.469 kB / 0.5195 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.3938, allocations: 40.72 kB / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.525e-06/0.3938, allocations: 0 / 0.5196 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002627/0.3965, allocations: 1.22 MB / 0.5208 GB, free: 12.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/0.3966, allocations: 86.16 kB / 0.5208 GB, free: 12.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006649/0.3972, allocations: 398.8 kB / 0.5212 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.3973, allocations: 31.64 kB / 0.5213 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.3976, allocations: 307.8 kB / 0.5216 GB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.3977, allocations: 120.8 kB / 0.5217 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.3979, allocations: 104.6 kB / 0.5218 GB, free: 12.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.3982, allocations: 355.4 kB / 0.5221 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.3986, allocations: 190.3 kB / 0.5223 GB, free: 11.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005462/0.3991, allocations: 390 kB / 0.5227 GB, free: 11.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008998/0.4, allocations: 0.5903 MB / 0.5232 GB, free: 10.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.4, allocations: 2.75 kB / 0.5232 GB, free: 10.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002088/0.4021, allocations: 0.8328 MB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.4022, allocations: 7.094 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.4022, allocations: 8.203 kB / 0.5241 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.4035, allocations: 271.5 kB / 0.5243 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006306/0.4041, allocations: 143.1 kB / 0.5245 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006112/0.4103, allocations: 4.045 MB / 0.5284 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.4109, allocations: 32.09 kB / 0.5284 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.411, allocations: 25.39 kB / 0.5285 GB, free: 7.328 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.0004087/0.4114, allocations: 222.9 kB / 0.5287 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-05/0.4115, allocations: 38.88 kB / 0.5287 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008764/0.4124, allocations: 487 kB / 0.5292 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.4124, allocations: 8.75 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4124, allocations: 2.25 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.4124, allocations: 2.016 kB / 0.5292 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.4141, allocations: 1.016 MB / 0.5302 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.4141, allocations: 5.062 kB / 0.5302 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/0.4146, allocations: 84.25 kB / 0.5303 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.4146, allocations: 1.281 kB / 0.5303 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.4147, allocations: 15.19 kB / 0.5303 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.4147, allocations: 6.672 kB / 0.5303 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4147, allocations: 5.25 kB / 0.5303 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.4158, allocations: 0.738 MB / 0.531 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.4159, allocations: 123.6 kB / 0.5311 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.501e-05/0.416, allocations: 10.98 kB / 0.5311 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.4162, allocations: 15.31 kB / 0.5312 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.4163, allocations: 31.05 kB / 0.5312 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4163, allocations: 13.83 kB / 0.5312 GB, free: 5.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003311/0.4167, allocations: 270 kB / 0.5315 GB, free: 5.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4167, allocations: 3.938 kB / 0.5315 GB, free: 5.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006082/0.4173, allocations: 117.9 kB / 0.5316 GB, free: 5.695 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.001506/0.4188, allocations: 1.3 MB / 0.5328 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.4206, allocations: 0.7983 MB / 0.5336 GB, free: 4.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4206, allocations: 0 / 0.5336 GB, free: 4.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.4209, allocations: 203.6 kB / 0.5338 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000639/0.4216, allocations: 92.09 kB / 0.5339 GB, free: 4.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009841/0.4314, allocations: 5.322 MB / 0.5391 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006421/0.4321, allocations: 0.8962 MB / 0.54 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003802/0.4325, allocations: 133.1 kB / 0.5401 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.4328, allocations: 170.3 kB / 0.5403 GB, free: 15.49 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4328, allocations: 0 / 0.5403 GB, free: 15.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.4748, allocations: 10.64 MB / 0.5507 GB, free: 7.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.32, allocations: 7.062 kB / 0.5507 GB, free: 7.234 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)