Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_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.001128/0.001128, allocations: 87.69 kB / 16.32 MB, free: 6.449 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.001363/0.001363, allocations: 178 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.3 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1819/0.1819, allocations: 38.1 MB / 330.4 MB, free: 8.629 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004514, allocations: 8 kB / 400.2 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1636, allocations: 59.18 MB / 459.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005183/0.1689, allocations: 3.34 MB / 462.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003148/0.1721, allocations: 1.717 MB / 464.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.1725, allocations: 11.88 kB / 464.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005314/0.173, allocations: 67.67 kB / 464.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009232/0.174, allocations: 207.1 kB / 464.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008574/0.1748, allocations: 170.7 kB / 464.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009022/0.1757, allocations: 470.8 kB / 465.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009511/0.1767, allocations: 334.5 kB / 465.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005968/0.1773, allocations: 151.3 kB / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.1778, allocations: 163.4 kB / 465.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.1778, allocations: 12 kB / 466 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000631/0.1785, allocations: 175.6 kB / 466.1 MB, free: 476 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.1786, allocations: 99.69 kB / 466.2 MB, free: 376 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1788, allocations: 77.52 kB / 466.3 MB, free: 292 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006817/0.1795, allocations: 395.1 kB / 466.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1795, allocations: 0 / 466.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1795, allocations: 0 / 466.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.1795, allocations: 0 / 466.7 MB, free: 15.9 MB / 350.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.001084/0.1806, allocations: 0.5691 MB / 467.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.1806, allocations: 8.031 kB / 467.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.457e-05/0.1808, allocations: 54.55 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007866/0.1815, allocations: 91.53 kB / 467.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/0.1822, allocations: 362.6 kB / 467.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.493e-05/0.1822, allocations: 12.33 kB / 467.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.1823, allocations: 16 kB / 467.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007339/0.183, allocations: 356.6 kB / 468.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1831, allocations: 0 / 468.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.1831, allocations: 12 kB / 468.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.673e-05/0.1832, allocations: 16.36 kB / 468.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006932/0.1839, allocations: 388.7 kB / 468.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.1859, allocations: 1.562 MB / 470.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006008/0.1865, allocations: 309.7 kB / 470.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.1867, allocations: 102.1 kB / 470.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.1868, allocations: 16.23 kB / 470.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003412/0.1871, allocations: 198.1 kB / 470.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1871, allocations: 0 / 470.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007652/0.1879, allocations: 380.1 kB / 471.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/0.188, allocations: 136.8 kB / 471.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003403/0.1884, allocations: 294.9 kB / 471.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.366e-05/0.1884, allocations: 41.69 kB / 471.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.1886, allocations: 172.2 kB / 471.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.1887, allocations: 78.89 kB / 471.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.1887, allocations: 4 kB / 471.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1888, allocations: 342.8 kB / 472.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.189, allocations: 96.52 kB / 472.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.1893, allocations: 187.2 kB / 472.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.1895, allocations: 127.1 kB / 472.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1895, allocations: 0 / 472.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005408/0.19, allocations: 345.3 kB / 472.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1901, allocations: 16 kB / 472.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.1901, allocations: 4 kB / 472.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.1901, allocations: 4 kB / 472.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.1904, allocations: 67.84 kB / 473 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.1904, allocations: 4 kB / 473 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.1906, allocations: 31.64 kB / 473 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.1906, allocations: 12 kB / 473 MB, free: 9.176 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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.1908, allocations: 177.7 kB / 473.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.1909, allocations: 39.62 kB / 473.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005645/0.1914, allocations: 307.6 kB / 473.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.1915, allocations: 4 kB / 473.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1915, allocations: 0 / 473.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1915, allocations: 3.984 kB / 473.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009426/0.1924, allocations: 0.746 MB / 474.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.381e-06/0.1924, allocations: 4 kB / 474.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.1926, allocations: 47.97 kB / 474.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1926, allocations: 4 kB / 474.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.1927, allocations: 4 kB / 474.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1927, allocations: 0 / 474.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1927, allocations: 3.953 kB / 474.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.1932, allocations: 421.5 kB / 474.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.483e-05/0.1933, allocations: 108.8 kB / 474.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.285e-05/0.1933, allocations: 12 kB / 474.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.1935, allocations: 8 kB / 474.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.1935, allocations: 19.92 kB / 474.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.1936, allocations: 12 kB / 474.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002185/0.1938, allocations: 213.9 kB / 475.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1938, allocations: 0 / 475.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004046/0.1942, allocations: 79.84 kB / 475.2 MB, free: 6.879 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001742/0.196, allocations: 1.3 MB / 476.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004636/0.1964, allocations: 251.6 kB / 476.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1965, allocations: 0 / 476.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.1967, allocations: 119.7 kB / 476.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.1971, allocations: 60.88 kB / 476.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002795/0.2, allocations: 1.84 MB / 478.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.2003, allocations: 0.7992 MB / 479.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.2006, allocations: 86.89 kB / 479.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.2008, allocations: 107.3 kB / 479.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2008, allocations: 0 / 479.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0204/0.2212, allocations: 6.277 MB / 486 MB, free: 12.26 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.2215, allocations: 232.8 kB / 486.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.094, allocations: 7.938 kB / 486.3 MB, free: 12.01 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat does not exist to compare? outputFormat=mat