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.001545/0.001545, allocations: 105.7 kB / 17.06 MB, free: 6.016 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.001833/0.001833, allocations: 187.1 kB / 18 MB, free: 5.102 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.309/1.309, 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.1759/0.1759, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 55.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3008, allocations: 58.06 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008361/0.3092, allocations: 9.497 MB / 0.5129 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007936/0.3171, allocations: 5.41 MB / 0.5182 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008927/0.3181, allocations: 30.34 kB / 0.5182 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002917/0.321, allocations: 1.122 MB / 0.5193 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.3248, allocations: 1.381 MB / 0.5206 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.3265, allocations: 0.6136 MB / 0.5212 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.3294, allocations: 2.019 MB / 0.5232 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.3308, allocations: 1.051 MB / 0.5242 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.3322, allocations: 0.8498 MB / 0.5251 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.3334, allocations: 0.9128 MB / 0.526 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.3335, allocations: 111.4 kB / 0.5261 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003043/0.3366, allocations: 1.559 MB / 0.5276 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008191/0.3374, allocations: 0.5759 MB / 0.5282 GB, free: 8.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000994/0.3384, allocations: 0.6674 MB / 0.5288 GB, free: 7.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004009/0.3424, allocations: 2.062 MB / 0.5308 GB, free: 6.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3425, allocations: 0 / 0.5308 GB, free: 6.996 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3425, allocations: 1.375 kB / 0.5308 GB, free: 6.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.699e-05/0.3425, allocations: 4 kB / 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.003394/0.3459, allocations: 1.686 MB / 0.5325 GB, free: 5.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.346, allocations: 17.66 kB / 0.5325 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000224/0.3462, allocations: 175.6 kB / 0.5327 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003843/0.3501, allocations: 478.3 kB / 0.5331 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.3515, allocations: 0.7024 MB / 0.5338 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/0.3516, allocations: 87.28 kB / 0.5339 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.3518, allocations: 116.8 kB / 0.534 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.3548, allocations: 1.602 MB / 0.5356 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.965e-05/0.3548, allocations: 2.469 kB / 0.5356 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.355, allocations: 54.25 kB / 0.5356 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/0.3551, allocations: 89.75 kB / 0.5357 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/0.3582, allocations: 1.626 MB / 0.5373 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008628/0.3668, allocations: 4.918 MB / 0.5421 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00231/0.3692, allocations: 1.323 MB / 0.5434 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.3705, allocations: 0.7935 MB / 0.5442 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.97e-05/0.3706, allocations: 26.39 kB / 0.5442 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001438/0.372, allocations: 0.8298 MB / 0.545 GB, free: 13.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 2.885e-06/0.3721, allocations: 0 / 0.545 GB, free: 13.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.0143/0.3864, allocations: 6.369 MB / 0.5512 GB, free: 7.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.898e-05/0.3865, allocations: 128 kB / 0.5513 GB, free: 7.266 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.3872, allocations: 0.5705 MB / 0.5519 GB, free: 6.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.882e-05/0.3873, allocations: 45.7 kB / 0.5519 GB, free: 6.633 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004032/0.3877, allocations: 485.3 kB / 0.5524 GB, free: 6.152 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004378/0.3882, allocations: 499.7 kB / 0.5529 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003774/0.3886, allocations: 226.9 kB / 0.5531 GB, free: 5.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3888, allocations: 410.7 kB / 0.5535 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.3899, allocations: 0.6189 MB / 0.5541 GB, free: 4.398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3912, allocations: 0.7754 MB / 0.5548 GB, free: 3.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00247/0.3937, allocations: 1.491 MB / 0.5563 GB, free: 2.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3937, allocations: 0 / 0.5563 GB, free: 2.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004134/0.3978, allocations: 2.08 MB / 0.5583 GB, free: 15.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.3979, allocations: 37.69 kB / 0.5584 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3979, allocations: 288 / 0.5584 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.3992, allocations: 457.3 kB / 0.5588 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.4004, allocations: 255.6 kB / 0.559 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008881/0.4093, allocations: 6.75 MB / 0.5656 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.4105, allocations: 83.92 kB / 0.5657 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.4106, allocations: 51.97 kB / 0.5658 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001572/0.4122, allocations: 0.8694 MB / 0.5666 GB, free: 7.141 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001449/0.4136, allocations: 0.7636 MB / 0.5674 GB, free: 6.336 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002406/0.4161, allocations: 1.472 MB / 0.5688 GB, free: 4.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.008e-06/0.4161, allocations: 0 / 0.5688 GB, free: 4.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003715/0.4198, allocations: 2.006 MB / 0.5708 GB, free: 2.793 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.4198, allocations: 40.5 kB / 0.5708 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.4199, allocations: 0 / 0.5708 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/0.421, allocations: 446.1 kB / 0.5712 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.4221, allocations: 263.5 kB / 0.5715 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007687/0.4298, allocations: 6.582 MB / 0.5779 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000949/0.4308, allocations: 75.92 kB / 0.578 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.933e-05/0.4309, allocations: 47.98 kB / 0.578 GB, free: 11.05 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.0003403/0.4312, allocations: 264 kB / 0.5783 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.4314, allocations: 99.39 kB / 0.5784 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004181/0.4356, allocations: 2.157 MB / 0.5805 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.4356, allocations: 16 kB / 0.5805 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4356, allocations: 192 / 0.5805 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.4356, allocations: 11.91 kB / 0.5805 GB, free: 8.488 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.006806/0.4425, allocations: 3.938 MB / 0.5843 GB, free: 4.434 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.4425, allocations: 7.984 kB / 0.5844 GB, free: 4.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009063/0.4434, allocations: 207.7 kB / 0.5846 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/0.445, allocations: 0.5052 MB / 0.585 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.172e-05/0.4451, allocations: 31.98 kB / 0.5851 GB, free: 3.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008955/0.454, allocations: 7.126 MB / 0.592 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4541, allocations: 3.938 kB / 0.592 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005448/0.4595, allocations: 3.092 MB / 0.5951 GB, free: 9.094 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006411/0.4602, allocations: 296.3 kB / 0.5953 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.4604, allocations: 28 kB / 0.5954 GB, free: 8.758 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000807/0.4612, allocations: 71.92 kB / 0.5954 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002561/0.4615, allocations: 124.9 kB / 0.5956 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.326e-05/0.4616, allocations: 43.98 kB / 0.5956 GB, free: 8.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004884/0.4621, allocations: 411 kB / 0.596 GB, free: 8.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4621, allocations: 0 / 0.596 GB, free: 8.125 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002214/0.4643, allocations: 0.6602 MB / 0.5966 GB, free: 7.465 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.005841/0.4701, allocations: 3.663 MB / 0.6002 GB, free: 3.738 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005613/0.4758, allocations: 3.339 MB / 0.6035 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4758, allocations: 0 / 0.6035 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002284/0.4781, allocations: 1.323 MB / 0.6048 GB, free: 14.97 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.4794, allocations: 207.8 kB / 0.605 GB, free: 14.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/0.4969, allocations: 10.72 MB / 0.6154 GB, free: 3.793 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009812/0.4979, allocations: 1.256 MB / 0.6167 GB, free: 2.508 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009012/0.4988, allocations: 299.2 kB / 0.6169 GB, free: 2.211 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006347/0.4995, allocations: 443.3 kB / 0.6174 GB, free: 1.777 MB / 478.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4995, allocations: 0 / 0.6174 GB, free: 1.777 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06756/0.567, allocations: 32.6 MB / 0.6492 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.9, allocations: 19.55 kB / 0.6492 GB, free: 1.34 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)