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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0009041/0.0009042, allocations: 91.81 kB / 16.31 MB, free: 6.008 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.001139/0.001139, allocations: 184.8 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3195/0.3195, allocations: 38.05 MB / 309.7 MB, free: 8.828 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005234/0.0005235, allocations: 15.98 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.14, allocations: 56.32 MB / 432.9 MB, free: 6.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01042/0.1505, allocations: 8.82 MB / 441.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007872/0.1584, allocations: 5.195 MB / 447 MB, free: 8.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1596, allocations: 31.88 kB / 447 MB, free: 8.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006122/0.1602, allocations: 198.4 kB / 447.2 MB, free: 8.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003307/0.1636, allocations: 1.031 MB / 448.2 MB, free: 7.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001646/0.1652, allocations: 458.9 kB / 448.7 MB, free: 6.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003414/0.1686, allocations: 2.471 MB / 451.1 MB, free: 4.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002708/0.1714, allocations: 1.409 MB / 452.5 MB, free: 2.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.1731, allocations: 0.6609 MB / 453.2 MB, free: 2.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.1743, allocations: 0.8641 MB / 454.1 MB, free: 1.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1744, allocations: 52 kB / 454.1 MB, free: 1.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.1764, allocations: 0.8415 MB / 455 MB, free: 476 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2558/0.4322, allocations: 0.5101 MB / 455.5 MB, free: 34.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007338/0.433, allocations: 248.3 kB / 455.7 MB, free: 34.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.4353, allocations: 1.449 MB / 457.2 MB, free: 34.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4353, allocations: 3.094 kB / 457.2 MB, free: 34.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4353, allocations: 0 / 457.2 MB, free: 34.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.4354, allocations: 0.9062 kB / 457.2 MB, free: 34.55 MB / 382.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.002251/0.4376, allocations: 1.452 MB / 458.6 MB, free: 33.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4377, allocations: 14.44 kB / 458.6 MB, free: 33.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.4379, allocations: 179.8 kB / 458.8 MB, free: 33.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003126/0.441, allocations: 482.1 kB / 459.3 MB, free: 33.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008865/0.4419, allocations: 0.6514 MB / 459.9 MB, free: 33.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.099e-05/0.442, allocations: 83.22 kB / 460 MB, free: 33.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.4422, allocations: 114.1 kB / 460.1 MB, free: 33.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.4444, allocations: 1.612 MB / 461.7 MB, free: 33.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.4445, allocations: 6.562 kB / 461.7 MB, free: 33.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.891e-05/0.4446, allocations: 43.03 kB / 461.8 MB, free: 33.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.291e-05/0.4447, allocations: 90.62 kB / 461.9 MB, free: 33.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002455/0.4471, allocations: 1.656 MB / 463.5 MB, free: 33.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006748/0.4539, allocations: 4.986 MB / 468.5 MB, free: 31.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4558, allocations: 1.352 MB / 469.9 MB, free: 31.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.4569, allocations: 0.8082 MB / 470.7 MB, free: 31.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.815e-05/0.457, allocations: 22.97 kB / 470.7 MB, free: 31.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.4582, allocations: 0.8479 MB / 471.5 MB, free: 31.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 2.635e-06/0.4582, allocations: 0 / 471.5 MB, free: 31.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01233/0.4705, allocations: 6.379 MB / 477.9 MB, free: 30.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.4706, allocations: 124.4 kB / 478 MB, free: 30.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.4713, allocations: 0.5725 MB / 478.6 MB, free: 30.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.575e-05/0.4714, allocations: 52.53 kB / 478.7 MB, free: 30.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003303/0.4717, allocations: 482 kB / 479.1 MB, free: 30.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003061/0.472, allocations: 469 kB / 479.6 MB, free: 29.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.4721, allocations: 23.88 kB / 479.6 MB, free: 29.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4722, allocations: 404.9 kB / 480 MB, free: 29.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.4731, allocations: 0.6254 MB / 480.6 MB, free: 29.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4742, allocations: 0.7859 MB / 481.4 MB, free: 29.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.4752, allocations: 0.7455 MB / 482.2 MB, free: 29.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4753, allocations: 2.625 kB / 482.2 MB, free: 29.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.00332/0.4786, allocations: 2.122 MB / 484.3 MB, free: 28.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.4787, allocations: 208.5 kB / 484.5 MB, free: 28.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.4787, allocations: 3.094 kB / 484.5 MB, free: 28.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.4799, allocations: 471.9 kB / 485 MB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009856/0.4809, allocations: 258 kB / 485.2 MB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007721/0.4886, allocations: 6.274 MB / 491.5 MB, free: 24.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4897, allocations: 88.62 kB / 491.6 MB, free: 24.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.4898, allocations: 47.69 kB / 491.6 MB, free: 24.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.4898, allocations: 6.938 kB / 491.6 MB, free: 24.35 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003431/0.4933, allocations: 1.923 MB / 493.6 MB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.4933, allocations: 2.75 kB / 493.6 MB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.4943, allocations: 439.8 kB / 494 MB, free: 23.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.4954, allocations: 263.8 kB / 494.2 MB, free: 23.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007179/0.5025, allocations: 6.029 MB / 0.4885 GB, free: 19.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.5036, allocations: 83.62 kB / 0.4886 GB, free: 19.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.5037, allocations: 48.92 kB / 0.4887 GB, free: 19.38 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,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0008204/0.5046, allocations: 428.2 kB / 0.4891 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.5047, allocations: 99.75 kB / 0.4892 GB, free: 19.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/0.5091, allocations: 2.187 MB / 0.4913 GB, free: 18.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/0.5092, allocations: 14.41 kB / 0.4913 GB, free: 18.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.5092, allocations: 4.953 kB / 0.4913 GB, free: 18.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.663e-05/0.5092, allocations: 12.7 kB / 0.4913 GB, free: 18.21 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.007379/0.5166, allocations: 3.968 MB / 0.4952 GB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.5166, allocations: 2.719 kB / 0.4952 GB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009098/0.5175, allocations: 224.2 kB / 0.4954 GB, free: 16.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.5192, allocations: 0.5108 MB / 0.4959 GB, free: 16.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.414e-05/0.5193, allocations: 35.45 kB / 0.496 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008333/0.5276, allocations: 6.525 MB / 0.5023 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5277, allocations: 2.625 kB / 0.5023 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005517/0.5332, allocations: 3.117 MB / 0.5054 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000574/0.5338, allocations: 286.7 kB / 0.5057 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.5339, allocations: 31.56 kB / 0.5057 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006745/0.5346, allocations: 81.25 kB / 0.5058 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.535, allocations: 129.2 kB / 0.5059 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.5351, allocations: 45.58 kB / 0.5059 GB, free: 10.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004827/0.5356, allocations: 400.3 kB / 0.5063 GB, free: 10.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5356, allocations: 0 / 0.5063 GB, free: 10.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002297/0.5379, allocations: 0.6551 MB / 0.507 GB, free: 10.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004918/0.5428, allocations: 3.7 MB / 0.5106 GB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005336/0.5481, allocations: 3.346 MB / 0.5138 GB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.5482, allocations: 4.188 kB / 0.5138 GB, free: 6.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/0.5502, allocations: 1.313 MB / 0.5151 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.5515, allocations: 183.6 kB / 0.5153 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.5635, allocations: 7.979 MB / 0.5231 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.5647, allocations: 1.256 MB / 0.5243 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000984/0.5657, allocations: 310.5 kB / 0.5246 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006507/0.5664, allocations: 439.3 kB / 0.525 GB, free: 11.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5664, allocations: 0 / 0.525 GB, free: 11.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05281/0.6192, allocations: 29.36 MB / 0.5537 GB, free: 14.09 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.6195, allocations: 220.5 kB / 0.5539 GB, free: 13.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.097, allocations: 0 / 0.5539 GB, free: 13.85 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) Environment - environmentSimulation: