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.0009225/0.0009225, allocations: 94.88 kB / 16.3 MB, free: 6.457 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.0009749/0.000975, allocations: 184.5 kB / 17.2 MB, free: 6.34 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.514/1.514, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005289/0.000529, allocations: 20 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3222, allocations: 56.32 MB / 432.9 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007668/0.33, allocations: 8.454 MB / 441.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006303/0.3363, allocations: 5.037 MB / 446.4 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009919/0.3373, allocations: 35.81 kB / 446.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004485/0.3378, allocations: 190.7 kB / 446.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002497/0.3403, allocations: 0.8254 MB / 447.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.3417, allocations: 469.3 kB / 447.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.3428, allocations: 0.9601 MB / 448.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001948/0.3448, allocations: 1.422 MB / 450.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008021/0.3456, allocations: 0.5565 MB / 450.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.3461, allocations: 0.5136 MB / 451.3 MB, free: 292 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.389e-05/0.3462, allocations: 52 kB / 451.4 MB, free: 240 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001913/0.3481, allocations: 0.7991 MB / 452.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000443/0.3486, allocations: 470.8 kB / 452.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.3489, allocations: 253 kB / 452.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001881/0.3507, allocations: 1.438 MB / 454.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3508, allocations: 0 / 454.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3508, allocations: 0 / 454.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.3508, allocations: 0 / 454.3 MB, free: 13.27 MB / 334.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.00257/0.3534, allocations: 1.458 MB / 455.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.3534, allocations: 12.02 kB / 455.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002151/0.3537, allocations: 177.5 kB / 456 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003796/0.3575, allocations: 0.5212 MB / 456.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.3594, allocations: 0.6502 MB / 457.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.39e-05/0.3596, allocations: 86.16 kB / 457.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.3598, allocations: 111.9 kB / 457.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.3628, allocations: 1.6 MB / 459 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.961e-05/0.3628, allocations: 4 kB / 459 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.363, allocations: 43.98 kB / 459 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.3631, allocations: 90.22 kB / 459.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/0.3659, allocations: 1.656 MB / 460.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007979/0.3739, allocations: 4.988 MB / 465.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.376, allocations: 1.362 MB / 467.1 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.003e-05/0.3761, allocations: 16.98 kB / 467.1 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.3774, allocations: 0.8485 MB / 468 MB, free: 15.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 4.398e-06/0.3774, allocations: 3.984 kB / 468 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01329/0.3907, allocations: 6.382 MB / 474.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.3909, allocations: 124.1 kB / 474.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006445/0.3915, allocations: 0.5626 MB / 475 MB, free: 8.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.138e-05/0.3916, allocations: 53.7 kB / 475.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003509/0.392, allocations: 476.2 kB / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003593/0.3923, allocations: 465.2 kB / 476 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.3924, allocations: 28 kB / 476 MB, free: 7.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.3926, allocations: 406.8 kB / 476.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.3937, allocations: 0.6194 MB / 477 MB, free: 6.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.3948, allocations: 0.7832 MB / 477.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.396, allocations: 0.7499 MB / 478.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.396, allocations: 0 / 478.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003771/0.3998, allocations: 2.119 MB / 480.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.4002, allocations: 1.168 MB / 481.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4003, allocations: 8 kB / 481.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.4016, allocations: 457.4 kB / 482.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.4027, allocations: 267.6 kB / 482.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008132/0.4109, allocations: 6.424 MB / 489 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.4121, allocations: 91.89 kB / 489.1 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.4122, allocations: 56.05 kB / 489.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4122, allocations: 4 kB / 489.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003428/0.4157, allocations: 1.915 MB / 491.1 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.4157, allocations: 4 kB / 491.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.4168, allocations: 438.4 kB / 491.5 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.4178, allocations: 263.6 kB / 491.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0073/0.4251, allocations: 6.177 MB / 497.9 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009764/0.4261, allocations: 79.92 kB / 498 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.442e-05/0.4262, allocations: 51.97 kB / 498.1 MB, free: 292 kB / 366.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.0006607/0.4269, allocations: 430.3 kB / 498.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.427, allocations: 106.8 kB / 498.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004068/0.4311, allocations: 2.188 MB / 0.489 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.4312, allocations: 12 kB / 0.489 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4312, allocations: 4 kB / 0.4891 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.4312, allocations: 7.969 kB / 0.4891 GB, free: 13.51 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.006916/0.4381, allocations: 3.963 MB / 0.4929 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4381, allocations: 7.938 kB / 0.4929 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008476/0.439, allocations: 203.7 kB / 0.4931 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001533/0.4405, allocations: 0.513 MB / 0.4936 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.247e-05/0.4406, allocations: 35.98 kB / 0.4937 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008446/0.4491, allocations: 6.696 MB / 0.5002 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.4491, allocations: 11.92 kB / 0.5002 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005297/0.4544, allocations: 3.22 MB / 0.5034 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005766/0.455, allocations: 283.9 kB / 0.5036 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.4552, allocations: 35.97 kB / 0.5037 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007167/0.4559, allocations: 79.92 kB / 0.5037 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.4561, allocations: 129 kB / 0.5039 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-05/0.4562, allocations: 43.98 kB / 0.5039 GB, free: 13.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004917/0.4567, allocations: 399 kB / 0.5043 GB, free: 13.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4568, allocations: 0 / 0.5043 GB, free: 13.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00193/0.4587, allocations: 0.6602 MB / 0.5049 GB, free: 12.7 MB / 398.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.00584/0.4645, allocations: 4.499 MB / 0.5093 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005594/0.4701, allocations: 3.347 MB / 0.5126 GB, free: 4.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.4702, allocations: 4 kB / 0.5126 GB, free: 4.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002078/0.4723, allocations: 1.323 MB / 0.5139 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000898/0.4732, allocations: 159.9 kB / 0.514 GB, free: 3.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.224/0.6972, allocations: 9.741 MB / 0.5236 GB, free: 81.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008811/0.6981, allocations: 1.285 MB / 0.5248 GB, free: 81.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000935/0.6991, allocations: 300.2 kB / 0.5251 GB, free: 81.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005766/0.6996, allocations: 443.4 kB / 0.5255 GB, free: 80.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.343e-06/0.6997, allocations: 3.5 kB / 0.5255 GB, free: 80.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04735/0.747, allocations: 29.33 MB / 0.5542 GB, free: 59.4 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.7472, allocations: 219.3 kB / 0.5544 GB, free: 59.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/3.126, allocations: 0 / 0.5544 GB, free: 59.16 MB / 398.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: