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.0007598/0.0007599, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0008906/0.0008907, allocations: 184.3 kB / 17.57 MB, free: 6.199 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.273/1.273, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1665/0.1665, allocations: 38.05 MB / 310.1 MB, free: 5.996 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.0005137/0.0005137, allocations: 16 kB / 377.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.201, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003038/0.204, allocations: 3.48 MB / 437.1 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.2059, allocations: 1.747 MB / 438.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.206, allocations: 11.94 kB / 438.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.2063, allocations: 59.69 kB / 438.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004149/0.2067, allocations: 243.2 kB / 439.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.2071, allocations: 167.6 kB / 439.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003719/0.2075, allocations: 0.569 MB / 439.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.208, allocations: 358.5 kB / 440.2 MB, free: 12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.2082, allocations: 162.3 kB / 440.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2084, allocations: 163.4 kB / 440.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.2085, allocations: 12 kB / 440.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004106/0.2089, allocations: 363.2 kB / 440.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.083e-05/0.209, allocations: 107.7 kB / 441 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.793e-05/0.2091, allocations: 164.8 kB / 441.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.2095, allocations: 0.5023 MB / 441.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2095, allocations: 4 kB / 441.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2095, allocations: 0 / 441.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2095, allocations: 3.938 kB / 441.7 MB, free: 10.53 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.000608/0.2101, allocations: 0.5576 MB / 442.2 MB, free: 9.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2102, allocations: 16.03 kB / 442.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.806e-05/0.2102, allocations: 58.72 kB / 442.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006183/0.2109, allocations: 88.47 kB / 442.4 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.2112, allocations: 367.7 kB / 442.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.2113, allocations: 12.75 kB / 442.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.2113, allocations: 19.94 kB / 442.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.2117, allocations: 360.6 kB / 443.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2118, allocations: 0 / 443.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.2118, allocations: 8 kB / 443.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.865e-05/0.2118, allocations: 20.36 kB / 443.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004535/0.2123, allocations: 384.8 kB / 443.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.2138, allocations: 1.562 MB / 445.1 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.2143, allocations: 313.1 kB / 445.4 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.2144, allocations: 109.6 kB / 445.5 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.2145, allocations: 11.98 kB / 445.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.2148, allocations: 209.4 kB / 445.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.2148, allocations: 0 / 445.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006236/0.2154, allocations: 385.2 kB / 446.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.2155, allocations: 132.5 kB / 446.2 MB, free: 5.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.2157, allocations: 290.9 kB / 446.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.2158, allocations: 41.69 kB / 446.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.694e-05/0.2158, allocations: 172.2 kB / 446.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.2159, allocations: 79.06 kB / 446.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.2159, allocations: 29.7 kB / 446.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.216, allocations: 339 kB / 447.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.2162, allocations: 100.5 kB / 447.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.2163, allocations: 183.2 kB / 447.4 MB, free: 4.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.2167, allocations: 301.3 kB / 447.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2167, allocations: 4 kB / 447.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004261/0.2171, allocations: 361.6 kB / 448.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2171, allocations: 4 kB / 448.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2171, allocations: 12.25 kB / 448.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2172, allocations: 4 kB / 448.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.2174, allocations: 59.91 kB / 448.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.2174, allocations: 7.938 kB / 448.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.2175, allocations: 31.69 kB / 448.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.2176, allocations: 23.88 kB / 448.2 MB, free: 3.535 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.0001279/0.2177, allocations: 177.7 kB / 448.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.2177, allocations: 27.72 kB / 448.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004387/0.2182, allocations: 319.6 kB / 448.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2182, allocations: 4 kB / 448.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2182, allocations: 3.938 kB / 448.8 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2182, allocations: 3.984 kB / 448.8 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007075/0.2189, allocations: 0.7401 MB / 449.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.219, allocations: 7.984 kB / 449.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.2191, allocations: 35.98 kB / 449.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2191, allocations: 7.938 kB / 449.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.2191, allocations: 12 kB / 449.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.2191, allocations: 3.938 kB / 449.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2191, allocations: 0 / 449.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.2195, allocations: 404.8 kB / 450 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.2196, allocations: 116.6 kB / 450.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.2197, allocations: 12 kB / 450.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2198, allocations: 8 kB / 450.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.2198, allocations: 23.97 kB / 450.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2199, allocations: 8 kB / 450.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.22, allocations: 217.9 kB / 450.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.22, allocations: 3.938 kB / 450.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.2204, allocations: 71.91 kB / 450.4 MB, free: 1.242 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.001389/0.2218, allocations: 1.294 MB / 451.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.2222, allocations: 248.8 kB / 451.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2223, allocations: 0 / 451.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.2225, allocations: 123.7 kB / 452.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.2229, allocations: 57.3 kB / 452.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.2264, allocations: 3.185 MB / 455.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.2268, allocations: 0.7914 MB / 456.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.227, allocations: 86.88 kB / 456.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.2272, allocations: 99.39 kB / 456.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2272, allocations: 0 / 456.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.2451, allocations: 6.306 MB / 462.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.2453, allocations: 233.7 kB / 462.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.968, allocations: 7.938 kB / 462.8 MB, free: 4.637 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)