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.001555/0.001554, allocations: 180.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.952/1.952, 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.001153/0.001153, allocations: 90.86 kB / 270.2 MB, free: 13.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2708/0.2708, allocations: 38.06 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006464/0.0006464, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1229, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.52/0.643, allocations: 99.59 MB / 0.5652 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.6434, allocations: 87.52 kB / 0.5652 GB, free: 0.5508 MB / 362.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.1865/0.8299, allocations: 52.13 MB / 0.6162 GB, free: 3.234 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8299, allocations: 0 / 0.6162 GB, free: 3.234 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.727e-05/0.83, allocations: 8 kB / 0.6162 GB, free: 3.227 MB / 410.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.001686/0.8317, allocations: 0.7371 MB / 0.6169 GB, free: 2.441 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.8317, allocations: 8.031 kB / 0.6169 GB, free: 2.434 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.8319, allocations: 82.52 kB / 0.617 GB, free: 2.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002299/0.8342, allocations: 131.2 kB / 0.6171 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008047/0.835, allocations: 330.3 kB / 0.6174 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.234e-05/0.8352, allocations: 54.69 kB / 0.6175 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/0.8353, allocations: 47.98 kB / 0.6175 GB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.8366, allocations: 0.5784 MB / 0.6181 GB, free: 1.102 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.8366, allocations: 3.938 kB / 0.6181 GB, free: 1.098 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.127e-05/0.8367, allocations: 19.98 kB / 0.6181 GB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/0.8369, allocations: 40.61 kB / 0.6181 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009847/0.8379, allocations: 382.2 kB / 0.6185 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.8419, allocations: 2.603 MB / 0.621 GB, free: 13.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.8431, allocations: 439.9 kB / 0.6215 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.8432, allocations: 4.062 kB / 0.6215 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.8432, allocations: 34.56 kB / 0.6215 GB, free: 13.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.557e-06/0.8432, allocations: 0 / 0.6215 GB, free: 13.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.002982/0.8462, allocations: 0.7616 MB / 0.6222 GB, free: 12.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.8464, allocations: 106.8 kB / 0.6223 GB, free: 12.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.8469, allocations: 283.9 kB / 0.6226 GB, free: 12.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.8469, allocations: 33.7 kB / 0.6226 GB, free: 12.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.8472, allocations: 294.2 kB / 0.6229 GB, free: 11.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.8473, allocations: 118.4 kB / 0.623 GB, free: 11.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.8474, allocations: 12 kB / 0.623 GB, free: 11.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8476, allocations: 330.8 kB / 0.6234 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003683/0.8479, allocations: 128.8 kB / 0.6235 GB, free: 11.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.8484, allocations: 276 kB / 0.6238 GB, free: 10.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.8489, allocations: 181.2 kB / 0.6239 GB, free: 10.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.849, allocations: 3.938 kB / 0.6239 GB, free: 10.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001509/0.8505, allocations: 0.5388 MB / 0.6245 GB, free: 10.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.8506, allocations: 12.53 kB / 0.6245 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.8506, allocations: 4 kB / 0.6245 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/0.8511, allocations: 128.7 kB / 0.6246 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.8516, allocations: 75.84 kB / 0.6247 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004108/0.8558, allocations: 2.385 MB / 0.627 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.8563, allocations: 43.53 kB / 0.627 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.8563, allocations: 16 kB / 0.6271 GB, free: 7.438 MB / 426.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 () * Number of clocked 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.0003947/0.8567, allocations: 213.5 kB / 0.6273 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.8569, allocations: 35.53 kB / 0.6273 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.857, allocations: 51.94 kB / 0.6273 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.857, allocations: 4 kB / 0.6273 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.8571, allocations: 4.062 kB / 0.6273 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.8571, allocations: 0 / 0.6273 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.8592, allocations: 0.9382 MB / 0.6283 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.8593, allocations: 0 / 0.6283 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.8596, allocations: 36.05 kB / 0.6283 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.86, allocations: 108.8 kB / 0.6284 GB, free: 5.977 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.8601, allocations: 15.95 kB / 0.6284 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.8641, allocations: 2.372 MB / 0.6307 GB, free: 3.445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.8641, allocations: 3.938 kB / 0.6307 GB, free: 3.441 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.8655, allocations: 0.6642 MB / 0.6314 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.8657, allocations: 112.7 kB / 0.6315 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/0.8658, allocations: 12.73 kB / 0.6315 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.8661, allocations: 12 kB / 0.6315 GB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.8662, allocations: 19.97 kB / 0.6315 GB, free: 2.551 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.8663, allocations: 8 kB / 0.6315 GB, free: 2.543 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003826/0.8666, allocations: 223 kB / 0.6318 GB, free: 2.328 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8667, allocations: 0 / 0.6318 GB, free: 2.328 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009601/0.8676, allocations: 163.6 kB / 0.6319 GB, free: 2.168 MB / 426.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 () * Number of clocked 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.001813/0.8695, allocations: 1.489 MB / 0.6334 GB, free: 0.6211 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.8709, allocations: 0.5035 MB / 0.6339 GB, free: 108 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.8709, allocations: 0 / 0.6339 GB, free: 108 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007992/0.8717, allocations: 354.6 kB / 0.6342 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006109/0.8723, allocations: 58.42 kB / 0.6343 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.8793, allocations: 5.657 MB / 0.6398 GB, free: 9.859 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000705/0.8801, allocations: 0.8941 MB / 0.6406 GB, free: 8.938 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/0.8803, allocations: 115.4 kB / 0.6408 GB, free: 8.824 MB / 442.7 MB Notification: Performance of SimCode: time 1.693e-06/0.8803, allocations: 0 / 0.6408 GB, free: 8.824 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.612, allocations: 7.763 MB / 0.6483 GB, free: 1.047 MB / 442.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)