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.001522/0.001522, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001733/0.001733, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.389/1.389, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1791/0.1791, allocations: 38.02 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 65.02 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1013, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.008458/0.1098, allocations: 7.546 MB / 464.5 MB, free: 412 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005657/0.1155, allocations: 4.175 MB / 468.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005195/0.116, allocations: 12 kB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002572/0.1186, allocations: 1.027 MB / 469.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002524/0.1212, allocations: 1.09 MB / 470.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007834/0.122, allocations: 311.1 kB / 471.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001613/0.1236, allocations: 1.371 MB / 472.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008363/0.1245, allocations: 467.9 kB / 472.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000924/0.1254, allocations: 0.5523 MB / 473.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008584/0.1263, allocations: 0.5838 MB / 474.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.973e-05/0.1264, allocations: 36 kB / 474.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.1283, allocations: 0.9895 MB / 475.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000343/0.1287, allocations: 271.3 kB / 475.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003456/0.129, allocations: 246.8 kB / 475.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.1304, allocations: 0.8102 MB / 476.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1304, allocations: 0 / 476.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.879e-06/0.1304, allocations: 3.984 kB / 476.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1304, allocations: 0 / 476.4 MB, free: 4.445 MB / 350.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.0013/0.1317, allocations: 0.7922 MB / 477.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1318, allocations: 15.89 kB / 477.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.053e-05/0.1319, allocations: 78.7 kB / 477.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.1335, allocations: 132.3 kB / 477.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.1339, allocations: 330.3 kB / 477.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.134, allocations: 33.36 kB / 477.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.134, allocations: 36.36 kB / 477.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008061/0.1349, allocations: 0.5906 MB / 478.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.1349, allocations: 7.938 kB / 478.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.937e-05/0.1349, allocations: 16 kB / 478.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-05/0.135, allocations: 28.64 kB / 478.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005704/0.1356, allocations: 390.1 kB / 478.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.138, allocations: 2.607 MB / 481.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.1387, allocations: 433.9 kB / 481.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.139, allocations: 217.2 kB / 482.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.139, allocations: 4 kB / 482.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.1391, allocations: 38.55 kB / 482.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/0.1391, allocations: 4 kB / 482.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001704/0.1408, allocations: 0.7615 MB / 482.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.1409, allocations: 107.1 kB / 483 MB, free: 13.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.1412, allocations: 324.5 kB / 483.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.1412, allocations: 33.64 kB / 483.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1414, allocations: 247.9 kB / 483.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1415, allocations: 126.2 kB / 483.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1416, allocations: 74.14 kB / 483.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1418, allocations: 350.8 kB / 484.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.142, allocations: 120.8 kB / 484.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.1423, allocations: 279.5 kB / 484.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/0.1429, allocations: 460.1 kB / 485 MB, free: 11.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/0.1429, allocations: 4 kB / 485 MB, free: 11.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000845/0.1437, allocations: 0.5659 MB / 485.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1437, allocations: 8 kB / 485.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.1438, allocations: 4 kB / 485.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.1441, allocations: 129 kB / 485.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.1444, allocations: 71.84 kB / 485.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/0.1472, allocations: 2.558 MB / 488.3 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.1474, allocations: 43.53 kB / 488.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.1475, allocations: 16 kB / 488.4 MB, free: 7.777 MB / 366.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.0002368/0.1477, allocations: 206.5 kB / 488.6 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.514e-05/0.1478, allocations: 39.53 kB / 488.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.9e-05/0.1479, allocations: 47.95 kB / 488.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1479, allocations: 7.938 kB / 488.7 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/0.1479, allocations: 3.938 kB / 488.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.1479, allocations: 12.05 kB / 488.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.1492, allocations: 0.9383 MB / 489.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1493, allocations: 3.938 kB / 489.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.1494, allocations: 35.98 kB / 489.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002446/0.1497, allocations: 113 kB / 489.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.1497, allocations: 4 kB / 489.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002659/0.1524, allocations: 2.561 MB / 492.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1524, allocations: 3.938 kB / 492.3 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007603/0.1531, allocations: 0.6266 MB / 493 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.884e-05/0.1533, allocations: 112.7 kB / 493.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/0.1533, allocations: 15.94 kB / 493.1 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.1535, allocations: 8 kB / 493.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.1536, allocations: 19.97 kB / 493.1 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.1536, allocations: 12 kB / 493.1 MB, free: 2.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002091/0.1538, allocations: 219 kB / 493.3 MB, free: 2.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1538, allocations: 4 kB / 493.3 MB, free: 2.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006663/0.1545, allocations: 163.7 kB / 493.5 MB, free: 2.363 MB / 366.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.0009742/0.1555, allocations: 1.163 MB / 494.7 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009476/0.1564, allocations: 0.5498 MB / 495.2 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1564, allocations: 4 kB / 495.2 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000453/0.1569, allocations: 338.1 kB / 495.5 MB, free: 256 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006054/0.1575, allocations: 61.78 kB / 495.6 MB, free: 196 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005384/0.1629, allocations: 4.02 MB / 499.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.1635, allocations: 0.8746 MB / 0.4888 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.1637, allocations: 74.89 kB / 0.4888 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.1639, allocations: 111.4 kB / 0.489 GB, free: 10.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1639, allocations: 4 kB / 0.489 GB, free: 10.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.1926, allocations: 7.484 MB / 0.4963 GB, free: 3.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.191/9.384, allocations: 0 / 0.4963 GB, free: 3.453 MB / 382.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)