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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001907/0.001908, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 89.72 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1704/0.1704, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.779e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 56.31 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5497, allocations: 94.25 MB / 0.5481 GB, free: 0.6172 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001746/0.5515, allocations: 0.5815 MB / 0.5487 GB, free: 36 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03645/0.588, allocations: 14.85 MB / 0.5631 GB, free: 1.059 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.588, allocations: 0 / 0.5631 GB, free: 1.059 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.5881, allocations: 12 kB / 0.5632 GB, free: 1.047 MB / 395.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.0009084/0.589, allocations: 0.562 MB / 0.5637 GB, free: 444 kB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.589, allocations: 16.02 kB / 0.5637 GB, free: 428 kB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007738/0.5898, allocations: 103.5 kB / 0.5638 GB, free: 324 kB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005846/0.5904, allocations: 350.7 kB / 0.5642 GB, free: 15.94 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.5905, allocations: 11.98 kB / 0.5642 GB, free: 15.93 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.5905, allocations: 8 kB / 0.5642 GB, free: 15.92 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005286/0.591, allocations: 336.5 kB / 0.5645 GB, free: 15.59 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.5915, allocations: 340.3 kB / 0.5648 GB, free: 15.23 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.5915, allocations: 0 / 0.5648 GB, free: 15.23 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.5916, allocations: 0 / 0.5648 GB, free: 15.23 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.5916, allocations: 20.31 kB / 0.5648 GB, free: 15.21 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.5935, allocations: 1.592 MB / 0.5664 GB, free: 13.52 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.5941, allocations: 330.5 kB / 0.5667 GB, free: 13.18 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.5943, allocations: 109.7 kB / 0.5668 GB, free: 13.06 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.5944, allocations: 8 kB / 0.5668 GB, free: 13.05 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.5947, allocations: 198.7 kB / 0.567 GB, free: 12.84 MB / 411.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.5947, allocations: 3.938 kB / 0.567 GB, free: 12.84 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.000585/0.5953, allocations: 301 kB / 0.5673 GB, free: 12.54 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/0.5954, allocations: 132.5 kB / 0.5674 GB, free: 12.38 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.5958, allocations: 274.3 kB / 0.5677 GB, free: 12.1 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.5958, allocations: 33.69 kB / 0.5677 GB, free: 12.06 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.596, allocations: 172.3 kB / 0.5679 GB, free: 11.89 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.5961, allocations: 82.81 kB / 0.568 GB, free: 11.8 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.5961, allocations: 0 / 0.568 GB, free: 11.8 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.5962, allocations: 346.8 kB / 0.5683 GB, free: 11.46 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.5964, allocations: 100.5 kB / 0.5684 GB, free: 11.36 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.5966, allocations: 175.1 kB / 0.5686 GB, free: 11.15 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.5968, allocations: 136 kB / 0.5687 GB, free: 11.02 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5969, allocations: 0 / 0.5687 GB, free: 11.02 MB / 411.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005199/0.5974, allocations: 345 kB / 0.569 GB, free: 10.67 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.5974, allocations: 11.98 kB / 0.569 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.5974, allocations: 4 kB / 0.569 GB, free: 10.66 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.5975, allocations: 4 kB / 0.569 GB, free: 10.65 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.5977, allocations: 59.91 kB / 0.5691 GB, free: 10.59 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.5978, allocations: 4 kB / 0.5691 GB, free: 10.59 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.5979, allocations: 23.69 kB / 0.5691 GB, free: 10.57 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.598, allocations: 19.98 kB / 0.5691 GB, free: 10.55 MB / 411.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001235/0.5981, allocations: 125 kB / 0.5693 GB, free: 10.42 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004476/0.5985, allocations: 297.1 kB / 0.5695 GB, free: 10.12 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.5986, allocations: 27.62 kB / 0.5696 GB, free: 10.09 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005807/0.5992, allocations: 374.4 kB / 0.5699 GB, free: 9.719 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5992, allocations: 4 kB / 0.5699 GB, free: 9.715 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.5992, allocations: 64 / 0.5699 GB, free: 9.715 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.5992, allocations: 7.984 kB / 0.5699 GB, free: 9.707 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009751/0.6002, allocations: 0.7916 MB / 0.5707 GB, free: 8.871 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6002, allocations: 4 kB / 0.5707 GB, free: 8.867 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.6004, allocations: 59.91 kB / 0.5708 GB, free: 8.809 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.6005, allocations: 0 / 0.5708 GB, free: 8.809 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.6005, allocations: 4 kB / 0.5708 GB, free: 8.805 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.6005, allocations: 7.938 kB / 0.5708 GB, free: 8.797 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6005, allocations: 0 / 0.5708 GB, free: 8.797 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.6011, allocations: 475.8 kB / 0.5712 GB, free: 8.297 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.298e-05/0.6012, allocations: 120.7 kB / 0.5714 GB, free: 8.16 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.6012, allocations: 7.953 kB / 0.5714 GB, free: 8.152 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.6014, allocations: 7.984 kB / 0.5714 GB, free: 8.145 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.6014, allocations: 27.97 kB / 0.5714 GB, free: 8.117 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.6015, allocations: 8 kB / 0.5714 GB, free: 8.109 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.6017, allocations: 225.9 kB / 0.5716 GB, free: 7.891 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6017, allocations: 0 / 0.5716 GB, free: 7.891 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.6021, allocations: 95.77 kB / 0.5717 GB, free: 7.797 MB / 411.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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.001618/0.6037, allocations: 1.42 MB / 0.5731 GB, free: 6.367 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004431/0.6042, allocations: 263.7 kB / 0.5733 GB, free: 6.109 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6042, allocations: 0 / 0.5733 GB, free: 6.109 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.6044, allocations: 139.8 kB / 0.5735 GB, free: 5.973 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.6048, allocations: 45.56 kB / 0.5735 GB, free: 5.93 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.6059, allocations: 0.5441 MB / 0.5741 GB, free: 5.34 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.6064, allocations: 0.808 MB / 0.5748 GB, free: 4.508 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.6066, allocations: 79.2 kB / 0.5749 GB, free: 4.43 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.6068, allocations: 115.4 kB / 0.575 GB, free: 4.316 MB / 411.1 MB Notification: Performance of SimCode: time 3.61e-07/0.6068, allocations: 0 / 0.575 GB, free: 4.316 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.6361, allocations: 6.272 MB / 0.5812 GB, free: 14.03 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/0.6364, allocations: 170.5 kB / 0.5813 GB, free: 13.84 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.032/2.669, allocations: 3.938 kB / 0.5813 GB, free: 13.84 MB / 427.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) 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