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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.002099/0.002098, allocations: 108.9 kB / 17.28 MB, free: 6.059 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.003406/0.003406, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.082/3.082, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4251/0.4251, allocations: 38.03 MB / 330.1 MB, free: 8.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002774/0.002774, allocations: 65.78 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2749, allocations: 58.06 MB / 457 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.01555/0.2905, allocations: 3.843 MB / 460.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006831/0.2975, allocations: 1.863 MB / 462.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006106/0.2982, allocations: 7.938 kB / 462.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.3001, allocations: 221.2 kB / 462.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.3015, allocations: 243.2 kB / 463.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.3026, allocations: 187.2 kB / 463.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001051/0.3037, allocations: 439 kB / 463.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007593/0.3045, allocations: 197.6 kB / 464 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008249/0.3053, allocations: 195.2 kB / 464.2 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004674/0.31, allocations: 187.3 kB / 464.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.3102, allocations: 28 kB / 464.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.3115, allocations: 315.3 kB / 464.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002908/0.3118, allocations: 123.7 kB / 464.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004142/0.3122, allocations: 151.2 kB / 464.9 MB, free: 420 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.3134, allocations: 403.2 kB / 465.3 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3134, allocations: 0 / 465.3 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.3134, allocations: 4 kB / 465.3 MB, free: 12 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.3135, allocations: 0 / 465.3 MB, free: 12 kB / 334.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.00214/0.3156, allocations: 0.616 MB / 466 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.399e-05/0.3157, allocations: 15.89 kB / 466 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.3173, allocations: 92.47 kB / 466.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.3184, allocations: 363.7 kB / 466.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.3185, allocations: 16.75 kB / 466.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.3186, allocations: 20.12 kB / 466.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3198, allocations: 356.6 kB / 466.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.3198, allocations: 4 kB / 466.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.095e-05/0.3199, allocations: 8 kB / 466.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.76e-05/0.32, allocations: 20.34 kB / 466.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.3212, allocations: 384.8 kB / 467.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.3252, allocations: 1.566 MB / 468.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3263, allocations: 318.6 kB / 469.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.3266, allocations: 101.7 kB / 469.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.541e-05/0.3267, allocations: 11.98 kB / 469.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005098/0.3272, allocations: 200.5 kB / 469.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.038e-06/0.3272, allocations: 0 / 469.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001302/0.3286, allocations: 386.5 kB / 469.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.3287, allocations: 140.7 kB / 469.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006232/0.3293, allocations: 287 kB / 470.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/0.3294, allocations: 33.7 kB / 470.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.3297, allocations: 176.2 kB / 470.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3298, allocations: 82.97 kB / 470.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.33, allocations: 57.98 kB / 470.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002457/0.3303, allocations: 342.8 kB / 470.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.3306, allocations: 92.52 kB / 471 MB, free: 10.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004642/0.3311, allocations: 187.2 kB / 471.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.332, allocations: 307.8 kB / 471.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.332, allocations: 0 / 471.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001161/0.3332, allocations: 353 kB / 471.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.3332, allocations: 8 kB / 471.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.3333, allocations: 0 / 471.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.724e-05/0.3333, allocations: 8.312 kB / 471.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.3339, allocations: 67.91 kB / 471.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/0.3339, allocations: 7.938 kB / 471.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.3343, allocations: 39.61 kB / 471.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.997e-05/0.3343, allocations: 8 kB / 471.9 MB, free: 9.008 MB / 350.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.0003993/0.3348, allocations: 180.5 kB / 472.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.3349, allocations: 23.72 kB / 472.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.336, allocations: 315.7 kB / 472.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3361, allocations: 11.98 kB / 472.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.3361, allocations: 0 / 472.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.3361, allocations: 3.938 kB / 472.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006256/0.3424, allocations: 0.7556 MB / 473.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3424, allocations: 0 / 473.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003548/0.3428, allocations: 39.92 kB / 473.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/0.3429, allocations: 7.938 kB / 473.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.509e-05/0.3429, allocations: 11.98 kB / 473.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.3429, allocations: 0 / 473.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.343, allocations: 4 kB / 473.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.3442, allocations: 412.1 kB / 473.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.3444, allocations: 104.7 kB / 473.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.3445, allocations: 19.88 kB / 473.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.3448, allocations: 11.94 kB / 473.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.345, allocations: 19.97 kB / 473.8 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/0.345, allocations: 16 kB / 473.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005085/0.3456, allocations: 209.9 kB / 474 MB, free: 6.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.3456, allocations: 0 / 474 MB, free: 6.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008606/0.3465, allocations: 83.83 kB / 474.1 MB, free: 6.699 MB / 350.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.002231/0.3487, allocations: 447 kB / 474.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3499, allocations: 279.7 kB / 474.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/0.3499, allocations: 0 / 474.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004293/0.3503, allocations: 120.5 kB / 474.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009442/0.3513, allocations: 75.62 kB / 475 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.3536, allocations: 0.7378 MB / 475.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007349/0.3544, allocations: 0.7913 MB / 476.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002025/0.3546, allocations: 43.42 kB / 476.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3546, allocations: 0 / 476.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of Templates: time 0.0166/0.3712, allocations: 4.494 MB / 481.1 MB, free: 15.86 MB / 366.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)