Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.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.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",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.001266/0.001266, allocations: 106.6 kB / 16.92 MB, free: 5.777 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.001188/0.001188, allocations: 187.3 kB / 17.85 MB, free: 5.168 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.372/1.372, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.01 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 63.62 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01072/0.1185, allocations: 9.502 MB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008691/0.1272, allocations: 5.417 MB / 471.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.1285, allocations: 27.94 kB / 471.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002908/0.1315, allocations: 1.119 MB / 473 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003254/0.1347, allocations: 1.37 MB / 474.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.1363, allocations: 0.6079 MB / 475 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002387/0.1387, allocations: 2.007 MB / 477 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001508/0.1402, allocations: 1.033 MB / 478 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.1416, allocations: 0.8365 MB / 478.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.1429, allocations: 0.9185 MB / 479.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.1432, allocations: 108 kB / 479.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002767/0.146, allocations: 1.563 MB / 481.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006577/0.1466, allocations: 0.5806 MB / 482 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001036/0.1477, allocations: 0.653 MB / 482.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003514/0.1512, allocations: 2.033 MB / 484.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1512, allocations: 4 kB / 484.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1513, allocations: 0 / 484.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.154e-05/0.1513, allocations: 0 / 484.7 MB, free: 12.06 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003748/0.1551, allocations: 1.652 MB / 486.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.1551, allocations: 11.89 kB / 486.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000298/0.1554, allocations: 185.6 kB / 486.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003728/0.1592, allocations: 482.7 kB / 487.1 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.1604, allocations: 0.6705 MB / 487.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-05/0.1605, allocations: 82.53 kB / 487.8 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002236/0.1607, allocations: 108.4 kB / 487.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002695/0.1634, allocations: 1.6 MB / 489.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.56e-05/0.1634, allocations: 11.89 kB / 489.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.1636, allocations: 43.98 kB / 489.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.1637, allocations: 90.22 kB / 489.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002992/0.1667, allocations: 1.629 MB / 491.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007955/0.1747, allocations: 4.952 MB / 496.2 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.177, allocations: 1.323 MB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1782, allocations: 0.7909 MB / 498.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.213e-05/0.1783, allocations: 24.98 kB / 498.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.1797, allocations: 0.8333 MB / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 4.839e-06/0.1797, allocations: 0 / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01424/0.1939, allocations: 6.342 MB / 0.4937 GB, free: 6.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.347e-05/0.194, allocations: 120.1 kB / 0.4938 GB, free: 6.625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.1948, allocations: 0.5704 MB / 0.4944 GB, free: 6.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.38e-05/0.1949, allocations: 49.7 kB / 0.4944 GB, free: 5.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003757/0.1953, allocations: 476.2 kB / 0.4949 GB, free: 5.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.1957, allocations: 469.2 kB / 0.4953 GB, free: 5.051 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003772/0.1961, allocations: 222.8 kB / 0.4955 GB, free: 4.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.1963, allocations: 414.7 kB / 0.4959 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.1975, allocations: 0.6189 MB / 0.4965 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.1988, allocations: 0.7784 MB / 0.4973 GB, free: 2.973 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002499/0.2013, allocations: 1.487 MB / 0.4987 GB, free: 1.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2013, allocations: 7.938 kB / 0.4988 GB, free: 1.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.1838/0.3851, allocations: 2.068 MB / 0.5008 GB, free: 55.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.053e-05/0.3852, allocations: 39.83 kB / 0.5008 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.3853, allocations: 3.938 kB / 0.5008 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.3867, allocations: 447.8 kB / 0.5012 GB, free: 55.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.388, allocations: 257.2 kB / 0.5015 GB, free: 55.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008012/0.396, allocations: 6.757 MB / 0.5081 GB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009373/0.397, allocations: 81.38 kB / 0.5082 GB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.3971, allocations: 52.08 kB / 0.5082 GB, free: 51.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001454/0.3986, allocations: 0.8742 MB / 0.5091 GB, free: 50.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001149/0.3997, allocations: 0.7635 MB / 0.5098 GB, free: 50.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002247/0.402, allocations: 1.471 MB / 0.5112 GB, free: 49.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.908e-06/0.402, allocations: 3.375 kB / 0.5113 GB, free: 49.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003881/0.4059, allocations: 1.994 MB / 0.5132 GB, free: 49.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.4059, allocations: 38.98 kB / 0.5132 GB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.406, allocations: 3.562 kB / 0.5132 GB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.4071, allocations: 448.8 kB / 0.5137 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.4082, allocations: 255.4 kB / 0.5139 GB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00728/0.4155, allocations: 6.591 MB / 0.5203 GB, free: 44.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000938/0.4165, allocations: 74.88 kB / 0.5204 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.4166, allocations: 49.27 kB / 0.5205 GB, free: 44.47 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.000322/0.4169, allocations: 247.3 kB / 0.5207 GB, free: 44.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.4171, allocations: 104 kB / 0.5208 GB, free: 44.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/0.4211, allocations: 2.161 MB / 0.5229 GB, free: 43.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4211, allocations: 23.48 kB / 0.5229 GB, free: 43.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.4211, allocations: 0 / 0.5229 GB, free: 43.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.371e-05/0.4211, allocations: 11.53 kB / 0.5229 GB, free: 43.35 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.006334/0.4275, allocations: 3.934 MB / 0.5268 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.4275, allocations: 4.188 kB / 0.5268 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.4283, allocations: 216.8 kB / 0.527 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.4298, allocations: 0.5087 MB / 0.5275 GB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-05/0.4299, allocations: 35.8 kB / 0.5275 GB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007288/0.4372, allocations: 7.127 MB / 0.5345 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4372, allocations: 4 kB / 0.5345 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004632/0.4418, allocations: 3.083 MB / 0.5375 GB, free: 32.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004391/0.4423, allocations: 283.8 kB / 0.5378 GB, free: 32.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.4425, allocations: 32.05 kB / 0.5378 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007667/0.4432, allocations: 71.92 kB / 0.5379 GB, free: 32.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.4435, allocations: 129 kB / 0.538 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.683e-05/0.4436, allocations: 43.98 kB / 0.538 GB, free: 31.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004143/0.444, allocations: 399.1 kB / 0.5384 GB, free: 31.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.444, allocations: 0 / 0.5384 GB, free: 31.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002054/0.4461, allocations: 0.6641 MB / 0.5391 GB, free: 30.85 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004524/0.4506, allocations: 3.658 MB / 0.5426 GB, free: 27.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005401/0.456, allocations: 3.711 MB / 0.5463 GB, free: 23.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.456, allocations: 4.188 kB / 0.5463 GB, free: 23.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.4578, allocations: 1.315 MB / 0.5476 GB, free: 22.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009711/0.4588, allocations: 200.1 kB / 0.5477 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.4726, allocations: 11.02 MB / 0.5585 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007155/0.4733, allocations: 1.263 MB / 0.5597 GB, free: 9.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008067/0.4741, allocations: 298.3 kB / 0.56 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.4746, allocations: 439.3 kB / 0.5604 GB, free: 8.473 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4746, allocations: 0 / 0.5604 GB, free: 8.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06363/0.5383, allocations: 31.98 MB / 0.5917 GB, free: 8.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.97, allocations: 11.86 kB / 0.5917 GB, free: 8.652 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)