Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.001629/0.001629, allocations: 112.2 kB / 17.06 MB, free: 5.992 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.001833/0.001833, allocations: 196 kB / 18.01 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.467/1.467, 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.2012/0.2012, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 60.14 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3576, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.007491/0.3651, allocations: 7.55 MB / 0.511 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005482/0.3706, allocations: 4.159 MB / 0.5151 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005761/0.3712, allocations: 17.62 kB / 0.5151 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002932/0.3742, allocations: 1.028 MB / 0.5161 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003281/0.3775, allocations: 1.097 MB / 0.5172 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.3785, allocations: 305 kB / 0.5174 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002333/0.3809, allocations: 1.368 MB / 0.5188 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009981/0.3819, allocations: 463.3 kB / 0.5192 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.3833, allocations: 0.5652 MB / 0.5198 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.3844, allocations: 0.5762 MB / 0.5203 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.615e-05/0.3845, allocations: 35.72 kB / 0.5204 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002312/0.3868, allocations: 0.9937 MB / 0.5213 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004505/0.3873, allocations: 268.4 kB / 0.5216 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.3877, allocations: 248.7 kB / 0.5218 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.3894, allocations: 0.8153 MB / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3895, allocations: 1.25 kB / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3895, allocations: 0.6094 kB / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.3895, allocations: 0 / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001383/0.3909, allocations: 0.8235 MB / 0.5234 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3909, allocations: 16.11 kB / 0.5235 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.391, allocations: 84.12 kB / 0.5235 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.3927, allocations: 132.2 kB / 0.5237 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006252/0.3933, allocations: 340 kB / 0.524 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.3934, allocations: 28.48 kB / 0.524 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.3934, allocations: 50.42 kB / 0.5241 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009132/0.3944, allocations: 0.5765 MB / 0.5246 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.3944, allocations: 2.047 kB / 0.5246 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.3944, allocations: 20.98 kB / 0.5246 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.986e-05/0.3945, allocations: 37.92 kB / 0.5247 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005935/0.3951, allocations: 384.4 kB / 0.525 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.3979, allocations: 2.596 MB / 0.5276 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.3986, allocations: 425.8 kB / 0.528 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.3989, allocations: 203.8 kB / 0.5282 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.399, allocations: 11.39 kB / 0.5282 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.399, allocations: 41.97 kB / 0.5282 GB, free: 7.672 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.686e-06/0.399, allocations: 0 / 0.5282 GB, free: 7.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001942/0.401, allocations: 0.7663 MB / 0.529 GB, free: 7.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.747e-05/0.4011, allocations: 108.1 kB / 0.5291 GB, free: 7.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.4015, allocations: 329 kB / 0.5294 GB, free: 7.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.4015, allocations: 30.89 kB / 0.5294 GB, free: 7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.4018, allocations: 251.2 kB / 0.5297 GB, free: 6.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.4019, allocations: 120.3 kB / 0.5298 GB, free: 6.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.4021, allocations: 80.3 kB / 0.5299 GB, free: 6.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.4022, allocations: 355.6 kB / 0.5302 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.4025, allocations: 129.1 kB / 0.5303 GB, free: 6.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.4028, allocations: 277.6 kB / 0.5306 GB, free: 6.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005993/0.4034, allocations: 460.3 kB / 0.531 GB, free: 5.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4034, allocations: 1.531 kB / 0.531 GB, free: 5.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009025/0.4043, allocations: 0.5644 MB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4044, allocations: 10.03 kB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.4044, allocations: 3.562 kB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003705/0.4048, allocations: 119.9 kB / 0.5317 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.405, allocations: 74.73 kB / 0.5318 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002901/0.4079, allocations: 2.567 MB / 0.5343 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.4083, allocations: 44.94 kB / 0.5343 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.4083, allocations: 20.22 kB / 0.5343 GB, free: 3.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000358/0.4087, allocations: 194.5 kB / 0.5345 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.4088, allocations: 38.08 kB / 0.5346 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.4089, allocations: 58.58 kB / 0.5346 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.4089, allocations: 3.5 kB / 0.5346 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.2e-05/0.409, allocations: 8.344 kB / 0.5346 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.409, allocations: 3.078 kB / 0.5346 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.4107, allocations: 0.9502 MB / 0.5356 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.4107, allocations: 1.094 kB / 0.5356 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.4109, allocations: 35.42 kB / 0.5356 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003235/0.4112, allocations: 108.3 kB / 0.5357 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.4113, allocations: 6.5 kB / 0.5357 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003046/0.4143, allocations: 2.563 MB / 0.5382 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4144, allocations: 1.75 kB / 0.5382 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008763/0.4152, allocations: 0.6248 MB / 0.5388 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.4154, allocations: 121.7 kB / 0.5389 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.4154, allocations: 10.44 kB / 0.539 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.4156, allocations: 6.5 kB / 0.539 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.4157, allocations: 30.5 kB / 0.539 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.4157, allocations: 7.5 kB / 0.539 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.416, allocations: 224.3 kB / 0.5392 GB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.416, allocations: 1.094 kB / 0.5392 GB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007786/0.4168, allocations: 160 kB / 0.5394 GB, free: 15.44 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001197/0.418, allocations: 1.164 MB / 0.5405 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.419, allocations: 0.5253 MB / 0.541 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.419, allocations: 0 / 0.541 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.4195, allocations: 352.7 kB / 0.5413 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005933/0.4201, allocations: 61.41 kB / 0.5414 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005404/0.4255, allocations: 3.999 MB / 0.5453 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.4262, allocations: 0.887 MB / 0.5462 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.4265, allocations: 74.62 kB / 0.5462 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.4267, allocations: 110.5 kB / 0.5464 GB, free: 9.973 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4267, allocations: 0 / 0.5464 GB, free: 9.973 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.4642, allocations: 7.65 MB / 0.5538 GB, free: 4.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/10.84, allocations: 4 kB / 0.5538 GB, free: 4.066 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d_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_Generic_Network_NetworkLoop_d.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)