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.001005/0.001005, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008357/0.0008358, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1699/0.1699, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.606e-05/3.608e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 56.32 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.5478, allocations: 94.91 MB / 0.5557 GB, free: 7.926 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001441/0.5492, allocations: 0.6902 MB / 0.5564 GB, free: 7.621 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03353/0.5828, allocations: 14.93 MB / 0.571 GB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5828, allocations: 0 / 0.571 GB, free: 11.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.5829, allocations: 4 kB / 0.571 GB, free: 11.18 MB / 378.7 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.0008777/0.5838, allocations: 0.5617 MB / 0.5715 GB, free: 10.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.5838, allocations: 8.031 kB / 0.5715 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.207e-05/0.5839, allocations: 59.97 kB / 0.5716 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007572/0.5847, allocations: 103.5 kB / 0.5717 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.5852, allocations: 355.7 kB / 0.572 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.5853, allocations: 11.38 kB / 0.572 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.5853, allocations: 18.56 kB / 0.5721 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.5859, allocations: 358.6 kB / 0.5724 GB, free: 9.777 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.5859, allocations: 3.938 kB / 0.5724 GB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.5859, allocations: 10.25 kB / 0.5724 GB, free: 9.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.312e-05/0.586, allocations: 20.3 kB / 0.5724 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006049/0.5866, allocations: 430.6 kB / 0.5729 GB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.5885, allocations: 1.595 MB / 0.5744 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.5891, allocations: 349.1 kB / 0.5747 GB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.5893, allocations: 112 kB / 0.5748 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.5893, allocations: 7.938 kB / 0.5749 GB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.5896, allocations: 202.5 kB / 0.575 GB, free: 7.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.5896, allocations: 0 / 0.575 GB, free: 7.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005356/0.5902, allocations: 309.5 kB / 0.5753 GB, free: 7.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.5903, allocations: 140.5 kB / 0.5755 GB, free: 7.062 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.5906, allocations: 288.3 kB / 0.5758 GB, free: 6.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.5906, allocations: 37.08 kB / 0.5758 GB, free: 6.797 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.5908, allocations: 178.7 kB / 0.576 GB, free: 6.652 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.5908, allocations: 86.5 kB / 0.576 GB, free: 6.578 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.5909, allocations: 7.875 kB / 0.576 GB, free: 6.574 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.591, allocations: 342.2 kB / 0.5764 GB, free: 6.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.5912, allocations: 102.8 kB / 0.5765 GB, free: 6.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.5914, allocations: 189.8 kB / 0.5767 GB, free: 6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.5916, allocations: 133.3 kB / 0.5768 GB, free: 5.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.5916, allocations: 4 kB / 0.5768 GB, free: 5.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005122/0.5921, allocations: 361.6 kB / 0.5771 GB, free: 5.633 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.5922, allocations: 4 kB / 0.5771 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.5922, allocations: 7.984 kB / 0.5771 GB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.5922, allocations: 4 kB / 0.5771 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.5925, allocations: 68.16 kB / 0.5772 GB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.5925, allocations: 7.938 kB / 0.5772 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.5926, allocations: 31.58 kB / 0.5772 GB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.5927, allocations: 16 kB / 0.5773 GB, free: 5.504 MB / 378.7 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 (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 9.857e-05/0.5928, allocations: 124.2 kB / 0.5774 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.5928, allocations: 27.72 kB / 0.5774 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006305/0.5935, allocations: 394.8 kB / 0.5778 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.5935, allocations: 4 kB / 0.5778 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5935, allocations: 0 / 0.5778 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5935, allocations: 7.922 kB / 0.5778 GB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.5945, allocations: 0.8398 MB / 0.5786 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5946, allocations: 0 / 0.5786 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.5948, allocations: 59.66 kB / 0.5787 GB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.5948, allocations: 4 kB / 0.5787 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.5948, allocations: 11.06 kB / 0.5787 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5948, allocations: 0 / 0.5787 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5948, allocations: 7.953 kB / 0.5787 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.5954, allocations: 487 kB / 0.5792 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.5956, allocations: 123.6 kB / 0.5793 GB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.554e-05/0.5956, allocations: 18.42 kB / 0.5793 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.5958, allocations: 7.375 kB / 0.5793 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.5958, allocations: 23.45 kB / 0.5793 GB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.5959, allocations: 15.94 kB / 0.5793 GB, free: 3.656 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002432/0.5961, allocations: 242.5 kB / 0.5796 GB, free: 3.477 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5961, allocations: 0 / 0.5796 GB, free: 3.477 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004039/0.5965, allocations: 94.41 kB / 0.5797 GB, free: 3.395 MB / 378.7 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 (34): * Single equations (assignments): 31 * 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.001763/0.5983, allocations: 1.479 MB / 0.5811 GB, free: 2.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.5987, allocations: 262.5 kB / 0.5814 GB, free: 1.848 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5987, allocations: 4 kB / 0.5814 GB, free: 1.844 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.5989, allocations: 144.8 kB / 0.5815 GB, free: 1.742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.5993, allocations: 54.75 kB / 0.5815 GB, free: 1.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.6004, allocations: 0.5833 MB / 0.5821 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.6008, allocations: 0.8068 MB / 0.5829 GB, free: 360 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.601, allocations: 78.89 kB / 0.583 GB, free: 276 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.6012, allocations: 117.2 kB / 0.5831 GB, free: 224 kB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6012, allocations: 0 / 0.5831 GB, free: 224 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.6217, allocations: 6.798 MB / 0.5897 GB, free: 9.406 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.6219, allocations: 196.2 kB / 0.5899 GB, free: 9.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.636, allocations: 0 / 0.5899 GB, free: 9.18 MB / 394.7 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