Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.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.NetworkOpened,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkOpened",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkOpened,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkOpened",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.001208/0.001208, allocations: 106.4 kB / 16.92 MB, free: 6.145 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.001164/0.001164, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.25/0.25, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 61.39 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0839/0.08526, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkOpened): time 0.009026/0.09432, allocations: 7.678 MB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006025/0.1004, allocations: 4.728 MB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000519/0.1009, allocations: 19.94 kB / 469.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00265/0.1036, allocations: 1.089 MB / 470.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002853/0.1065, allocations: 1.257 MB / 471.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.1075, allocations: 367 kB / 472.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.1092, allocations: 1.469 MB / 473.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008768/0.1101, allocations: 0.6655 MB / 474.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008063/0.111, allocations: 0.638 MB / 474.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008239/0.1118, allocations: 0.7047 MB / 475.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.525e-05/0.1119, allocations: 68 kB / 475.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002502/0.1144, allocations: 1.438 MB / 477.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004211/0.1148, allocations: 486.8 kB / 477.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.1153, allocations: 461.9 kB / 478 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001801/0.1171, allocations: 1.523 MB / 479.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1171, allocations: 0 / 479.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1171, allocations: 0 / 479.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.1171, allocations: 0 / 479.5 MB, free: 1.312 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00166/0.1188, allocations: 1.171 MB / 480.7 MB, free: 96 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1189, allocations: 11.89 kB / 480.7 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001576/0.119, allocations: 135.4 kB / 480.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003314/0.1223, allocations: 407.4 kB / 481.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007118/0.1231, allocations: 0.4913 MB / 481.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.06e-05/0.1231, allocations: 54.36 kB / 481.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.1233, allocations: 76.36 kB / 481.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.125, allocations: 1.234 MB / 483.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.125, allocations: 4 kB / 483.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-05/0.1251, allocations: 31.98 kB / 483.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.675e-05/0.1252, allocations: 73.95 kB / 483.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001921/0.1272, allocations: 1.312 MB / 484.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005331/0.1325, allocations: 3.708 MB / 488.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.1342, allocations: 1.089 MB / 489.3 MB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007999/0.1351, allocations: 0.6371 MB / 489.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.148e-05/0.1351, allocations: 25.12 kB / 490 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.1352, allocations: 39.56 kB / 490 MB, free: 6.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.757e-06/0.1352, allocations: 0 / 490 MB, free: 6.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.00648/0.1417, allocations: 3.141 MB / 493.1 MB, free: 3.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.1417, allocations: 90.11 kB / 493.2 MB, free: 3.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000384/0.1421, allocations: 385.5 kB / 493.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.278e-05/0.1422, allocations: 41.7 kB / 493.7 MB, free: 2.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.1424, allocations: 328 kB / 494 MB, free: 2.527 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.1426, allocations: 315.3 kB / 494.3 MB, free: 2.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.1428, allocations: 158.6 kB / 494.4 MB, free: 2.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.143, allocations: 370.8 kB / 494.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000643/0.1436, allocations: 465.7 kB / 495.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007193/0.1444, allocations: 0.5743 MB / 495.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.1459, allocations: 1.114 MB / 496.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1459, allocations: 0 / 496.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002402/0.1483, allocations: 1.489 MB / 498.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1483, allocations: 8 kB / 498.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1483, allocations: 3.938 kB / 498.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009213/0.1493, allocations: 342.4 kB / 498.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.15, allocations: 183.7 kB / 499 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/0.1553, allocations: 4.167 MB / 0.4913 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.1558, allocations: 47.94 kB / 0.4914 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-05/0.1559, allocations: 43.92 kB / 0.4914 GB, free: 9.027 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (82): * Single equations (assignments): 81 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004073/0.1563, allocations: 303.8 kB / 0.4917 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.1564, allocations: 63.33 kB / 0.4918 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002672/0.1591, allocations: 1.551 MB / 0.4933 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.1591, allocations: 12 kB / 0.4933 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.1592, allocations: 4 kB / 0.4933 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.1592, allocations: 3.984 kB / 0.4933 GB, free: 7.074 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005044/0.1642, allocations: 3.013 MB / 0.4962 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.1643, allocations: 4 kB / 0.4962 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006193/0.1649, allocations: 167.7 kB / 0.4964 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007933/0.1657, allocations: 289.9 kB / 0.4967 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.118e-05/0.1658, allocations: 27.98 kB / 0.4967 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1799/0.3456, allocations: 3.889 MB / 0.5005 GB, free: 54.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.3457, allocations: 3.375 kB / 0.5005 GB, free: 54.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.3482, allocations: 1.58 MB / 0.5021 GB, free: 54.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.3484, allocations: 145.1 kB / 0.5022 GB, free: 54.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.87e-05/0.3485, allocations: 22.88 kB / 0.5022 GB, free: 54.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.3489, allocations: 44.73 kB / 0.5023 GB, free: 54.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3491, allocations: 81.44 kB / 0.5023 GB, free: 54.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.05e-05/0.3492, allocations: 36.31 kB / 0.5024 GB, free: 54.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00029/0.3495, allocations: 265.3 kB / 0.5026 GB, free: 54.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3495, allocations: 3.625 kB / 0.5026 GB, free: 54.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001013/0.3505, allocations: 312.6 kB / 0.5029 GB, free: 54.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * 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 {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00265/0.3532, allocations: 2.137 MB / 0.505 GB, free: 53.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.3562, allocations: 1.669 MB / 0.5066 GB, free: 52.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.3563, allocations: 0 / 0.5066 GB, free: 52.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.3577, allocations: 0.8375 MB / 0.5075 GB, free: 52.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008523/0.3586, allocations: 103.7 kB / 0.5076 GB, free: 52.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.3694, allocations: 7.708 MB / 0.5151 GB, free: 48.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006263/0.37, allocations: 1.085 MB / 0.5161 GB, free: 47.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004886/0.3705, allocations: 184.7 kB / 0.5163 GB, free: 47.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/0.3709, allocations: 270.1 kB / 0.5166 GB, free: 47.56 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3709, allocations: 0 / 0.5166 GB, free: 47.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.4045, allocations: 16.38 MB / 0.5326 GB, free: 37.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.126/9.53, allocations: 8.875 kB / 0.5326 GB, free: 37.72 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened_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_NetworkOpened.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe 2>&1)