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.001545/0.001544, allocations: 181.8 kB / 15.76 MB, free: 6.344 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.915/1.915, allocations: 205.4 MB / 221.9 MB, free: 13.69 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.001118/0.001118, allocations: 86.88 kB / 270.2 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2478/0.2478, allocations: 38.06 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004824/0.0004824, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1156, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4874/0.6031, allocations: 104.3 MB / 0.5697 GB, free: 11.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.6035, allocations: 92.38 kB / 0.5698 GB, free: 11.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2652/0.8688, allocations: 67.64 MB / 0.6359 GB, free: 15.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.8689, allocations: 0 / 0.6359 GB, free: 15.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.272e-05/0.869, allocations: 20 kB / 0.6359 GB, free: 15.24 MB / 442.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.005471/0.8744, allocations: 1.508 MB / 0.6374 GB, free: 13.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.8745, allocations: 12.03 kB / 0.6374 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006992/0.8752, allocations: 173.5 kB / 0.6376 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006499/0.8817, allocations: 0.49 MB / 0.638 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002503/0.8843, allocations: 0.699 MB / 0.6387 GB, free: 12.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.8845, allocations: 86.11 kB / 0.6388 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004797/0.885, allocations: 115.9 kB / 0.6389 GB, free: 12.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005318/0.8903, allocations: 1.577 MB / 0.6404 GB, free: 10.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.8905, allocations: 4 kB / 0.6405 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000217/0.8907, allocations: 47.98 kB / 0.6405 GB, free: 10.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005917/0.8913, allocations: 118.2 kB / 0.6406 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006111/0.8974, allocations: 1.605 MB / 0.6422 GB, free: 8.625 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.9136, allocations: 4.949 MB / 0.647 GB, free: 3.547 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004446/0.9181, allocations: 1.341 MB / 0.6483 GB, free: 2.184 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002448/0.9184, allocations: 32.91 kB / 0.6484 GB, free: 2.152 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002811/0.9212, allocations: 0.8256 MB / 0.6492 GB, free: 1.312 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 7.905e-06/0.9213, allocations: 3.984 kB / 0.6492 GB, free: 1.309 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.02349/0.9448, allocations: 5.937 MB / 0.655 GB, free: 11.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.9449, allocations: 120.1 kB / 0.6551 GB, free: 11.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.9461, allocations: 0.4993 MB / 0.6556 GB, free: 10.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003706/0.9465, allocations: 53.7 kB / 0.6556 GB, free: 10.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005392/0.947, allocations: 494.7 kB / 0.6561 GB, free: 10.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/0.9479, allocations: 473.2 kB / 0.6565 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.948, allocations: 24 kB / 0.6566 GB, free: 9.559 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.9482, allocations: 362.8 kB / 0.6569 GB, free: 9.195 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/0.9504, allocations: 0.6038 MB / 0.6575 GB, free: 8.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002421/0.9529, allocations: 0.7603 MB / 0.6582 GB, free: 7.789 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.9555, allocations: 0.7186 MB / 0.6589 GB, free: 7.066 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.9556, allocations: 4 kB / 0.6589 GB, free: 7.062 MB / 458.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007543/0.9631, allocations: 2.006 MB / 0.6609 GB, free: 5.035 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005962/0.9638, allocations: 1.168 MB / 0.662 GB, free: 3.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.9638, allocations: 4 kB / 0.662 GB, free: 3.766 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00254/0.9664, allocations: 469.3 kB / 0.6625 GB, free: 3.301 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/0.9688, allocations: 267.6 kB / 0.6628 GB, free: 3.039 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.9808, allocations: 5.049 MB / 0.6677 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.9829, allocations: 111.9 kB / 0.6678 GB, free: 13.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003232/0.9833, allocations: 47.98 kB / 0.6678 GB, free: 13.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.9834, allocations: 4 kB / 0.6678 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00709/0.9905, allocations: 1.868 MB / 0.6697 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.9905, allocations: 4.094 kB / 0.6697 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.9926, allocations: 406.3 kB / 0.6701 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002405/0.9951, allocations: 275.6 kB / 0.6703 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/1.009, allocations: 6.205 MB / 0.6764 GB, free: 4.594 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/1.01, allocations: 91.89 kB / 0.6765 GB, free: 4.504 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/1.01, allocations: 47.94 kB / 0.6765 GB, free: 4.457 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 () * 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.001102/1.012, allocations: 436.8 kB / 0.6769 GB, free: 4.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/1.012, allocations: 94.88 kB / 0.677 GB, free: 3.926 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00826/1.02, allocations: 2.153 MB / 0.6791 GB, free: 1.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/1.02, allocations: 16 kB / 0.6791 GB, free: 1.734 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.02, allocations: 3.938 kB / 0.6791 GB, free: 1.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.427e-05/1.02, allocations: 7.969 kB / 0.6791 GB, free: 1.723 MB / 474.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.01333/1.034, allocations: 3.951 MB / 0.683 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/1.034, allocations: 7.938 kB / 0.683 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.036, allocations: 223.7 kB / 0.6832 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003163/1.039, allocations: 0.5054 MB / 0.6837 GB, free: 12.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003308/1.039, allocations: 32.19 kB / 0.6837 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/1.055, allocations: 6.711 MB / 0.6903 GB, free: 5.879 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/1.055, allocations: 8.188 kB / 0.6903 GB, free: 5.871 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/1.066, allocations: 3.193 MB / 0.6934 GB, free: 2.559 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.067, allocations: 295.7 kB / 0.6937 GB, free: 2.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/1.067, allocations: 28 kB / 0.6937 GB, free: 2.223 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/1.069, allocations: 95.89 kB / 0.6938 GB, free: 2.129 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004694/1.07, allocations: 129 kB / 0.694 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.07, allocations: 43.98 kB / 0.694 GB, free: 1.961 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008716/1.071, allocations: 399 kB / 0.6944 GB, free: 1.574 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.071, allocations: 0 / 0.6944 GB, free: 1.574 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003174/1.074, allocations: 0.6835 MB / 0.695 GB, free: 0.8906 MB / 490.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 (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.01127/1.085, allocations: 4.468 MB / 0.6994 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01012/1.095, allocations: 3.16 MB / 0.7025 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/1.095, allocations: 0 / 0.7025 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004812/1.1, allocations: 1.302 MB / 0.7038 GB, free: 7.773 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/1.102, allocations: 153.4 kB / 0.7039 GB, free: 7.625 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3473/1.45, allocations: 9.788 MB / 0.7135 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001348/1.451, allocations: 1.283 MB / 0.7147 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.452, allocations: 440.8 kB / 0.7151 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/1.452, allocations: 6.219 kB / 0.7151 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.126/4.578, allocations: 27.47 MB / 0.742 GB, free: 137 MB / 0.4948 GB (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)