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.001283/0.001283, allocations: 114.1 kB / 17.69 MB, free: 5.309 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.001367/0.001367, allocations: 187 kB / 18.63 MB, free: 4.379 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.519/1.519, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1798/0.1798, allocations: 37.98 MB / 309.8 MB, free: 5.977 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.002401/0.002401, allocations: 75.83 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2963, allocations: 55.24 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005291/0.3016, allocations: 3.602 MB / 435.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.304, allocations: 1.731 MB / 437.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.3043, allocations: 8 kB / 437.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007993/0.3051, allocations: 238.9 kB / 437.6 MB, free: 13.88 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.0005293/0.3056, allocations: 259 kB / 437.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.3061, allocations: 191.4 kB / 438 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.3064, allocations: 438.9 kB / 438.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.3067, allocations: 189.4 kB / 438.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.307, allocations: 183.3 kB / 438.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.3072, allocations: 179.3 kB / 439 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.3073, allocations: 24 kB / 439 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003769/0.3076, allocations: 319.3 kB / 439.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.203e-05/0.3077, allocations: 119.7 kB / 439.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3079, allocations: 147.2 kB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.3083, allocations: 0.5141 MB / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3083, allocations: 0 / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3084, allocations: 0 / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3084, allocations: 0 / 440.1 MB, free: 11.36 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.0007038/0.3091, allocations: 0.6216 MB / 440.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3091, allocations: 15.89 kB / 440.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007165/0.3098, allocations: 88.48 kB / 440.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.3103, allocations: 375.7 kB / 441.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3103, allocations: 20.62 kB / 441.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.3104, allocations: 24.11 kB / 441.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000435/0.3108, allocations: 352.7 kB / 441.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3108, allocations: 7.938 kB / 441.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.3109, allocations: 7.984 kB / 441.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/0.3109, allocations: 16.38 kB / 441.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.3114, allocations: 388.8 kB / 442 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.3133, allocations: 1.55 MB / 443.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005438/0.3138, allocations: 317 kB / 443.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.314, allocations: 101.7 kB / 444 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.029e-05/0.3141, allocations: 19.92 kB / 444 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.3144, allocations: 197.6 kB / 444.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.3144, allocations: 4 kB / 444.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007052/0.3151, allocations: 377.2 kB / 444.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.3152, allocations: 132.5 kB / 444.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.3155, allocations: 303.1 kB / 445 MB, free: 6.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.3155, allocations: 33.7 kB / 445 MB, free: 6.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.3156, allocations: 176.2 kB / 445.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.155e-05/0.3157, allocations: 75 kB / 445.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.3158, allocations: 61.88 kB / 445.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3159, allocations: 338.8 kB / 445.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.3161, allocations: 100.5 kB / 445.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3163, allocations: 190.8 kB / 445.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.3166, allocations: 294.7 kB / 446.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3166, allocations: 0 / 446.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004401/0.3171, allocations: 364.9 kB / 446.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3171, allocations: 4 kB / 446.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3171, allocations: 4 kB / 446.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3171, allocations: 4 kB / 446.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/0.3174, allocations: 63.91 kB / 446.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.3174, allocations: 8.297 kB / 446.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.3175, allocations: 35.62 kB / 446.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.3176, allocations: 12 kB / 446.7 MB, free: 4.352 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.0001412/0.3177, allocations: 173.8 kB / 446.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.866e-05/0.3178, allocations: 39.61 kB / 446.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004592/0.3182, allocations: 307.6 kB / 447.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3183, allocations: 4 kB / 447.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3183, allocations: 3.938 kB / 447.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3183, allocations: 7.938 kB / 447.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007513/0.319, allocations: 0.7479 MB / 448 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.319, allocations: 4 kB / 448 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.3192, allocations: 39.98 kB / 448 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3192, allocations: 7.938 kB / 448 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.3192, allocations: 11.92 kB / 448 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3192, allocations: 0 / 448 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3192, allocations: 3.938 kB / 448 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.3196, allocations: 420.6 kB / 448.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.3197, allocations: 100.8 kB / 448.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.3197, allocations: 11.94 kB / 448.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.3199, allocations: 8 kB / 448.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.3199, allocations: 19.97 kB / 448.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.32, allocations: 8 kB / 448.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.3201, allocations: 217.9 kB / 448.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3201, allocations: 0 / 448.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003655/0.3205, allocations: 79.89 kB / 448.9 MB, free: 2.051 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.001002/0.3215, allocations: 457 kB / 449.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000407/0.3219, allocations: 255.6 kB / 449.6 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3219, allocations: 0 / 449.6 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.3221, allocations: 119.9 kB / 449.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.3225, allocations: 69.53 kB / 449.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008118/0.3233, allocations: 0.5845 MB / 450.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3236, allocations: 0.7874 MB / 451.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001839/0.3238, allocations: 86.89 kB / 451.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.649e-05/0.3239, allocations: 43.36 kB / 451.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.3239, allocations: 0 / 451.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of Templates: time 0.007651/0.3316, allocations: 3.552 MB / 454.8 MB, free: 12.13 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)