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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001269/0.001269, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.408/1.408, allocations: 205.1 MB / 224.5 MB, free: 12.24 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: 37.99 MB / 309.8 MB, free: 5.957 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.00137/0.00137, allocations: 63.91 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2219, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007502/0.2294, allocations: 9.527 MB / 441.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005629/0.2351, allocations: 5.449 MB / 447 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006163/0.2357, allocations: 31.88 kB / 447 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00219/0.2379, allocations: 1.12 MB / 448.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00271/0.2407, allocations: 1.37 MB / 449.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.2419, allocations: 0.6001 MB / 450.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001802/0.2437, allocations: 2.027 MB / 452.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.245, allocations: 1.044 MB / 453.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.2461, allocations: 0.8364 MB / 454 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.2473, allocations: 0.9185 MB / 454.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2475, allocations: 108 kB / 455 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.2501, allocations: 1.555 MB / 456.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005506/0.2507, allocations: 0.5805 MB / 457.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006806/0.2514, allocations: 0.6608 MB / 457.8 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00275/0.2541, allocations: 2.056 MB / 459.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2541, allocations: 0 / 459.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2541, allocations: 3.938 kB / 459.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.2542, allocations: 4 kB / 459.9 MB, free: 7.5 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.002908/0.2571, allocations: 1.663 MB / 461.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.2571, allocations: 11.89 kB / 461.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00356/0.2607, allocations: 474.7 kB / 462 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.262, allocations: 0.7016 MB / 462.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.143e-05/0.2621, allocations: 86.53 kB / 462.8 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/0.2623, allocations: 112.3 kB / 462.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.265, allocations: 1.6 MB / 464.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.265, allocations: 3.906 kB / 464.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.2651, allocations: 47.98 kB / 464.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.2652, allocations: 90.22 kB / 464.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002802/0.2681, allocations: 1.629 MB / 466.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007827/0.2759, allocations: 4.925 MB / 471.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.2781, allocations: 1.315 MB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.2793, allocations: 0.7976 MB / 473.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.371e-05/0.2794, allocations: 28.97 kB / 473.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.2808, allocations: 0.826 MB / 474.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 2.755e-06/0.2808, allocations: 3.938 kB / 474.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01373/0.2946, allocations: 6.334 MB / 480.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.2947, allocations: 124.1 kB / 480.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006879/0.2954, allocations: 0.5665 MB / 481.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-05/0.2955, allocations: 57.73 kB / 481.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003946/0.2959, allocations: 472.3 kB / 481.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.2963, allocations: 473.2 kB / 482.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000364/0.2966, allocations: 226.8 kB / 482.4 MB, free: 460 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.2968, allocations: 406.7 kB / 482.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.2979, allocations: 0.6228 MB / 483.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.2991, allocations: 0.7753 MB / 484.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.3015, allocations: 1.495 MB / 485.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3015, allocations: 0 / 485.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003908/0.3054, allocations: 2.072 MB / 487.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.3055, allocations: 37.62 kB / 487.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3055, allocations: 4 kB / 487.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.3068, allocations: 461.6 kB / 488.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.3079, allocations: 251.6 kB / 488.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008539/0.3165, allocations: 6.75 MB / 495.3 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008939/0.3174, allocations: 83.97 kB / 495.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.3175, allocations: 43.98 kB / 495.4 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001459/0.319, allocations: 0.8772 MB / 496.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001103/0.3201, allocations: 0.7632 MB / 497 MB, free: 1.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002238/0.3223, allocations: 1.471 MB / 498.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.526e-06/0.3223, allocations: 0 / 498.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003525/0.3259, allocations: 1.998 MB / 0.4888 GB, free: 13.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.808e-05/0.3259, allocations: 38.62 kB / 0.4888 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.326, allocations: 4 kB / 0.4888 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.3271, allocations: 450 kB / 0.4892 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.3282, allocations: 255.6 kB / 0.4895 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007935/0.3361, allocations: 6.581 MB / 0.4959 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008977/0.337, allocations: 79.86 kB / 0.496 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/0.3372, allocations: 47.98 kB / 0.496 GB, free: 6.098 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,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.0003324/0.3375, allocations: 252.9 kB / 0.4963 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.3376, allocations: 98.81 kB / 0.4964 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/0.3416, allocations: 2.157 MB / 0.4985 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3416, allocations: 16 kB / 0.4985 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.3416, allocations: 0 / 0.4985 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3416, allocations: 7.969 kB / 0.4985 GB, free: 3.543 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.006719/0.3484, allocations: 3.934 MB / 0.5023 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.649e-06/0.3484, allocations: 8.062 kB / 0.5024 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009031/0.3493, allocations: 211.7 kB / 0.5026 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.3509, allocations: 0.4973 MB / 0.503 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.004e-05/0.351, allocations: 35.98 kB / 0.5031 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009084/0.3601, allocations: 7.136 MB / 0.51 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3602, allocations: 4 kB / 0.51 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00548/0.3656, allocations: 3.08 MB / 0.5131 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006716/0.3663, allocations: 287.7 kB / 0.5133 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3665, allocations: 28 kB / 0.5134 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007211/0.3672, allocations: 71.92 kB / 0.5134 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/0.3676, allocations: 129 kB / 0.5135 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-05/0.3677, allocations: 48.17 kB / 0.5136 GB, free: 3.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004895/0.3682, allocations: 403 kB / 0.514 GB, free: 3.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.3682, allocations: 3.938 kB / 0.514 GB, free: 3.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001964/0.3702, allocations: 0.664 MB / 0.5146 GB, free: 2.52 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 (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.0002327/0.3704, allocations: 139.4 kB / 0.5148 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.2077/0.5781, allocations: 3.331 MB / 0.518 GB, free: 86.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.5781, allocations: 0.6875 kB / 0.518 GB, free: 86.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003558/0.5817, allocations: 1.315 MB / 0.5193 GB, free: 86.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/0.5835, allocations: 182 kB / 0.5195 GB, free: 86.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00653/0.59, allocations: 2.669 MB / 0.5221 GB, free: 85.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.5911, allocations: 1.263 MB / 0.5233 GB, free: 84.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00117/0.5923, allocations: 304.7 kB / 0.5236 GB, free: 84.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.5927, allocations: 83.86 kB / 0.5237 GB, free: 84.61 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.5927, allocations: 3.438 kB / 0.5237 GB, free: 84.61 MB / 398.1 MB Notification: Performance of Templates: time 0.0434/0.6361, allocations: 22.63 MB / 0.5458 GB, free: 69.44 MB / 398.1 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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)