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.001422/0.001422, allocations: 110.4 kB / 17.07 MB, free: 5.996 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.001472/0.001472, allocations: 197.3 kB / 18 MB, free: 5.074 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.546/1.546, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1867/0.1867, allocations: 38.02 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 67.84 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3259, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.009018/0.3349, allocations: 9.499 MB / 0.5129 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008785/0.3438, allocations: 5.402 MB / 0.5182 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.3449, allocations: 25.53 kB / 0.5182 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003424/0.3484, allocations: 1.138 MB / 0.5193 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.3528, allocations: 1.356 MB / 0.5206 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.355, allocations: 0.6113 MB / 0.5212 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003501/0.3585, allocations: 2.019 MB / 0.5232 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001769/0.3603, allocations: 1.044 MB / 0.5242 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.3623, allocations: 0.8392 MB / 0.525 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001629/0.3639, allocations: 0.9202 MB / 0.5259 GB, free: 9.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002594/0.3642, allocations: 110 kB / 0.526 GB, free: 9.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003715/0.3679, allocations: 1.548 MB / 0.5276 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000909/0.3688, allocations: 0.5788 MB / 0.5281 GB, free: 8.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.3699, allocations: 0.6634 MB / 0.5288 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004795/0.3747, allocations: 2.062 MB / 0.5308 GB, free: 6.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3748, allocations: 1.562 kB / 0.5308 GB, free: 6.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3748, allocations: 0 / 0.5308 GB, free: 6.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.915e-05/0.3749, allocations: 0 / 0.5308 GB, free: 6.992 MB / 398.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.004073/0.3789, allocations: 1.687 MB / 0.5324 GB, free: 5.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.379, allocations: 16.28 kB / 0.5324 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002398/0.3793, allocations: 184.9 kB / 0.5326 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003861/0.3831, allocations: 482 kB / 0.5331 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.3845, allocations: 0.7067 MB / 0.5338 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.832e-05/0.3846, allocations: 86.31 kB / 0.5339 GB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.3848, allocations: 117.4 kB / 0.534 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003108/0.3879, allocations: 1.602 MB / 0.5355 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.566e-05/0.388, allocations: 6.375 kB / 0.5355 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.3882, allocations: 41.77 kB / 0.5356 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.3883, allocations: 93.09 kB / 0.5357 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.3917, allocations: 1.631 MB / 0.5373 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008809/0.4005, allocations: 4.914 MB / 0.5421 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.4028, allocations: 1.324 MB / 0.5433 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.4042, allocations: 0.7924 MB / 0.5441 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.528e-05/0.4043, allocations: 18.05 kB / 0.5441 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001459/0.4058, allocations: 0.842 MB / 0.545 GB, free: 13.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.186e-06/0.4058, allocations: 0 / 0.545 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01503/0.4208, allocations: 6.368 MB / 0.5512 GB, free: 7.453 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.4209, allocations: 124.2 kB / 0.5513 GB, free: 7.309 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008374/0.4218, allocations: 0.5665 MB / 0.5519 GB, free: 6.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.4219, allocations: 49.7 kB / 0.5519 GB, free: 6.676 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004603/0.4224, allocations: 489.3 kB / 0.5524 GB, free: 6.191 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005129/0.4229, allocations: 487.8 kB / 0.5528 GB, free: 5.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000406/0.4233, allocations: 226.9 kB / 0.553 GB, free: 5.484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.4236, allocations: 410.7 kB / 0.5534 GB, free: 5.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.4248, allocations: 0.6228 MB / 0.554 GB, free: 4.445 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.4261, allocations: 0.7792 MB / 0.5548 GB, free: 3.625 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002644/0.4288, allocations: 1.491 MB / 0.5563 GB, free: 2.086 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.4288, allocations: 4 kB / 0.5563 GB, free: 2.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004578/0.4334, allocations: 2.084 MB / 0.5583 GB, free: 15.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.033e-05/0.4335, allocations: 33.7 kB / 0.5583 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4335, allocations: 0 / 0.5583 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.4349, allocations: 445.5 kB / 0.5588 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.4361, allocations: 259.5 kB / 0.559 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.4463, allocations: 6.774 MB / 0.5656 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.4474, allocations: 79.92 kB / 0.5657 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.4476, allocations: 51.97 kB / 0.5657 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00176/0.4494, allocations: 0.8733 MB / 0.5666 GB, free: 7.172 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00135/0.4507, allocations: 0.756 MB / 0.5673 GB, free: 6.375 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002639/0.4534, allocations: 1.472 MB / 0.5688 GB, free: 4.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.747e-06/0.4534, allocations: 0 / 0.5688 GB, free: 4.859 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004115/0.4575, allocations: 2.006 MB / 0.5707 GB, free: 2.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.4576, allocations: 37.69 kB / 0.5708 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4576, allocations: 4.219 kB / 0.5708 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.4589, allocations: 441.8 kB / 0.5712 GB, free: 2.348 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.4601, allocations: 255.6 kB / 0.5714 GB, free: 2.098 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00951/0.4696, allocations: 6.598 MB / 0.5779 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.4708, allocations: 83.98 kB / 0.578 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/0.471, allocations: 51.92 kB / 0.578 GB, free: 11.08 MB / 446.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.0004487/0.4715, allocations: 248 kB / 0.5783 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.4718, allocations: 99.39 kB / 0.5783 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005095/0.4769, allocations: 2.165 MB / 0.5805 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.477, allocations: 16 kB / 0.5805 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.477, allocations: 0 / 0.5805 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/0.477, allocations: 7.969 kB / 0.5805 GB, free: 8.523 MB / 446.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.008124/0.4851, allocations: 3.93 MB / 0.5843 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.4852, allocations: 4 kB / 0.5843 GB, free: 4.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00098/0.4862, allocations: 207.7 kB / 0.5845 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001772/0.4879, allocations: 0.5054 MB / 0.585 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.4881, allocations: 35.98 kB / 0.5851 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.4993, allocations: 7.134 MB / 0.592 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.289e-06/0.4993, allocations: 4 kB / 0.592 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006706/0.506, allocations: 3.088 MB / 0.595 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007655/0.5068, allocations: 292.4 kB / 0.5953 GB, free: 8.828 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.5071, allocations: 24 kB / 0.5953 GB, free: 8.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009836/0.5081, allocations: 75.92 kB / 0.5954 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.5085, allocations: 128.9 kB / 0.5955 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.5086, allocations: 47.98 kB / 0.5956 GB, free: 8.555 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006301/0.5093, allocations: 399 kB / 0.596 GB, free: 8.172 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5093, allocations: 0 / 0.596 GB, free: 8.172 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00248/0.5118, allocations: 0.668 MB / 0.5966 GB, free: 7.504 MB / 462.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.006729/0.5185, allocations: 3.667 MB / 0.6002 GB, free: 3.773 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006881/0.5254, allocations: 3.339 MB / 0.6035 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.5255, allocations: 0 / 0.6035 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002793/0.5283, allocations: 1.323 MB / 0.6047 GB, free: 15.01 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.5297, allocations: 193.1 kB / 0.6049 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/0.5501, allocations: 10.72 MB / 0.6154 GB, free: 3.836 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/0.5515, allocations: 1.256 MB / 0.6166 GB, free: 2.551 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.5526, allocations: 303 kB / 0.6169 GB, free: 2.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/0.5534, allocations: 447.2 kB / 0.6173 GB, free: 1.812 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5534, allocations: 0 / 0.6173 GB, free: 1.812 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08851/0.6419, allocations: 32.59 MB / 0.6492 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.59, allocations: 15.92 kB / 0.6492 GB, free: 1.383 MB / 0.4981 GB (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)