Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 114 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00218/0.00218, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1745/0.1745, allocations: 37.97 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 71.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1427, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.009266/0.152, allocations: 7.57 MB / 494.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005958/0.158, allocations: 4.207 MB / 498.4 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00061/0.1586, allocations: 15.94 kB / 498.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002628/0.1613, allocations: 1.032 MB / 499.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.1643, allocations: 1.094 MB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009537/0.1652, allocations: 307.1 kB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002045/0.1673, allocations: 1.363 MB / 0.4904 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008888/0.1682, allocations: 460 kB / 0.4909 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.1693, allocations: 0.5678 MB / 0.4914 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.1705, allocations: 0.5799 MB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.1706, allocations: 36 kB / 0.492 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.1728, allocations: 0.9856 MB / 0.493 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000453/0.1733, allocations: 279.2 kB / 0.4932 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004438/0.1737, allocations: 246.8 kB / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001946/0.1757, allocations: 0.8102 MB / 0.4943 GB, free: 5.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1757, allocations: 0 / 0.4943 GB, free: 5.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1757, allocations: 0 / 0.4943 GB, free: 5.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.1757, allocations: 0 / 0.4943 GB, free: 5.23 MB / 382.1 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.001515/0.1772, allocations: 0.8078 MB / 0.4951 GB, free: 4.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.1773, allocations: 15.89 kB / 0.4951 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1774, allocations: 78.7 kB / 0.4952 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.179, allocations: 132.3 kB / 0.4953 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006185/0.1796, allocations: 334.4 kB / 0.4956 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.051e-05/0.1797, allocations: 29.36 kB / 0.4956 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.365e-05/0.1798, allocations: 48.36 kB / 0.4957 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009678/0.1807, allocations: 0.5789 MB / 0.4962 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.1808, allocations: 4 kB / 0.4962 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.1808, allocations: 12 kB / 0.4963 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-05/0.1809, allocations: 36.62 kB / 0.4963 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006934/0.1816, allocations: 394.1 kB / 0.4967 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002821/0.1844, allocations: 2.584 MB / 0.4992 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.1851, allocations: 431.7 kB / 0.4996 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.1855, allocations: 218.4 kB / 0.4998 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.1855, allocations: 8 kB / 0.4998 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.1856, allocations: 34.56 kB / 0.4998 GB, free: 15.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.463e-06/0.1856, allocations: 0 / 0.4998 GB, free: 15.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001733/0.1873, allocations: 0.7686 MB / 0.5006 GB, free: 14.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.647e-05/0.1874, allocations: 110.8 kB / 0.5007 GB, free: 14.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.1878, allocations: 328.8 kB / 0.501 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1878, allocations: 29.7 kB / 0.501 GB, free: 13.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.188, allocations: 243.8 kB / 0.5013 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1882, allocations: 122.3 kB / 0.5014 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.1883, allocations: 78.14 kB / 0.5015 GB, free: 13.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1885, allocations: 346.8 kB / 0.5018 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1887, allocations: 124.8 kB / 0.5019 GB, free: 12.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.189, allocations: 283.4 kB / 0.5022 GB, free: 12.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00058/0.1896, allocations: 460.1 kB / 0.5026 GB, free: 12.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1896, allocations: 0 / 0.5026 GB, free: 12.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008977/0.1905, allocations: 0.5692 MB / 0.5032 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1905, allocations: 8 kB / 0.5032 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.1905, allocations: 8 kB / 0.5032 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004024/0.1909, allocations: 112.8 kB / 0.5033 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.1912, allocations: 71.91 kB / 0.5034 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.194, allocations: 2.571 MB / 0.5059 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1942, allocations: 47.53 kB / 0.5059 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.1943, allocations: 23.98 kB / 0.506 GB, free: 8.547 MB / 398.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002364/0.1945, allocations: 193.7 kB / 0.5061 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.922e-05/0.1946, allocations: 35.53 kB / 0.5062 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.634e-05/0.1947, allocations: 56.02 kB / 0.5062 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.1947, allocations: 4 kB / 0.5062 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.1947, allocations: 3.938 kB / 0.5062 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.1947, allocations: 7.984 kB / 0.5062 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.1963, allocations: 0.9377 MB / 0.5072 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1963, allocations: 0 / 0.5072 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.1965, allocations: 35.92 kB / 0.5072 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/0.1968, allocations: 117 kB / 0.5073 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.1968, allocations: 4 kB / 0.5073 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003268/0.2001, allocations: 2.552 MB / 0.5098 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.2001, allocations: 4.031 kB / 0.5098 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008926/0.201, allocations: 0.6304 MB / 0.5104 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.2011, allocations: 112.7 kB / 0.5105 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.2012, allocations: 11.94 kB / 0.5105 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.2014, allocations: 8 kB / 0.5105 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.743e-05/0.2014, allocations: 31.89 kB / 0.5106 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.2015, allocations: 12 kB / 0.5106 GB, free: 3.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002966/0.2018, allocations: 223 kB / 0.5108 GB, free: 3.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2018, allocations: 0 / 0.5108 GB, free: 3.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007377/0.2025, allocations: 155.8 kB / 0.5109 GB, free: 3.152 MB / 398.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001021/0.2036, allocations: 1.156 MB / 0.5121 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008639/0.2044, allocations: 0.5223 MB / 0.5126 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2045, allocations: 4 kB / 0.5126 GB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004808/0.2049, allocations: 338.7 kB / 0.5129 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005808/0.2055, allocations: 65.69 kB / 0.513 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005313/0.2109, allocations: 3.989 MB / 0.5169 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.2114, allocations: 0.8824 MB / 0.5177 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.2116, allocations: 78.89 kB / 0.5178 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.2118, allocations: 115.4 kB / 0.5179 GB, free: 11.68 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2118, allocations: 0 / 0.5179 GB, free: 11.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.2422, allocations: 7.751 MB / 0.5255 GB, free: 3.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.179/9.421, allocations: 7.938 kB / 0.5255 GB, free: 3.871 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1)