Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.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: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 114.4 kB / 17.69 MB, free: 5.297 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.001937/0.001937, allocations: 191 kB / 18.63 MB, free: 4.363 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.347/1.347, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1757/0.1757, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.0014/0.0014, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2126, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004039/0.2167, allocations: 3.623 MB / 435.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.2185, allocations: 1.727 MB / 437.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2186, allocations: 4 kB / 437.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006593/0.2193, allocations: 238.9 kB / 437.6 MB, free: 13.89 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.2197, allocations: 267 kB / 437.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.22, allocations: 179.5 kB / 438 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003249/0.2204, allocations: 434.9 kB / 438.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.2206, allocations: 185.6 kB / 438.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.2209, allocations: 187.2 kB / 438.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2211, allocations: 175.4 kB / 439 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.2212, allocations: 28 kB / 439 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003454/0.2215, allocations: 319.3 kB / 439.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2216, allocations: 119.7 kB / 439.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.2217, allocations: 151.1 kB / 439.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.2222, allocations: 0.5198 MB / 440.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2222, allocations: 0 / 440.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2222, allocations: 0 / 440.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.2222, allocations: 0 / 440.1 MB, free: 11.37 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006424/0.2228, allocations: 0.6177 MB / 440.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.2229, allocations: 15.83 kB / 440.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006607/0.2235, allocations: 96.47 kB / 440.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000416/0.224, allocations: 375.6 kB / 441.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.224, allocations: 12.75 kB / 441.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.163e-05/0.224, allocations: 24.12 kB / 441.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000439/0.2245, allocations: 356.6 kB / 441.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2245, allocations: 0 / 441.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.2245, allocations: 12 kB / 441.6 MB, free: 9.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/0.2246, allocations: 16.36 kB / 441.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004543/0.225, allocations: 384.8 kB / 442 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.2264, allocations: 1.546 MB / 443.6 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.2269, allocations: 321 kB / 443.9 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2271, allocations: 105.7 kB / 444 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.2271, allocations: 7.984 kB / 444 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.2274, allocations: 197.6 kB / 444.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2274, allocations: 3.938 kB / 444.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006092/0.228, allocations: 385.1 kB / 444.6 MB, free: 6.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.2281, allocations: 136.8 kB / 444.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2283, allocations: 298.9 kB / 445 MB, free: 6.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.2283, allocations: 33.7 kB / 445 MB, free: 6.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.789e-05/0.2284, allocations: 176.2 kB / 445.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.171e-05/0.2285, allocations: 79.06 kB / 445.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.2286, allocations: 57.89 kB / 445.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.2286, allocations: 346.7 kB / 445.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.2288, allocations: 96.52 kB / 445.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.2289, allocations: 183.3 kB / 445.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.2292, allocations: 298.7 kB / 446.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2292, allocations: 4 kB / 446.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004402/0.2297, allocations: 356.9 kB / 446.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2297, allocations: 8 kB / 446.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.2297, allocations: 4 kB / 446.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2297, allocations: 4 kB / 446.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.23, allocations: 64.22 kB / 446.7 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.23, allocations: 4 kB / 446.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2301, allocations: 35.56 kB / 446.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.2301, allocations: 23.98 kB / 446.7 MB, free: 4.355 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.2303, allocations: 173.8 kB / 446.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.2303, allocations: 31.56 kB / 446.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/0.2308, allocations: 315.7 kB / 447.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2308, allocations: 0 / 447.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2308, allocations: 8 kB / 447.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2308, allocations: 7.922 kB / 447.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.2315, allocations: 0.7401 MB / 448 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2315, allocations: 0 / 448 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.2317, allocations: 43.97 kB / 448 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2317, allocations: 3.938 kB / 448 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.2317, allocations: 8 kB / 448 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2317, allocations: 7.938 kB / 448 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2317, allocations: 3.938 kB / 448 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.2321, allocations: 416.6 kB / 448.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.2322, allocations: 100.8 kB / 448.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/0.2322, allocations: 15.92 kB / 448.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.2323, allocations: 8 kB / 448.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.2324, allocations: 23.97 kB / 448.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.2324, allocations: 8 kB / 448.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.2326, allocations: 217.9 kB / 448.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2326, allocations: 0 / 448.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000355/0.2329, allocations: 75.89 kB / 448.9 MB, free: 2.062 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009241/0.2339, allocations: 462.5 kB / 449.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003801/0.2343, allocations: 247.7 kB / 449.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2343, allocations: 4 kB / 449.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.2344, allocations: 115.8 kB / 449.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.2349, allocations: 58.31 kB / 449.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007432/0.2356, allocations: 0.5916 MB / 450.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.2359, allocations: 0.7991 MB / 451.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.2361, allocations: 86.88 kB / 451.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.732e-05/0.2362, allocations: 43.42 kB / 451.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2362, allocations: 4 kB / 451.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Templates: time 0.007313/0.2435, allocations: 3.55 MB / 454.8 MB, free: 12.12 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)