Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.002404/0.002404, allocations: 184.9 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 2.179/2.179, 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.001135/0.001134, allocations: 93.27 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2639/0.2639, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.936e-05/5.944e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.5906, allocations: 99.5 MB / 0.5593 GB, free: 4.184 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003512/0.591, allocations: 87.94 kB / 0.5594 GB, free: 4.098 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:436:7-436:61:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1898/0.7808, allocations: 51.82 MB / 0.61 GB, free: 15.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7808, allocations: 0 / 0.61 GB, free: 15.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.7809, allocations: 8 kB / 0.61 GB, free: 15.31 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001467/0.7824, allocations: 0.694 MB / 0.6107 GB, free: 14.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.7824, allocations: 8.031 kB / 0.6107 GB, free: 14.56 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.7826, allocations: 86.5 kB / 0.6107 GB, free: 14.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002248/0.7848, allocations: 115.4 kB / 0.6109 GB, free: 14.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008153/0.7857, allocations: 334.2 kB / 0.6112 GB, free: 13.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-05/0.7858, allocations: 54.69 kB / 0.6112 GB, free: 13.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/0.7859, allocations: 47.91 kB / 0.6113 GB, free: 13.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.7873, allocations: 0.5791 MB / 0.6118 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.7873, allocations: 0 / 0.6118 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.087e-05/0.7874, allocations: 15.98 kB / 0.6119 GB, free: 13.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/0.7875, allocations: 48.69 kB / 0.6119 GB, free: 13.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.7887, allocations: 374.7 kB / 0.6123 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004194/0.7929, allocations: 2.608 MB / 0.6148 GB, free: 10.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.7941, allocations: 424 kB / 0.6152 GB, free: 9.621 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005026/0.7946, allocations: 206.6 kB / 0.6154 GB, free: 9.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.7947, allocations: 4 kB / 0.6154 GB, free: 9.406 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.7947, allocations: 42.5 kB / 0.6154 GB, free: 9.355 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 3.566e-06/0.7947, allocations: 4 kB / 0.6154 GB, free: 9.352 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.001417/0.7962, allocations: 430.2 kB / 0.6159 GB, free: 8.922 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.261e-05/0.7963, allocations: 114.7 kB / 0.616 GB, free: 8.785 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005152/0.7968, allocations: 278.8 kB / 0.6162 GB, free: 8.508 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.7969, allocations: 33.7 kB / 0.6163 GB, free: 8.469 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.7971, allocations: 290.3 kB / 0.6165 GB, free: 8.184 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.7973, allocations: 126.2 kB / 0.6167 GB, free: 8.059 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.7974, allocations: 11.94 kB / 0.6167 GB, free: 8.047 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.7975, allocations: 330.8 kB / 0.617 GB, free: 7.715 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.7979, allocations: 124.8 kB / 0.6171 GB, free: 7.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.7984, allocations: 268.1 kB / 0.6174 GB, free: 7.258 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.7989, allocations: 181.2 kB / 0.6175 GB, free: 7.082 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.7989, allocations: 0 / 0.6175 GB, free: 7.082 MB / 458.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001538/0.8005, allocations: 0.5313 MB / 0.6181 GB, free: 6.543 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.8005, allocations: 13.98 kB / 0.6181 GB, free: 6.531 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.8006, allocations: 4 kB / 0.6181 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005541/0.8011, allocations: 124.7 kB / 0.6182 GB, free: 6.402 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.8016, allocations: 72.22 kB / 0.6183 GB, free: 6.332 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/0.8058, allocations: 2.348 MB / 0.6206 GB, free: 3.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004448/0.8063, allocations: 43.53 kB / 0.6206 GB, free: 3.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.8064, allocations: 20 kB / 0.6206 GB, free: 3.777 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.8065, allocations: 134.8 kB / 0.6207 GB, free: 3.641 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.8067, allocations: 39.53 kB / 0.6208 GB, free: 3.602 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.8068, allocations: 48.08 kB / 0.6208 GB, free: 3.551 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.056e-06/0.8068, allocations: 4 kB / 0.6208 GB, free: 3.547 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.8069, allocations: 4 kB / 0.6208 GB, free: 3.543 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.8069, allocations: 3.984 kB / 0.6208 GB, free: 3.539 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.809, allocations: 0.9265 MB / 0.6217 GB, free: 2.547 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.8091, allocations: 0 / 0.6217 GB, free: 2.547 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.8094, allocations: 36.08 kB / 0.6218 GB, free: 2.512 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004473/0.8098, allocations: 112.7 kB / 0.6219 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.8099, allocations: 12 kB / 0.6219 GB, free: 2.387 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/0.8138, allocations: 2.329 MB / 0.6242 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.8138, allocations: 11.97 kB / 0.6242 GB, free: 15.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.8151, allocations: 0.6681 MB / 0.6248 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.8153, allocations: 116.7 kB / 0.6249 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.8154, allocations: 8 kB / 0.625 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.8157, allocations: 8 kB / 0.625 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.018e-05/0.8158, allocations: 23.97 kB / 0.625 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.8158, allocations: 7.953 kB / 0.625 GB, free: 15 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003927/0.8162, allocations: 222.2 kB / 0.6252 GB, free: 14.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8163, allocations: 4 kB / 0.6252 GB, free: 14.78 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009175/0.8172, allocations: 159.7 kB / 0.6254 GB, free: 14.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001759/0.819, allocations: 1.473 MB / 0.6268 GB, free: 13.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.8204, allocations: 0.5036 MB / 0.6273 GB, free: 12.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8204, allocations: 0 / 0.6273 GB, free: 12.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007583/0.8212, allocations: 342.4 kB / 0.6276 GB, free: 12.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005831/0.8218, allocations: 53.58 kB / 0.6277 GB, free: 12.18 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.8239, allocations: 0.7827 MB / 0.6284 GB, free: 11.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007159/0.8247, allocations: 0.8941 MB / 0.6293 GB, free: 10.42 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.825, allocations: 119.4 kB / 0.6294 GB, free: 10.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/0.825, allocations: 0 / 0.6294 GB, free: 10.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.792/3.617, allocations: 7.891 MB / 0.6371 GB, free: 2.395 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)