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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001859/0.001859, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.348/1.348, allocations: 205.1 MB / 223.3 MB, free: 12.47 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.17/0.17, allocations: 37.99 MB / 308.6 MB, free: 6.246 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.001339/0.001339, allocations: 63.91 kB / 374.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2262, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004025/0.2303, allocations: 3.85 MB / 433.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.232, allocations: 1.786 MB / 435.6 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2322, allocations: 19.88 kB / 435.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006658/0.2329, allocations: 215.2 kB / 435.8 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.2332, allocations: 247.2 kB / 436.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.2336, allocations: 163.6 kB / 436.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.2339, allocations: 0.5651 MB / 436.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.2342, allocations: 173.7 kB / 437 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.2345, allocations: 159.3 kB / 437.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.2347, allocations: 187.3 kB / 437.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.2347, allocations: 16 kB / 437.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003907/0.2351, allocations: 367.2 kB / 437.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.742e-05/0.2352, allocations: 103.7 kB / 437.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.2353, allocations: 139.2 kB / 437.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004346/0.2357, allocations: 0.5141 MB / 438.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2357, allocations: 0 / 438.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2358, allocations: 3.938 kB / 438.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.2358, allocations: 0 / 438.4 MB, free: 11.26 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.0007058/0.2365, allocations: 0.6199 MB / 439 MB, free: 10.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2365, allocations: 8.031 kB / 439.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.2366, allocations: 58.72 kB / 439.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006723/0.2373, allocations: 96.39 kB / 439.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2376, allocations: 367.7 kB / 439.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.2376, allocations: 16.73 kB / 439.6 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.2377, allocations: 19.94 kB / 439.6 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/0.2382, allocations: 360.6 kB / 440 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.2382, allocations: 3.984 kB / 440 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.2383, allocations: 4 kB / 440 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.52e-05/0.2383, allocations: 16.38 kB / 440 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006444/0.239, allocations: 388.8 kB / 440.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.2403, allocations: 1.554 MB / 441.9 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.2408, allocations: 325 kB / 442.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.2409, allocations: 109.6 kB / 442.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.241, allocations: 12.06 kB / 442.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.2413, allocations: 206.4 kB / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.2413, allocations: 0 / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006415/0.2419, allocations: 377.2 kB / 442.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.242, allocations: 136.5 kB / 443.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.2422, allocations: 294.8 kB / 443.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.2423, allocations: 37.7 kB / 443.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.2424, allocations: 176.4 kB / 443.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.2424, allocations: 86.89 kB / 443.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.2425, allocations: 53.98 kB / 443.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.852e-05/0.2426, allocations: 342.8 kB / 444 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.2427, allocations: 96.52 kB / 444.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.2429, allocations: 187.2 kB / 444.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.2432, allocations: 293.3 kB / 444.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2432, allocations: 3.938 kB / 444.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004515/0.2437, allocations: 365.6 kB / 444.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2437, allocations: 4 kB / 444.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2437, allocations: 7.984 kB / 445 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2437, allocations: 4 kB / 445 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.244, allocations: 63.91 kB / 445 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.244, allocations: 7.938 kB / 445 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2441, allocations: 27.72 kB / 445.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.2441, allocations: 12.28 kB / 445.1 MB, free: 4.184 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.0001386/0.2443, allocations: 181.7 kB / 445.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.2443, allocations: 31.62 kB / 445.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004456/0.2448, allocations: 315.5 kB / 445.6 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2448, allocations: 4 kB / 445.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.2448, allocations: 7.938 kB / 445.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.2448, allocations: 0 / 445.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006821/0.2455, allocations: 0.7518 MB / 446.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2455, allocations: 0 / 446.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.2457, allocations: 43.97 kB / 446.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2457, allocations: 3.938 kB / 446.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.2457, allocations: 8 kB / 446.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2457, allocations: 11.94 kB / 446.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2457, allocations: 0 / 446.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00039/0.2461, allocations: 412.7 kB / 446.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.2462, allocations: 108.7 kB / 446.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.2462, allocations: 15.89 kB / 446.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.2463, allocations: 8 kB / 446.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.2464, allocations: 15.92 kB / 447 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.2464, allocations: 15.98 kB / 447 MB, free: 2.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.2466, allocations: 217.9 kB / 447.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2466, allocations: 4 kB / 447.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.2469, allocations: 68 kB / 447.3 MB, free: 1.875 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.001466/0.2484, allocations: 1.294 MB / 448.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003505/0.2488, allocations: 240.7 kB / 448.8 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2488, allocations: 0 / 448.8 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.2489, allocations: 120.5 kB / 448.9 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.2494, allocations: 62.3 kB / 449 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.2528, allocations: 3.161 MB / 452.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.2532, allocations: 0.7914 MB / 452.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.2534, allocations: 86.88 kB / 453 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.2536, allocations: 107.4 kB / 453.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2536, allocations: 0 / 453.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.2712, allocations: 6.569 MB / 459.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.2714, allocations: 230.4 kB / 459.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.074, allocations: 3.938 kB / 459.9 MB, free: 5.02 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)