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.001421/0.001421, allocations: 180.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 86.31 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2581/0.2581, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.86e-05/1.859e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 56.32 MB / 466.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4746/0.5804, allocations: 98.84 MB / 0.5519 GB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.5808, allocations: 80.7 kB / 0.5519 GB, free: 10.09 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.1776/0.7584, allocations: 51.61 MB / 0.6023 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.7584, allocations: 3.938 kB / 0.6023 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.956e-05/0.7585, allocations: 12 kB / 0.6023 GB, free: 0.5039 MB / 394.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.001609/0.7601, allocations: 0.6787 MB / 0.603 GB, free: 15.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.7602, allocations: 12.03 kB / 0.603 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002295/0.7625, allocations: 123.3 kB / 0.6031 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008408/0.7633, allocations: 338.1 kB / 0.6035 GB, free: 15.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.917e-05/0.7634, allocations: 43.02 kB / 0.6035 GB, free: 15.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.7635, allocations: 20 kB / 0.6035 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008537/0.7644, allocations: 298.5 kB / 0.6038 GB, free: 14.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.7655, allocations: 0.5102 MB / 0.6043 GB, free: 14.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.7656, allocations: 3.938 kB / 0.6043 GB, free: 14.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.7656, allocations: 11.98 kB / 0.6043 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001538/0.7658, allocations: 40.75 kB / 0.6044 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003715/0.7695, allocations: 2.521 MB / 0.6068 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009966/0.7706, allocations: 404 kB / 0.6072 GB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000427/0.771, allocations: 206.4 kB / 0.6074 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.771, allocations: 4 kB / 0.6074 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.7711, allocations: 42.5 kB / 0.6074 GB, free: 10.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 6.883e-06/0.7711, allocations: 4 kB / 0.6075 GB, free: 10.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.001182/0.7723, allocations: 398.2 kB / 0.6078 GB, free: 10.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.7724, allocations: 110.8 kB / 0.6079 GB, free: 10.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.7728, allocations: 249.1 kB / 0.6082 GB, free: 10.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.7728, allocations: 25.7 kB / 0.6082 GB, free: 10.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.7731, allocations: 310.2 kB / 0.6085 GB, free: 9.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.7733, allocations: 114.3 kB / 0.6086 GB, free: 9.738 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.992e-05/0.7733, allocations: 0 / 0.6086 GB, free: 9.738 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.7735, allocations: 330.8 kB / 0.6089 GB, free: 9.406 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.7738, allocations: 112.8 kB / 0.609 GB, free: 9.293 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.7744, allocations: 267.2 kB / 0.6093 GB, free: 8.961 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.7748, allocations: 161.2 kB / 0.6094 GB, free: 8.805 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.7748, allocations: 7.938 kB / 0.6094 GB, free: 8.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001291/0.7761, allocations: 495.8 kB / 0.6099 GB, free: 8.305 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.7762, allocations: 8 kB / 0.6099 GB, free: 8.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.7762, allocations: 4.594 kB / 0.6099 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004977/0.7767, allocations: 116.8 kB / 0.61 GB, free: 8.176 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.7772, allocations: 71.91 kB / 0.6101 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/0.7808, allocations: 2.252 MB / 0.6123 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004206/0.7813, allocations: 35.66 kB / 0.6123 GB, free: 5.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.237e-05/0.7814, allocations: 20 kB / 0.6124 GB, free: 5.676 MB / 410.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.0001548/0.7815, allocations: 116.8 kB / 0.6125 GB, free: 5.555 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001041/0.7826, allocations: 401.9 kB / 0.6129 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.7827, allocations: 35.56 kB / 0.6129 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.7828, allocations: 47.58 kB / 0.6129 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.7829, allocations: 4 kB / 0.6129 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.7829, allocations: 0 / 0.6129 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.7829, allocations: 11.94 kB / 0.6129 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.7848, allocations: 0.8495 MB / 0.6138 GB, free: 4.152 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.7848, allocations: 0 / 0.6138 GB, free: 4.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.7851, allocations: 35.92 kB / 0.6138 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004418/0.7856, allocations: 104.8 kB / 0.6139 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.7856, allocations: 64 / 0.6139 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00351/0.7891, allocations: 2.248 MB / 0.6161 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.7892, allocations: 7.969 kB / 0.6161 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.7904, allocations: 0.6372 MB / 0.6167 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.7906, allocations: 112.7 kB / 0.6168 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.494e-05/0.7907, allocations: 0 / 0.6168 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.791, allocations: 7.984 kB / 0.6169 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.7911, allocations: 27.92 kB / 0.6169 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.7911, allocations: 4 kB / 0.6169 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002822/0.7914, allocations: 188.6 kB / 0.6171 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7914, allocations: 4 kB / 0.6171 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009667/0.7924, allocations: 143.7 kB / 0.6172 GB, free: 456 kB / 410.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.001608/0.794, allocations: 1.449 MB / 0.6186 GB, free: 14.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.7952, allocations: 482.2 kB / 0.6191 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.7953, allocations: 3.938 kB / 0.6191 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.796, allocations: 326.7 kB / 0.6194 GB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.7966, allocations: 45.14 kB / 0.6194 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.7987, allocations: 0.7386 MB / 0.6202 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.7993, allocations: 0.8896 MB / 0.621 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.7996, allocations: 123.4 kB / 0.6211 GB, free: 12.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7996, allocations: 0 / 0.6211 GB, free: 12.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.905/3.705, allocations: 7.747 MB / 0.6287 GB, free: 4.488 MB / 426.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)