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.001216/0.001216, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.001346/0.001345, allocations: 187 kB / 18.67 MB, free: 4.41 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.459/1.459, allocations: 205.1 MB / 224.5 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.179/0.179, allocations: 37.99 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.001516/0.001516, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.0946, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005592/0.1002, allocations: 3.624 MB / 491.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1028, allocations: 1.723 MB / 493.1 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.103, allocations: 11.94 kB / 493.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008269/0.1039, allocations: 231 kB / 493.4 MB, free: 2.738 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.0006497/0.1045, allocations: 266.9 kB / 493.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005121/0.1051, allocations: 187.9 kB / 493.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005237/0.1056, allocations: 442.9 kB / 494.2 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.1059, allocations: 177.6 kB / 494.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.1064, allocations: 191.2 kB / 494.6 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.1067, allocations: 167.4 kB / 494.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.038e-05/0.1067, allocations: 32 kB / 494.8 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005591/0.1073, allocations: 319.3 kB / 495.1 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1074, allocations: 119.7 kB / 495.2 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.1076, allocations: 147.2 kB / 495.4 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00069/0.1083, allocations: 0.518 MB / 495.9 MB, free: 212 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1083, allocations: 0 / 495.9 MB, free: 212 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1083, allocations: 0 / 495.9 MB, free: 212 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1084, allocations: 0 / 495.9 MB, free: 212 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.001009/0.1094, allocations: 0.6278 MB / 496.5 MB, free: 15.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1094, allocations: 11.89 kB / 496.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007823/0.1102, allocations: 88.48 kB / 496.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000518/0.1107, allocations: 379.6 kB / 497 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.1108, allocations: 16.73 kB / 497 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.1108, allocations: 24.12 kB / 497 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005745/0.1114, allocations: 356.6 kB / 497.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1114, allocations: 0 / 497.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.1115, allocations: 12 kB / 497.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.123e-05/0.1115, allocations: 12.38 kB / 497.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006236/0.1122, allocations: 392.8 kB / 497.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.114, allocations: 1.539 MB / 499.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005833/0.1146, allocations: 321.1 kB / 499.6 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.1148, allocations: 109.7 kB / 499.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.1148, allocations: 8 kB / 499.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003066/0.1151, allocations: 193.6 kB / 499.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1152, allocations: 0 / 499.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007409/0.1159, allocations: 385.3 kB / 0.4886 GB, free: 11.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.116, allocations: 140.5 kB / 0.4887 GB, free: 11.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.1163, allocations: 291 kB / 0.489 GB, free: 11.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.1164, allocations: 37.64 kB / 0.489 GB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1165, allocations: 180.2 kB / 0.4892 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.322e-05/0.1165, allocations: 86.78 kB / 0.4893 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.1166, allocations: 53.98 kB / 0.4893 GB, free: 10.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1168, allocations: 338.8 kB / 0.4897 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.1169, allocations: 100.5 kB / 0.4897 GB, free: 10.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1172, allocations: 179.3 kB / 0.4899 GB, free: 10.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.1176, allocations: 310 kB / 0.4902 GB, free: 9.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1176, allocations: 0 / 0.4902 GB, free: 9.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005797/0.1182, allocations: 364.8 kB / 0.4906 GB, free: 9.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1182, allocations: 4 kB / 0.4906 GB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.1182, allocations: 8.312 kB / 0.4906 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.1183, allocations: 8 kB / 0.4906 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.1185, allocations: 59.91 kB / 0.4906 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.1186, allocations: 7.938 kB / 0.4906 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.1187, allocations: 23.78 kB / 0.4907 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.1187, allocations: 16 kB / 0.4907 GB, free: 9.203 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.0001591/0.1189, allocations: 181.7 kB / 0.4909 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-05/0.119, allocations: 31.61 kB / 0.4909 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005534/0.1195, allocations: 315.7 kB / 0.4912 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.1195, allocations: 4 kB / 0.4912 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1196, allocations: 0 / 0.4912 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1196, allocations: 3.938 kB / 0.4912 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009756/0.1205, allocations: 0.7519 MB / 0.4919 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1206, allocations: 4 kB / 0.4919 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.1207, allocations: 43.91 kB / 0.492 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1207, allocations: 3.938 kB / 0.492 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.1208, allocations: 8 kB / 0.492 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1208, allocations: 8 kB / 0.492 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1208, allocations: 0 / 0.492 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005176/0.1213, allocations: 408.7 kB / 0.4924 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.1214, allocations: 108.6 kB / 0.4925 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.1214, allocations: 11.94 kB / 0.4925 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.1216, allocations: 15.98 kB / 0.4925 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.1216, allocations: 19.92 kB / 0.4925 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.1217, allocations: 11.98 kB / 0.4925 GB, free: 7.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1219, allocations: 213.9 kB / 0.4927 GB, free: 6.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1219, allocations: 0 / 0.4927 GB, free: 6.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003933/0.1223, allocations: 68 kB / 0.4928 GB, free: 6.906 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.0009761/0.1233, allocations: 464 kB / 0.4933 GB, free: 6.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004649/0.1237, allocations: 247.7 kB / 0.4935 GB, free: 6.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1238, allocations: 0 / 0.4935 GB, free: 6.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.124, allocations: 112.6 kB / 0.4936 GB, free: 6.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.1245, allocations: 68.8 kB / 0.4937 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.1255, allocations: 0.6321 MB / 0.4943 GB, free: 5.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.1259, allocations: 0.7913 MB / 0.4951 GB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.126, allocations: 43.42 kB / 0.4951 GB, free: 4.488 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.126, allocations: 0 / 0.4951 GB, free: 4.488 MB / 382.1 MB Notification: Performance of Templates: time 0.00722/0.1332, allocations: 4.508 MB / 0.4995 GB, free: 15.97 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)