Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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_dq0,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",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.001219/0.001219, allocations: 108.2 kB / 16.92 MB, free: 5.754 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.00166/0.00166, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.418/1.418, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1821/0.1821, allocations: 38.02 MB / 329.7 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 64.91 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.00803/0.112, allocations: 7.428 MB / 464.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005749/0.1178, allocations: 4.44 MB / 468.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004388/0.1182, allocations: 19.88 kB / 468.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002471/0.1207, allocations: 1.026 MB / 469.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003034/0.1238, allocations: 1.269 MB / 471.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009936/0.1248, allocations: 347 kB / 471.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.1265, allocations: 1.41 MB / 472.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.1276, allocations: 0.8086 MB / 473.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.1287, allocations: 0.6343 MB / 474.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.13, allocations: 0.7399 MB / 475.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002688/0.1303, allocations: 80 kB / 475.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/0.1332, allocations: 1.52 MB / 476.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006972/0.1339, allocations: 0.6041 MB / 477.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.135, allocations: 0.5676 MB / 477.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.138, allocations: 1.87 MB / 479.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.138, allocations: 0 / 479.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1381, allocations: 0 / 479.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.448e-05/0.1381, allocations: 0 / 479.7 MB, free: 1.113 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002316/0.1404, allocations: 1.33 MB / 481 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1405, allocations: 19.89 kB / 481.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000198/0.1407, allocations: 160.8 kB / 481.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004045/0.1447, allocations: 0.538 MB / 481.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009231/0.1457, allocations: 0.552 MB / 482.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.1458, allocations: 62.36 kB / 482.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.146, allocations: 96.27 kB / 482.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.1485, allocations: 1.504 MB / 484 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.1485, allocations: 0 / 484 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.1486, allocations: 35.98 kB / 484 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/0.1488, allocations: 98 kB / 484.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/0.1512, allocations: 1.554 MB / 485.6 MB, free: 11.02 MB / 366.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 preOpt removeSimpleEquations (simulation): time 0.007705/0.159, allocations: 4.923 MB / 490.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.1608, allocations: 1.173 MB / 491.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.1618, allocations: 0.7646 MB / 492.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.575e-05/0.1619, allocations: 21.06 kB / 492.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.162, allocations: 47.67 kB / 492.6 MB, free: 3.844 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.166e-06/0.162, allocations: 0 / 492.6 MB, free: 3.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.007601/0.1696, allocations: 3.677 MB / 496.3 MB, free: 116 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.1697, allocations: 90.11 kB / 496.3 MB, free: 8 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006472/0.1703, allocations: 469.8 kB / 496.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.058e-05/0.1704, allocations: 45.73 kB / 496.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.1708, allocations: 431.4 kB / 497.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003532/0.1711, allocations: 370.6 kB / 497.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/0.1714, allocations: 206.7 kB / 497.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1716, allocations: 382.8 kB / 498.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008336/0.1724, allocations: 0.5374 MB / 498.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009529/0.1734, allocations: 0.7539 MB / 499.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.1753, allocations: 1.411 MB / 0.4892 GB, free: 11.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1753, allocations: 3.938 kB / 0.4892 GB, free: 11.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.00332/0.1786, allocations: 1.798 MB / 0.4909 GB, free: 9.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.1787, allocations: 10.03 kB / 0.4909 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.1787, allocations: 4 kB / 0.4909 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.1798, allocations: 415.5 kB / 0.4913 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.181, allocations: 235.6 kB / 0.4916 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009528/0.1905, allocations: 6.07 MB / 0.4975 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007904/0.1914, allocations: 64 kB / 0.4976 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.1915, allocations: 47.98 kB / 0.4976 GB, free: 2.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * 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): 2 systems {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005579/0.1921, allocations: 361.4 kB / 0.4979 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.1923, allocations: 71.16 kB / 0.498 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/0.1956, allocations: 1.81 MB / 0.4998 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.1956, allocations: 12 kB / 0.4998 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.1957, allocations: 15.94 kB / 0.4998 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.1957, allocations: 3.984 kB / 0.4998 GB, free: 0 / 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.2197/0.4154, allocations: 3.457 MB / 0.5032 GB, free: 55.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.4154, allocations: 8.219 kB / 0.5032 GB, free: 55.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007454/0.4162, allocations: 193 kB / 0.5034 GB, free: 55.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009415/0.4171, allocations: 352 kB / 0.5037 GB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.919e-05/0.4172, allocations: 28.31 kB / 0.5037 GB, free: 55.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005915/0.4231, allocations: 5.785 MB / 0.5094 GB, free: 51.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.4232, allocations: 12.73 kB / 0.5094 GB, free: 51.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/0.4262, allocations: 1.815 MB / 0.5112 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002714/0.4265, allocations: 159.1 kB / 0.5113 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.4266, allocations: 32.95 kB / 0.5114 GB, free: 50.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005579/0.4272, allocations: 58.56 kB / 0.5114 GB, free: 50.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.4274, allocations: 95.61 kB / 0.5115 GB, free: 50.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.092e-05/0.4275, allocations: 34 kB / 0.5115 GB, free: 50.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004693/0.428, allocations: 325.7 kB / 0.5118 GB, free: 49.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.428, allocations: 0 / 0.5118 GB, free: 49.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001575/0.4296, allocations: 399.2 kB / 0.5122 GB, free: 49.9 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 (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,7,100.0%), (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.003394/0.433, allocations: 2.394 MB / 0.5146 GB, free: 48.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003672/0.4367, allocations: 2.135 MB / 0.5166 GB, free: 47.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4367, allocations: 0 / 0.5166 GB, free: 47.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.4384, allocations: 1.084 MB / 0.5177 GB, free: 47.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.4392, allocations: 119.6 kB / 0.5178 GB, free: 47.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.4502, allocations: 9.272 MB / 0.5269 GB, free: 42.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/0.4508, allocations: 1.174 MB / 0.528 GB, free: 41.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005449/0.4514, allocations: 241.4 kB / 0.5283 GB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003985/0.4518, allocations: 335.2 kB / 0.5286 GB, free: 41.24 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4518, allocations: 0 / 0.5286 GB, free: 41.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04849/0.5003, allocations: 20.05 MB / 0.5482 GB, free: 21.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.342/9.842, allocations: 8.25 kB / 0.5482 GB, free: 21.54 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_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_dq0.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1)