Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.002229, allocations: 185.3 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 91.86 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2771/0.2771, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.104e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 56.32 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4925/0.6, allocations: 104.2 MB / 0.5638 GB, free: 15.53 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/0.6004, allocations: 91.92 kB / 0.5639 GB, free: 15.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3042/0.9047, allocations: 67.26 MB / 0.6295 GB, free: 11.48 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.9047, allocations: 0 / 0.6295 GB, free: 11.48 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.814e-05/0.9048, allocations: 28 kB / 0.6296 GB, free: 11.45 MB / 474.7 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.00503/0.9099, allocations: 1.403 MB / 0.6309 GB, free: 9.988 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.91, allocations: 12.03 kB / 0.631 GB, free: 9.977 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006245/0.9162, allocations: 489.8 kB / 0.6314 GB, free: 9.496 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.9187, allocations: 0.6952 MB / 0.6321 GB, free: 8.758 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.9189, allocations: 82.16 kB / 0.6322 GB, free: 8.676 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004728/0.9194, allocations: 115.8 kB / 0.6323 GB, free: 8.562 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00477/0.9242, allocations: 1.51 MB / 0.6338 GB, free: 6.992 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.183e-05/0.9243, allocations: 11.98 kB / 0.6338 GB, free: 6.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002068/0.9246, allocations: 43.98 kB / 0.6338 GB, free: 6.938 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005405/0.9251, allocations: 118.2 kB / 0.6339 GB, free: 6.82 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00486/0.93, allocations: 1.469 MB / 0.6354 GB, free: 5.344 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01538/0.9454, allocations: 4.949 MB / 0.6402 GB, free: 264 kB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3147/1.26, allocations: 1.205 MB / 0.6414 GB, free: 112.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002013/1.262, allocations: 0.7366 MB / 0.6421 GB, free: 112.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001762/1.262, allocations: 24.61 kB / 0.6421 GB, free: 112.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002165/1.265, allocations: 0.7664 MB / 0.6429 GB, free: 112.1 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 7.154e-06/1.265, allocations: 1.75 kB / 0.6429 GB, free: 112.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.0156/1.28, allocations: 4.766 MB / 0.6475 GB, free: 111.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/1.28, allocations: 121.9 kB / 0.6476 GB, free: 111.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/1.282, allocations: 0.4968 MB / 0.6481 GB, free: 111.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000332/1.282, allocations: 53.72 kB / 0.6482 GB, free: 111.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004313/1.282, allocations: 495.9 kB / 0.6486 GB, free: 110.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007752/1.283, allocations: 468.2 kB / 0.6491 GB, free: 110.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/1.283, allocations: 25.78 kB / 0.6491 GB, free: 110.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/1.283, allocations: 364 kB / 0.6495 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/1.285, allocations: 0.5465 MB / 0.65 GB, free: 110.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001902/1.287, allocations: 0.7008 MB / 0.6507 GB, free: 110.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/1.289, allocations: 0.67 MB / 0.6513 GB, free: 110.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/1.289, allocations: 2.938 kB / 0.6513 GB, free: 110.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007432/1.296, allocations: 2.067 MB / 0.6534 GB, free: 109.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002977/1.297, allocations: 1.171 MB / 0.6545 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/1.297, allocations: 3.188 kB / 0.6545 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003871/1.301, allocations: 0.7164 MB / 0.6552 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.303, allocations: 228.9 kB / 0.6554 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003196/1.306, allocations: 1.575 MB / 0.657 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/1.308, allocations: 112.6 kB / 0.6571 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/1.308, allocations: 45.98 kB / 0.6571 GB, free: 108.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/1.308, allocations: 5 kB / 0.6571 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007064/1.316, allocations: 1.972 MB / 0.659 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/1.316, allocations: 3.438 kB / 0.659 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003363/1.319, allocations: 0.6075 MB / 0.6596 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/1.321, allocations: 230.6 kB / 0.6599 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.335, allocations: 5.706 MB / 0.6654 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/1.337, allocations: 99.36 kB / 0.6655 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/1.337, allocations: 46.7 kB / 0.6656 GB, free: 106.4 MB / 474.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 57} Notification: Performance of prepare postOptimizeDAE: time 0.0004226/1.338, allocations: 168 kB / 0.6657 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/1.338, allocations: 96.59 kB / 0.6658 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006332/1.344, allocations: 2.041 MB / 0.6678 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/1.345, allocations: 14.72 kB / 0.6678 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/1.345, allocations: 0 / 0.6678 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.959e-05/1.345, allocations: 11.22 kB / 0.6678 GB, free: 106.1 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01076/1.355, allocations: 3.818 MB / 0.6716 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/1.355, allocations: 3.906 kB / 0.6716 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/1.357, allocations: 223 kB / 0.6718 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/1.36, allocations: 491.5 kB / 0.6723 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/1.36, allocations: 39.92 kB / 0.6723 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01246/1.373, allocations: 6.516 MB / 0.6787 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.373, allocations: 0 / 0.6787 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007671/1.38, allocations: 3.004 MB / 0.6816 GB, free: 100 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009607/1.381, allocations: 290.5 kB / 0.6819 GB, free: 99.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/1.382, allocations: 31.56 kB / 0.6819 GB, free: 99.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/1.383, allocations: 94.02 kB / 0.682 GB, free: 99.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/1.384, allocations: 123.8 kB / 0.6821 GB, free: 99.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.384, allocations: 45.84 kB / 0.6821 GB, free: 99.78 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006711/1.385, allocations: 398.3 kB / 0.6825 GB, free: 99.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.385, allocations: 4 kB / 0.6825 GB, free: 99.59 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002848/1.387, allocations: 0.6449 MB / 0.6832 GB, free: 99.53 MB / 474.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) * 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.0003732/1.388, allocations: 152.4 kB / 0.6833 GB, free: 99.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007381/1.395, allocations: 2.758 MB / 0.686 GB, free: 98.27 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.395, allocations: 0 / 0.686 GB, free: 98.27 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00326/1.399, allocations: 1.225 MB / 0.6872 GB, free: 97.65 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/1.4, allocations: 156.3 kB / 0.6873 GB, free: 97.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006065/1.406, allocations: 2.274 MB / 0.6896 GB, free: 96.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/1.407, allocations: 1.276 MB / 0.6908 GB, free: 95.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006461/1.408, allocations: 80.47 kB / 0.6909 GB, free: 95.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/1.408, allocations: 0 / 0.6909 GB, free: 95.8 MB / 474.7 MB Notification: Performance of Templates: time 0.0369/1.445, allocations: 20.08 MB / 0.7105 GB, free: 94.88 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)