Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 184.2 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001151, allocations: 84.52 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2807/0.2807, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/5.683e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 56.31 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5419/0.6446, allocations: 104.2 MB / 0.5639 GB, free: 15.38 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/0.6449, allocations: 83.95 kB / 0.564 GB, free: 15.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2791/0.9241, allocations: 67.27 MB / 0.6296 GB, free: 11.33 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.9242, allocations: 0 / 0.6296 GB, free: 11.33 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.744e-05/0.9243, allocations: 24 kB / 0.6297 GB, free: 11.3 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.004827/0.9291, allocations: 1.407 MB / 0.631 GB, free: 9.84 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.9292, allocations: 8.031 kB / 0.631 GB, free: 9.832 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005492/0.9297, allocations: 177.5 kB / 0.6312 GB, free: 9.648 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006165/0.9359, allocations: 497.8 kB / 0.6317 GB, free: 9.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.9384, allocations: 0.6951 MB / 0.6324 GB, free: 8.422 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.9386, allocations: 86.11 kB / 0.6325 GB, free: 8.336 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004515/0.9391, allocations: 112 kB / 0.6326 GB, free: 8.227 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004503/0.9436, allocations: 1.51 MB / 0.634 GB, free: 6.656 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-05/0.9437, allocations: 7.906 kB / 0.634 GB, free: 6.648 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.9439, allocations: 43.98 kB / 0.6341 GB, free: 6.605 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005695/0.9445, allocations: 126.2 kB / 0.6342 GB, free: 6.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004394/0.9489, allocations: 1.473 MB / 0.6356 GB, free: 5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3341/1.283, allocations: 4.935 MB / 0.6405 GB, free: 111.1 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003519/1.287, allocations: 1.21 MB / 0.6416 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002182/1.289, allocations: 0.7404 MB / 0.6424 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001702/1.289, allocations: 22.48 kB / 0.6424 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002197/1.291, allocations: 0.7721 MB / 0.6431 GB, free: 110.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 5.872e-06/1.291, allocations: 0 / 0.6431 GB, free: 110.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01612/1.307, allocations: 4.764 MB / 0.6478 GB, free: 110.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/1.308, allocations: 120.1 kB / 0.6479 GB, free: 110 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/1.309, allocations: 0.502 MB / 0.6484 GB, free: 109.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003383/1.309, allocations: 50.33 kB / 0.6484 GB, free: 109.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004546/1.31, allocations: 0.4897 MB / 0.6489 GB, free: 109.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007675/1.31, allocations: 463.2 kB / 0.6494 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/1.311, allocations: 24.25 kB / 0.6494 GB, free: 109.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/1.311, allocations: 368 kB / 0.6497 GB, free: 109 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001667/1.312, allocations: 0.5428 MB / 0.6503 GB, free: 109 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001975/1.314, allocations: 0.7055 MB / 0.651 GB, free: 108.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/1.317, allocations: 0.6702 MB / 0.6516 GB, free: 108.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/1.317, allocations: 3.5 kB / 0.6516 GB, free: 108.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007717/1.324, allocations: 2.066 MB / 0.6536 GB, free: 108.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003097/1.325, allocations: 1.167 MB / 0.6548 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/1.325, allocations: 8.531 kB / 0.6548 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004044/1.329, allocations: 0.7142 MB / 0.6555 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/1.331, allocations: 232.7 kB / 0.6557 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/1.334, allocations: 1.568 MB / 0.6572 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/1.336, allocations: 107.9 kB / 0.6573 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002783/1.337, allocations: 49.22 kB / 0.6574 GB, free: 106.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/1.337, allocations: 8.031 kB / 0.6574 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007118/1.344, allocations: 1.978 MB / 0.6593 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/1.344, allocations: 2.5 kB / 0.6593 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00351/1.347, allocations: 0.604 MB / 0.6599 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002074/1.35, allocations: 227.9 kB / 0.6601 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01471/1.364, allocations: 5.698 MB / 0.6657 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/1.366, allocations: 101.7 kB / 0.6658 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/1.366, allocations: 45.72 kB / 0.6658 GB, free: 105.1 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.0004625/1.367, allocations: 171 kB / 0.666 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00038/1.367, allocations: 95.42 kB / 0.6661 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006666/1.374, allocations: 2.044 MB / 0.6681 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/1.374, allocations: 15.25 kB / 0.6681 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/1.374, allocations: 3.906 kB / 0.6681 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.495e-05/1.374, allocations: 7.547 kB / 0.6681 GB, free: 104.9 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.01062/1.385, allocations: 3.816 MB / 0.6718 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.385, allocations: 3.781 kB / 0.6718 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/1.387, allocations: 222.1 kB / 0.6721 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002506/1.389, allocations: 491.5 kB / 0.6725 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000298/1.39, allocations: 40.03 kB / 0.6726 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/1.402, allocations: 6.515 MB / 0.6789 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.402, allocations: 6.562 kB / 0.6789 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007721/1.41, allocations: 3.002 MB / 0.6819 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.411, allocations: 292.8 kB / 0.6821 GB, free: 98.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/1.411, allocations: 28.08 kB / 0.6822 GB, free: 98.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/1.413, allocations: 99.78 kB / 0.6823 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004236/1.413, allocations: 118.4 kB / 0.6824 GB, free: 98.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/1.413, allocations: 51.38 kB / 0.6824 GB, free: 98.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006825/1.414, allocations: 387.3 kB / 0.6828 GB, free: 98.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.414, allocations: 0 / 0.6828 GB, free: 98.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002978/1.417, allocations: 0.6468 MB / 0.6834 GB, free: 98.55 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.008374/1.426, allocations: 4.283 MB / 0.6876 GB, free: 95.94 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007579/1.433, allocations: 2.758 MB / 0.6903 GB, free: 94.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.433, allocations: 0 / 0.6903 GB, free: 94.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003215/1.437, allocations: 1.228 MB / 0.6915 GB, free: 94.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/1.438, allocations: 158.2 kB / 0.6917 GB, free: 94.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007692/1.446, allocations: 2.567 MB / 0.6942 GB, free: 92.99 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/1.447, allocations: 1.278 MB / 0.6954 GB, free: 92.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/1.448, allocations: 440.1 kB / 0.6958 GB, free: 91.89 MB / 474.7 MB Notification: Performance of SimCode: time 1.983e-06/1.448, allocations: 0 / 0.6958 GB, free: 91.89 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.067/4.515, allocations: 25.7 MB / 0.7209 GB, free: 87.51 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)