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.001408/0.001408, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.001552/0.001552, allocations: 200 kB / 18.01 MB, free: 4.941 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.03 MB / 329.9 MB, free: 8.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 67.89 kB / 457.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3034, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.007009/0.3105, allocations: 7.561 MB / 0.511 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.3154, allocations: 4.16 MB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004729/0.3159, allocations: 16.72 kB / 0.5151 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002597/0.3186, allocations: 1.022 MB / 0.5161 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.3212, allocations: 1.115 MB / 0.5172 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008615/0.3221, allocations: 301.6 kB / 0.5175 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.3239, allocations: 1.369 MB / 0.5188 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008334/0.3247, allocations: 460.3 kB / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.3258, allocations: 0.5737 MB / 0.5198 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008017/0.3266, allocations: 0.5759 MB / 0.5204 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-05/0.3267, allocations: 34.72 kB / 0.5204 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001974/0.3287, allocations: 0.9861 MB / 0.5214 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003562/0.3291, allocations: 274.7 kB / 0.5216 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003123/0.3294, allocations: 254.9 kB / 0.5219 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.3309, allocations: 0.8165 MB / 0.5227 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3309, allocations: 0 / 0.5227 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3309, allocations: 0 / 0.5227 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.3309, allocations: 1.156 kB / 0.5227 GB, free: 11.66 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.001173/0.3321, allocations: 0.8173 MB / 0.5235 GB, free: 11.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3321, allocations: 13.17 kB / 0.5235 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.3322, allocations: 83.75 kB / 0.5235 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.3339, allocations: 139.2 kB / 0.5237 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005967/0.3345, allocations: 338.6 kB / 0.524 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.3345, allocations: 34.02 kB / 0.524 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.3346, allocations: 35.42 kB / 0.5241 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008764/0.3355, allocations: 0.59 MB / 0.5246 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.3355, allocations: 1.375 kB / 0.5246 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.3355, allocations: 21.48 kB / 0.5247 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.177e-05/0.3356, allocations: 33.19 kB / 0.5247 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/0.3362, allocations: 388.6 kB / 0.5251 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.3387, allocations: 2.593 MB / 0.5276 GB, free: 7.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.3394, allocations: 430 kB / 0.528 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.3397, allocations: 203.8 kB / 0.5282 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.3397, allocations: 15.66 kB / 0.5282 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.3398, allocations: 41.88 kB / 0.5283 GB, free: 7.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.3398, allocations: 0 / 0.5283 GB, free: 7.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001843/0.3416, allocations: 0.7616 MB / 0.529 GB, free: 7.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/0.3417, allocations: 108.5 kB / 0.5291 GB, free: 7.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.3421, allocations: 324.3 kB / 0.5294 GB, free: 6.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.3421, allocations: 30.89 kB / 0.5294 GB, free: 6.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3423, allocations: 256.2 kB / 0.5297 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.3424, allocations: 120.2 kB / 0.5298 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3425, allocations: 84.05 kB / 0.5299 GB, free: 6.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3427, allocations: 352.2 kB / 0.5302 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.3429, allocations: 128.4 kB / 0.5303 GB, free: 6.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.3432, allocations: 278.5 kB / 0.5306 GB, free: 5.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.3438, allocations: 460.2 kB / 0.531 GB, free: 5.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3438, allocations: 2.719 kB / 0.5311 GB, free: 5.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008533/0.3446, allocations: 0.5539 MB / 0.5316 GB, free: 5.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3447, allocations: 8.719 kB / 0.5316 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.3447, allocations: 8.562 kB / 0.5316 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003271/0.345, allocations: 126.1 kB / 0.5317 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.3453, allocations: 69.8 kB / 0.5318 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.348, allocations: 2.575 MB / 0.5343 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/0.3484, allocations: 43.97 kB / 0.5344 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.3484, allocations: 15.44 kB / 0.5344 GB, free: 3.34 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.0002933/0.3487, allocations: 199.8 kB / 0.5346 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.3488, allocations: 38.56 kB / 0.5346 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.212e-05/0.3489, allocations: 46.16 kB / 0.5346 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3489, allocations: 4.688 kB / 0.5346 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.3489, allocations: 6.094 kB / 0.5346 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3489, allocations: 7.266 kB / 0.5347 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.3505, allocations: 0.9453 MB / 0.5356 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3505, allocations: 1.531 kB / 0.5356 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.3506, allocations: 39.08 kB / 0.5356 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002738/0.3509, allocations: 107.4 kB / 0.5357 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.351, allocations: 7.25 kB / 0.5357 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002499/0.3535, allocations: 2.566 MB / 0.5382 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3535, allocations: 1.094 kB / 0.5382 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.3543, allocations: 0.6336 MB / 0.5389 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.3544, allocations: 113.3 kB / 0.539 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.476e-05/0.3544, allocations: 15.52 kB / 0.539 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.3546, allocations: 6.281 kB / 0.539 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.3547, allocations: 26.97 kB / 0.539 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.3547, allocations: 6.625 kB / 0.539 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.3549, allocations: 228.5 kB / 0.5392 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.355, allocations: 192 / 0.5392 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007765/0.3557, allocations: 161.5 kB / 0.5394 GB, free: 15.43 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.000989/0.3567, allocations: 1.163 MB / 0.5405 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008253/0.3576, allocations: 0.5256 MB / 0.541 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3576, allocations: 0 / 0.541 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.358, allocations: 349.5 kB / 0.5414 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005532/0.3586, allocations: 60.59 kB / 0.5414 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004571/0.3632, allocations: 4.007 MB / 0.5453 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.3636, allocations: 0.879 MB / 0.5462 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.3638, allocations: 70.78 kB / 0.5463 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.364, allocations: 114.5 kB / 0.5464 GB, free: 9.957 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.364, allocations: 0 / 0.5464 GB, free: 9.957 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.3937, allocations: 7.655 MB / 0.5538 GB, free: 4.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.819/10.21, allocations: 8.062 kB / 0.5539 GB, free: 4.016 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)