Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_latest_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.001275/0.001275, allocations: 91.38 kB / 16.31 MB, free: 5.602 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.001494/0.001494, allocations: 180.9 kB / 17.21 MB, free: 5.52 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.485/1.485, allocations: 223.3 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1792/0.1792, allocations: 38.09 MB / 330.4 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003311, allocations: 11.98 kB / 400.2 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 59.16 MB / 459.3 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.00968/0.1286, allocations: 8.8 MB / 468.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007599/0.1362, allocations: 5.152 MB / 473.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.1375, allocations: 31.88 kB / 473.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006044/0.1381, allocations: 202.4 kB / 473.5 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003227/0.1414, allocations: 1.015 MB / 474.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001603/0.143, allocations: 451 kB / 475 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003402/0.1464, allocations: 2.467 MB / 477.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002605/0.149, allocations: 1.419 MB / 478.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.151, allocations: 0.6571 MB / 479.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.1524, allocations: 0.8563 MB / 480.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.1526, allocations: 52 kB / 480.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.1547, allocations: 0.8376 MB / 481.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005477/0.1553, allocations: 0.5181 MB / 481.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003435/0.1557, allocations: 245.1 kB / 482 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.1579, allocations: 1.446 MB / 483.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.158, allocations: 0 / 483.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.158, allocations: 0 / 483.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.158, allocations: 4 kB / 483.5 MB, free: 15.04 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.003074/0.1611, allocations: 1.451 MB / 484.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.1612, allocations: 8.031 kB / 484.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002539/0.1614, allocations: 181.5 kB / 485.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003452/0.1649, allocations: 485.8 kB / 485.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.1663, allocations: 0.6463 MB / 486.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.1664, allocations: 82.16 kB / 486.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.1667, allocations: 111.9 kB / 486.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.1695, allocations: 1.612 MB / 488 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.1695, allocations: 0 / 488 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.1696, allocations: 47.98 kB / 488.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.1698, allocations: 94.2 kB / 488.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.1729, allocations: 1.656 MB / 489.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008364/0.1812, allocations: 4.98 MB / 494.8 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.1835, allocations: 1.354 MB / 496.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.1847, allocations: 0.8065 MB / 497 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.909e-05/0.1848, allocations: 28.91 kB / 497 MB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001358/0.1862, allocations: 0.849 MB / 497.8 MB, free: 308 kB / 366.1 MB Notification: Performance of pre-optimization done (n=126): time 3.616e-06/0.1862, allocations: 0 / 497.8 MB, free: 308 kB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.01352/0.1997, allocations: 6.381 MB / 0.4924 GB, free: 9.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.765e-05/0.1999, allocations: 120.1 kB / 0.4925 GB, free: 9.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007706/0.2007, allocations: 0.5626 MB / 0.4931 GB, free: 9.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.784e-05/0.2008, allocations: 53.73 kB / 0.4931 GB, free: 9.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/0.2012, allocations: 472.2 kB / 0.4936 GB, free: 8.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004345/0.2016, allocations: 473.2 kB / 0.494 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.2017, allocations: 28 kB / 0.494 GB, free: 8.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.2019, allocations: 402.7 kB / 0.4944 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.203, allocations: 0.6271 MB / 0.495 GB, free: 7.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.2042, allocations: 0.7793 MB / 0.4958 GB, free: 6.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.2055, allocations: 0.7498 MB / 0.4965 GB, free: 5.465 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2055, allocations: 3.953 kB / 0.4965 GB, free: 5.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003925/0.2094, allocations: 2.115 MB / 0.4986 GB, free: 3.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.2096, allocations: 214.6 kB / 0.4988 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.2096, allocations: 4 kB / 0.4988 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.2109, allocations: 465.3 kB / 0.4993 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.212, allocations: 259.6 kB / 0.4995 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2338/0.4458, allocations: 6.26 MB / 0.5056 GB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009978/0.4469, allocations: 91.56 kB / 0.5057 GB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.447, allocations: 49.14 kB / 0.5058 GB, free: 51.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.447, allocations: 4.406 kB / 0.5058 GB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003595/0.4506, allocations: 1.916 MB / 0.5076 GB, free: 51.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4506, allocations: 3.609 kB / 0.5076 GB, free: 51.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.4517, allocations: 441.2 kB / 0.5081 GB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.4528, allocations: 268 kB / 0.5083 GB, free: 51.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007328/0.4601, allocations: 6.039 MB / 0.5142 GB, free: 47.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.4613, allocations: 79.73 kB / 0.5143 GB, free: 47.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.4614, allocations: 53.23 kB / 0.5143 GB, free: 47.03 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.0007925/0.4622, allocations: 440.3 kB / 0.5148 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.4624, allocations: 96.61 kB / 0.5148 GB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005094/0.4675, allocations: 2.181 MB / 0.517 GB, free: 45.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.4675, allocations: 19 kB / 0.517 GB, free: 45.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4675, allocations: 1.469 kB / 0.517 GB, free: 45.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.4676, allocations: 7.031 kB / 0.517 GB, free: 45.91 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.007618/0.4752, allocations: 3.974 MB / 0.5209 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.4752, allocations: 5.625 kB / 0.5209 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008656/0.4761, allocations: 209 kB / 0.5211 GB, free: 44.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.4777, allocations: 0.5114 MB / 0.5216 GB, free: 44.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.873e-05/0.4778, allocations: 34.25 kB / 0.5216 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007779/0.4856, allocations: 6.535 MB / 0.528 GB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.4856, allocations: 3.781 kB / 0.528 GB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.4905, allocations: 3.114 MB / 0.531 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.4911, allocations: 290.6 kB / 0.5313 GB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.4913, allocations: 31.44 kB / 0.5314 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006636/0.4919, allocations: 84.7 kB / 0.5314 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/0.4922, allocations: 122 kB / 0.5316 GB, free: 37.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.385e-05/0.4923, allocations: 45.89 kB / 0.5316 GB, free: 37.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004511/0.4928, allocations: 400.7 kB / 0.532 GB, free: 37.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4928, allocations: 0 / 0.532 GB, free: 37.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002036/0.4948, allocations: 0.6536 MB / 0.5326 GB, free: 37.43 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.004771/0.4996, allocations: 3.698 MB / 0.5362 GB, free: 34.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005166/0.5048, allocations: 3.345 MB / 0.5395 GB, free: 30.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.5049, allocations: 4 kB / 0.5395 GB, free: 30.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/0.5069, allocations: 1.321 MB / 0.5408 GB, free: 29.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.5082, allocations: 183.8 kB / 0.541 GB, free: 29.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.5195, allocations: 7.956 MB / 0.5487 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007835/0.5204, allocations: 1.257 MB / 0.55 GB, free: 19.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009248/0.5213, allocations: 303 kB / 0.5502 GB, free: 19.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005206/0.5218, allocations: 439.3 kB / 0.5507 GB, free: 19.1 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5219, allocations: 4 kB / 0.5507 GB, free: 19.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05162/0.5735, allocations: 29.31 MB / 0.5793 GB, free: 6.027 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002663/0.5738, allocations: 228.8 kB / 0.5795 GB, free: 5.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.666/3.239, allocations: 2.672 kB / 0.5795 GB, free: 5.785 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat does not exist to compare? outputFormat=mat