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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001112/0.001112, allocations: 185.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.209/1.209, allocations: 194.2 MB / 212.2 MB, free: 2.371 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00176/0.00176, allocations: 120.1 kB / 256.6 MB, free: 4.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1632/0.1632, allocations: 37.94 MB / 338.8 MB, free: 2.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 68.23 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08235, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007119/0.08952, allocations: 9.729 MB / 463.7 MB, free: 6.797 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005985/0.09552, allocations: 5.578 MB / 469.3 MB, free: 1.203 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007154/0.09627, allocations: 31.88 kB / 469.3 MB, free: 1.172 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.09846, allocations: 1.035 MB / 470.4 MB, free: 140 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003078/0.1015, allocations: 1.296 MB / 471.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.1029, allocations: 0.5182 MB / 472.2 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002518/0.1054, allocations: 3.177 MB / 475.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.1067, allocations: 0.9593 MB / 476.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009276/0.1076, allocations: 0.7077 MB / 477 MB, free: 9.438 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009871/0.1086, allocations: 0.9537 MB / 478 MB, free: 8.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.1087, allocations: 79.94 kB / 478.1 MB, free: 8.402 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.1115, allocations: 1.863 MB / 479.9 MB, free: 6.535 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004708/0.112, allocations: 0.5571 MB / 480.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000531/0.1125, allocations: 0.6101 MB / 481.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002486/0.115, allocations: 2.06 MB / 483.1 MB, free: 3.297 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.1151, allocations: 0 / 483.1 MB, free: 3.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1151, allocations: 0 / 483.1 MB, free: 3.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.1151, allocations: 0 / 483.1 MB, free: 3.297 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002364/0.1174, allocations: 1.625 MB / 484.8 MB, free: 1.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1175, allocations: 8.031 kB / 484.8 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003061/0.1206, allocations: 470.8 kB / 485.2 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.1216, allocations: 0.6511 MB / 485.9 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.403e-05/0.1217, allocations: 86.41 kB / 486 MB, free: 368 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.1219, allocations: 115.9 kB / 486.1 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/0.1243, allocations: 1.562 MB / 487.6 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.249e-05/0.1243, allocations: 11.84 kB / 487.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.1245, allocations: 43.98 kB / 487.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.702e-05/0.1246, allocations: 90.19 kB / 487.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002622/0.1272, allocations: 1.613 MB / 489.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007284/0.1345, allocations: 4.718 MB / 494.1 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.1366, allocations: 1.323 MB / 495.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.1378, allocations: 0.7823 MB / 496.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.939e-05/0.1379, allocations: 24.97 kB / 496.2 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.1392, allocations: 0.8371 MB / 497.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=125): time 2.975e-06/0.1392, allocations: 4 kB / 497.1 MB, free: 5.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.01242/0.1516, allocations: 6.26 MB / 0.4916 GB, free: 14.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/0.1517, allocations: 124.1 kB / 0.4917 GB, free: 14.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.1523, allocations: 0.5264 MB / 0.4922 GB, free: 13.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.319e-05/0.1524, allocations: 57.73 kB / 0.4922 GB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003165/0.1527, allocations: 460.2 kB / 0.4927 GB, free: 13.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.1531, allocations: 465.2 kB / 0.4931 GB, free: 12.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003381/0.1534, allocations: 226.8 kB / 0.4933 GB, free: 12.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1536, allocations: 398.7 kB / 0.4937 GB, free: 12.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009967/0.1546, allocations: 0.615 MB / 0.4943 GB, free: 11.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.1558, allocations: 0.7619 MB / 0.4951 GB, free: 10.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.158, allocations: 1.466 MB / 0.4965 GB, free: 9.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.158, allocations: 0 / 0.4965 GB, free: 9.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003655/0.1617, allocations: 2.056 MB / 0.4985 GB, free: 7.348 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.1617, allocations: 33.7 kB / 0.4985 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1617, allocations: 0 / 0.4985 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.1629, allocations: 441.5 kB / 0.499 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009683/0.1639, allocations: 259.6 kB / 0.4992 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.1714, allocations: 6.158 MB / 0.5052 GB, free: 172 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.1726, allocations: 75.98 kB / 0.5053 GB, free: 96 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.1727, allocations: 55.97 kB / 0.5053 GB, free: 40 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.2079/0.3806, allocations: 0.8596 MB / 0.5062 GB, free: 65.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001402/0.382, allocations: 0.7432 MB / 0.5069 GB, free: 65.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002427/0.3845, allocations: 1.449 MB / 0.5083 GB, free: 64.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.462e-06/0.3845, allocations: 6.281 kB / 0.5083 GB, free: 64.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=159) (initialization_lambda0): time 0.003749/0.3883, allocations: 1.965 MB / 0.5102 GB, free: 64.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.3883, allocations: 33.81 kB / 0.5103 GB, free: 64.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3883, allocations: 2.562 kB / 0.5103 GB, free: 64.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.3896, allocations: 423.8 kB / 0.5107 GB, free: 64.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.3908, allocations: 256.9 kB / 0.5109 GB, free: 64.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006671/0.3975, allocations: 5.983 MB / 0.5168 GB, free: 60.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/0.3985, allocations: 85.45 kB / 0.5169 GB, free: 60.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.727e-05/0.3986, allocations: 48.84 kB / 0.5169 GB, free: 60.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * 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,8), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0003917/0.399, allocations: 246 kB / 0.5171 GB, free: 59.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.3992, allocations: 96.12 kB / 0.5172 GB, free: 59.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004448/0.4036, allocations: 2.148 MB / 0.5193 GB, free: 59.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/0.4037, allocations: 16.2 kB / 0.5193 GB, free: 59.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.4037, allocations: 2.078 kB / 0.5193 GB, free: 59.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.4037, allocations: 11.48 kB / 0.5194 GB, free: 59.02 MB / 362.7 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.006871/0.4106, allocations: 3.911 MB / 0.5232 GB, free: 57.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4106, allocations: 2.75 kB / 0.5232 GB, free: 57.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008481/0.4114, allocations: 212.3 kB / 0.5234 GB, free: 57.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.413, allocations: 0.5037 MB / 0.5239 GB, free: 57.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.804e-05/0.4131, allocations: 38.62 kB / 0.5239 GB, free: 57.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/0.4205, allocations: 6.539 MB / 0.5303 GB, free: 52.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4205, allocations: 13.31 kB / 0.5303 GB, free: 52.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02716/0.4477, allocations: 18.32 MB / 0.5482 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005402/0.4483, allocations: 285.9 kB / 0.5485 GB, free: 33.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4484, allocations: 28 kB / 0.5485 GB, free: 33.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006816/0.4491, allocations: 71.92 kB / 0.5486 GB, free: 33.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.4494, allocations: 133 kB / 0.5487 GB, free: 33.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.4495, allocations: 43.98 kB / 0.5487 GB, free: 33.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003576/0.4498, allocations: 370.8 kB / 0.5491 GB, free: 33.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4498, allocations: 0 / 0.5491 GB, free: 33.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002424/0.4523, allocations: 0.9805 MB / 0.55 GB, free: 32.12 MB / 362.7 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 (102): * Single equations (assignments): 97 * 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.0001903/0.4525, allocations: 142 kB / 0.5502 GB, free: 31.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004288/0.4568, allocations: 3.282 MB / 0.5534 GB, free: 28.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4568, allocations: 4 kB / 0.5534 GB, free: 28.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.4586, allocations: 1.313 MB / 0.5547 GB, free: 27.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009422/0.4595, allocations: 177.4 kB / 0.5548 GB, free: 27.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/0.4648, allocations: 4.409 MB / 0.5591 GB, free: 22.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007202/0.4656, allocations: 1.32 MB / 0.5604 GB, free: 21.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008962/0.4665, allocations: 295 kB / 0.5607 GB, free: 21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002699/0.4668, allocations: 87.39 kB / 0.5608 GB, free: 20.91 MB / 362.7 MB Notification: Performance of SimCode: time 7.52e-07/0.4668, allocations: 4 kB / 0.5608 GB, free: 20.91 MB / 362.7 MB Notification: Performance of Templates: time 0.0341/0.5009, allocations: 26.4 MB / 0.5866 GB, free: 10.52 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (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 & ./PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)