Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.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,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop",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.00125/0.00125, allocations: 108.2 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.001152/0.001152, 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1773/0.1773, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 62.05 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.008911/0.1105, allocations: 7.398 MB / 464.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005993/0.1165, allocations: 4.389 MB / 468.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005282/0.1171, allocations: 19.94 kB / 468.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.1197, allocations: 1.026 MB / 469.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002543/0.1222, allocations: 1.207 MB / 471 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000829/0.1231, allocations: 323.1 kB / 471.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001693/0.1248, allocations: 1.406 MB / 472.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009656/0.1258, allocations: 0.6689 MB / 473.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.1268, allocations: 0.6147 MB / 474 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.1279, allocations: 0.6736 MB / 474.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002007/0.1281, allocations: 64 kB / 474.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.1305, allocations: 1.329 MB / 476.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005462/0.131, allocations: 478.9 kB / 476.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007109/0.1317, allocations: 438 kB / 477 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.1344, allocations: 1.449 MB / 478.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1344, allocations: 0 / 478.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1344, allocations: 4 kB / 478.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.999e-05/0.1344, allocations: 0 / 478.4 MB, free: 2.402 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00201/0.1364, allocations: 1.124 MB / 479.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.1365, allocations: 11.89 kB / 479.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002/0.1367, allocations: 135.2 kB / 479.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003224/0.1399, allocations: 387.4 kB / 480.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008317/0.1408, allocations: 482.6 kB / 480.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/0.1409, allocations: 54.3 kB / 480.6 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.141, allocations: 76.36 kB / 480.7 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.1431, allocations: 1.168 MB / 481.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.1431, allocations: 11.91 kB / 481.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.958e-05/0.1432, allocations: 27.98 kB / 481.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/0.1433, allocations: 77.88 kB / 482 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.1453, allocations: 1.245 MB / 483.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005477/0.1507, allocations: 3.496 MB / 486.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.1525, allocations: 1.074 MB / 487.8 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008636/0.1533, allocations: 0.6528 MB / 488.4 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.194e-05/0.1534, allocations: 20.92 kB / 488.4 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.1535, allocations: 43.56 kB / 488.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.595e-06/0.1535, allocations: 4 kB / 488.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.00642/0.1599, allocations: 3.083 MB / 491.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/0.16, allocations: 86.11 kB / 491.7 MB, free: 4.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.1604, allocations: 369.5 kB / 492 MB, free: 4.504 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.1605, allocations: 37.7 kB / 492.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.1608, allocations: 320.1 kB / 492.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.1611, allocations: 311.4 kB / 492.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.1614, allocations: 166.6 kB / 492.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.1616, allocations: 362.8 kB / 493.2 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007324/0.1623, allocations: 469.7 kB / 493.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000796/0.1631, allocations: 0.5734 MB / 494.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.1647, allocations: 1.109 MB / 495.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1647, allocations: 4 kB / 495.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002484/0.1672, allocations: 1.477 MB / 496.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.1672, allocations: 4 kB / 496.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1672, allocations: 4 kB / 496.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000904/0.1681, allocations: 336.8 kB / 497.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006863/0.1688, allocations: 179.7 kB / 497.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005755/0.1746, allocations: 4.204 MB / 0.4898 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.1752, allocations: 47.94 kB / 0.4898 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.1753, allocations: 35.98 kB / 0.4898 GB, free: 10.65 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (80): * Single equations (assignments): 79 * 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.0004409/0.1757, allocations: 289.6 kB / 0.4901 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.1759, allocations: 55.34 kB / 0.4902 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.1784, allocations: 1.567 MB / 0.4917 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.1785, allocations: 12 kB / 0.4917 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1785, allocations: 4 kB / 0.4917 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.1785, allocations: 11.91 kB / 0.4917 GB, free: 8.695 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.004748/0.1832, allocations: 3.032 MB / 0.4947 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.1833, allocations: 4 kB / 0.4947 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.1839, allocations: 168.2 kB / 0.4949 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007776/0.1847, allocations: 288.5 kB / 0.4951 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.1847, allocations: 27.98 kB / 0.4952 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.1897, allocations: 3.907 MB / 0.499 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1897, allocations: 7.938 kB / 0.499 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2025/0.3923, allocations: 1.585 MB / 0.5005 GB, free: 55.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/0.3926, allocations: 145.1 kB / 0.5007 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.3927, allocations: 23.36 kB / 0.5007 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004553/0.3931, allocations: 44.36 kB / 0.5007 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.3934, allocations: 85.28 kB / 0.5008 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.307e-05/0.3934, allocations: 41.11 kB / 0.5009 GB, free: 55.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003198/0.3938, allocations: 257.6 kB / 0.5011 GB, free: 55.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3938, allocations: 0 / 0.5011 GB, free: 55.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001016/0.3948, allocations: 309 kB / 0.5014 GB, free: 55.65 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.002457/0.3973, allocations: 2.156 MB / 0.5035 GB, free: 54.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002725/0.4, allocations: 1.677 MB / 0.5051 GB, free: 54.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4, allocations: 0.9688 kB / 0.5051 GB, free: 54.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.4012, allocations: 0.8389 MB / 0.506 GB, free: 53.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006977/0.4019, allocations: 111.8 kB / 0.5061 GB, free: 53.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/0.4117, allocations: 7.597 MB / 0.5135 GB, free: 50.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006602/0.4124, allocations: 1.071 MB / 0.5145 GB, free: 49.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004966/0.4129, allocations: 182.1 kB / 0.5147 GB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.4133, allocations: 257.1 kB / 0.5149 GB, free: 49.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4133, allocations: 0 / 0.5149 GB, free: 49.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.4482, allocations: 16.21 MB / 0.5308 GB, free: 40.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.258/9.706, allocations: 5.484 kB / 0.5308 GB, free: 40.19 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_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.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1)