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.001287/0.001287, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001141/0.001141, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.314/1.314, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1826/0.1826, allocations: 37.98 MB / 309.9 MB, free: 5.945 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.001401/0.001401, allocations: 75.03 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09801, allocations: 55.24 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005463/0.1035, allocations: 3.612 MB / 491.4 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.1063, allocations: 1.735 MB / 493.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.1066, allocations: 11.94 kB / 493.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.1076, allocations: 227 kB / 493.4 MB, free: 2.719 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.0007865/0.1084, allocations: 255 kB / 493.6 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.109, allocations: 191.4 kB / 493.8 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005576/0.1095, allocations: 435 kB / 494.2 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000382/0.1099, allocations: 185.5 kB / 494.4 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004538/0.1104, allocations: 195.2 kB / 494.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002884/0.1107, allocations: 171.4 kB / 494.8 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.855e-05/0.1108, allocations: 28 kB / 494.8 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00057/0.1113, allocations: 323.3 kB / 495.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.1115, allocations: 115.7 kB / 495.2 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.1117, allocations: 143.3 kB / 495.4 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007475/0.1124, allocations: 0.518 MB / 495.9 MB, free: 200 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.1124, allocations: 7.984 kB / 495.9 MB, free: 192 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1125, allocations: 0 / 495.9 MB, free: 192 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.1125, allocations: 0 / 495.9 MB, free: 192 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.001004/0.1135, allocations: 0.6238 MB / 496.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1135, allocations: 15.89 kB / 496.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007883/0.1143, allocations: 88.47 kB / 496.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.1149, allocations: 375.7 kB / 497 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1149, allocations: 12.75 kB / 497 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.115, allocations: 24.06 kB / 497 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.1155, allocations: 360.6 kB / 497.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1156, allocations: 0 / 497.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.1156, allocations: 12 kB / 497.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/0.1156, allocations: 20.34 kB / 497.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005897/0.1162, allocations: 388.8 kB / 497.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.1181, allocations: 1.542 MB / 499.3 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.1187, allocations: 321.1 kB / 499.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1189, allocations: 109.6 kB / 499.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.119, allocations: 8 kB / 499.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003111/0.1193, allocations: 197.7 kB / 499.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1193, allocations: 0 / 499.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007533/0.1201, allocations: 385.1 kB / 0.4886 GB, free: 11.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.783e-05/0.1202, allocations: 140.4 kB / 0.4887 GB, free: 11.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.1205, allocations: 287 kB / 0.489 GB, free: 11.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.1205, allocations: 37.64 kB / 0.489 GB, free: 10.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.1207, allocations: 180.4 kB / 0.4892 GB, free: 10.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.94e-05/0.1207, allocations: 86.91 kB / 0.4893 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/0.1208, allocations: 53.98 kB / 0.4893 GB, free: 10.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.121, allocations: 342.8 kB / 0.4897 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1212, allocations: 96.52 kB / 0.4898 GB, free: 10.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.1214, allocations: 183.3 kB / 0.4899 GB, free: 10 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000447/0.1219, allocations: 301.9 kB / 0.4902 GB, free: 9.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1219, allocations: 0 / 0.4902 GB, free: 9.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005899/0.1225, allocations: 368.9 kB / 0.4906 GB, free: 9.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.1225, allocations: 4 kB / 0.4906 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1225, allocations: 4 kB / 0.4906 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.1225, allocations: 7.938 kB / 0.4906 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.1228, allocations: 59.91 kB / 0.4906 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1228, allocations: 4 kB / 0.4906 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.123, allocations: 23.78 kB / 0.4907 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.123, allocations: 24.3 kB / 0.4907 GB, free: 9.18 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.0001915/0.1232, allocations: 177.7 kB / 0.4909 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.1233, allocations: 31.62 kB / 0.4909 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005473/0.1238, allocations: 307.7 kB / 0.4912 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1239, allocations: 7.938 kB / 0.4912 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1239, allocations: 0 / 0.4912 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.1239, allocations: 7.922 kB / 0.4912 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009721/0.1249, allocations: 0.7481 MB / 0.4919 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1249, allocations: 4 kB / 0.4919 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.125, allocations: 47.91 kB / 0.492 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.1251, allocations: 7.938 kB / 0.492 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.1251, allocations: 8 kB / 0.492 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1251, allocations: 0 / 0.492 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1251, allocations: 3.938 kB / 0.492 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005451/0.1257, allocations: 416.7 kB / 0.4924 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.717e-05/0.1257, allocations: 108.7 kB / 0.4925 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.656e-05/0.1258, allocations: 15.92 kB / 0.4925 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.1259, allocations: 11.94 kB / 0.4925 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.126, allocations: 15.98 kB / 0.4925 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.126, allocations: 11.98 kB / 0.4926 GB, free: 7.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.1262, allocations: 213.9 kB / 0.4928 GB, free: 6.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1263, allocations: 4 kB / 0.4928 GB, free: 6.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003987/0.1267, allocations: 68 kB / 0.4928 GB, free: 6.879 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.001051/0.1277, allocations: 448 kB / 0.4933 GB, free: 6.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004546/0.1282, allocations: 248 kB / 0.4935 GB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1282, allocations: 0 / 0.4935 GB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.1284, allocations: 123.8 kB / 0.4936 GB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.1289, allocations: 68.69 kB / 0.4937 GB, free: 6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.1299, allocations: 0.625 MB / 0.4943 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.1303, allocations: 0.7913 MB / 0.4951 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.1305, allocations: 51.3 kB / 0.4951 GB, free: 4.465 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1305, allocations: 0 / 0.4951 GB, free: 4.465 MB / 382.1 MB Notification: Performance of Templates: time 0.008059/0.1385, allocations: 4.543 MB / 0.4995 GB, free: 15.91 MB / 398.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)