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.001682/0.001682, allocations: 102.2 kB / 17.06 MB, free: 6.016 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.002014/0.002014, allocations: 195 kB / 18 MB, free: 5.094 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.516/1.516, allocations: 205.1 MB / 223.9 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1778/0.1778, allocations: 37.99 MB / 309.2 MB, free: 5.969 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.001396/0.001396, allocations: 75.91 kB / 431.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1148, allocations: 55.23 MB / 487.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005365/0.1202, allocations: 3.62 MB / 490.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.1229, allocations: 1.723 MB / 492.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.123, allocations: 8 kB / 492.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007967/0.1238, allocations: 242.9 kB / 492.7 MB, free: 2.742 MB / 366.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.0005352/0.1244, allocations: 255 kB / 492.9 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.1248, allocations: 187.5 kB / 493.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.1253, allocations: 431 kB / 493.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003042/0.1256, allocations: 189.5 kB / 493.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.126, allocations: 199.2 kB / 493.9 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.1262, allocations: 171.4 kB / 494.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.1262, allocations: 28 kB / 494.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000445/0.1267, allocations: 315.3 kB / 494.4 MB, free: 1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.1268, allocations: 115.7 kB / 494.5 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.127, allocations: 151.2 kB / 494.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005626/0.1275, allocations: 0.518 MB / 495.2 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1275, allocations: 0 / 495.2 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1276, allocations: 0 / 495.2 MB, free: 224 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1276, allocations: 4 kB / 495.2 MB, free: 220 kB / 366.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.0008062/0.1284, allocations: 0.6201 MB / 495.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.1284, allocations: 11.89 kB / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006858/0.1291, allocations: 92.47 kB / 495.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.1296, allocations: 383.6 kB / 496.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1296, allocations: 12.75 kB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.1296, allocations: 24.06 kB / 496.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.1302, allocations: 356.6 kB / 496.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1302, allocations: 7.984 kB / 496.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.1302, allocations: 12 kB / 496.7 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/0.1303, allocations: 16.36 kB / 496.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005439/0.1308, allocations: 384.8 kB / 497.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1324, allocations: 1.535 MB / 498.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005475/0.133, allocations: 329 kB / 499 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.1332, allocations: 105.7 kB / 499.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.1332, allocations: 8.062 kB / 499.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.1335, allocations: 201.6 kB / 499.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.1335, allocations: 0 / 499.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006778/0.1342, allocations: 381.2 kB / 499.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.1343, allocations: 132.5 kB / 499.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.1346, allocations: 298.8 kB / 0.4883 GB, free: 11.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.1346, allocations: 37.64 kB / 0.4884 GB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.1347, allocations: 176.2 kB / 0.4885 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.676e-05/0.1348, allocations: 87.08 kB / 0.4886 GB, free: 10.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.629e-05/0.1349, allocations: 57.98 kB / 0.4887 GB, free: 10.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.135, allocations: 338.8 kB / 0.489 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1352, allocations: 96.52 kB / 0.4891 GB, free: 10.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1354, allocations: 183.3 kB / 0.4893 GB, free: 10.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.1358, allocations: 306 kB / 0.4896 GB, free: 9.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1358, allocations: 0 / 0.4896 GB, free: 9.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005138/0.1363, allocations: 365 kB / 0.4899 GB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1363, allocations: 8 kB / 0.4899 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1363, allocations: 0 / 0.4899 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1364, allocations: 8 kB / 0.4899 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.1366, allocations: 63.91 kB / 0.49 GB, free: 9.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1366, allocations: 7.938 kB / 0.49 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1367, allocations: 23.78 kB / 0.49 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.1368, allocations: 12 kB / 0.49 GB, free: 9.211 MB / 382.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.0001604/0.1369, allocations: 189.9 kB / 0.4902 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.837e-05/0.137, allocations: 27.62 kB / 0.4902 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005025/0.1375, allocations: 307.7 kB / 0.4905 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1375, allocations: 4 kB / 0.4905 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.1375, allocations: 0 / 0.4905 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1375, allocations: 7.938 kB / 0.4905 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008704/0.1384, allocations: 0.7519 MB / 0.4913 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1384, allocations: 0 / 0.4913 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.1386, allocations: 51.91 kB / 0.4913 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.1386, allocations: 7.922 kB / 0.4913 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.1386, allocations: 8 kB / 0.4913 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1386, allocations: 4 kB / 0.4913 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1386, allocations: 0 / 0.4913 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004904/0.1391, allocations: 412.7 kB / 0.4917 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.1392, allocations: 104.7 kB / 0.4918 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.1393, allocations: 15.88 kB / 0.4919 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.1394, allocations: 15.92 kB / 0.4919 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1394, allocations: 19.92 kB / 0.4919 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.1395, allocations: 11.98 kB / 0.4919 GB, free: 7.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.1397, allocations: 213.9 kB / 0.4921 GB, free: 6.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1397, allocations: 0 / 0.4921 GB, free: 6.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.14, allocations: 64 kB / 0.4922 GB, free: 6.91 MB / 382.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.000978/0.141, allocations: 460 kB / 0.4926 GB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004262/0.1415, allocations: 244.2 kB / 0.4928 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1415, allocations: 4.125 kB / 0.4928 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.1417, allocations: 115.9 kB / 0.4929 GB, free: 6.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.1421, allocations: 64.73 kB / 0.493 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008685/0.143, allocations: 0.5876 MB / 0.4936 GB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.1433, allocations: 0.7953 MB / 0.4944 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.1435, allocations: 98.8 kB / 0.4945 GB, free: 4.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.091e-05/0.1436, allocations: 39.42 kB / 0.4945 GB, free: 4.453 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1436, allocations: 0 / 0.4945 GB, free: 4.453 MB / 382.1 MB Notification: Performance of Templates: time 0.006829/0.1505, allocations: 3.663 MB / 0.4981 GB, free: 0.7852 MB / 382.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)