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.001004/0.001004, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.291/1.291, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001013/0.001013, allocations: 93.77 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1576/0.1576, allocations: 38.05 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004108/0.0004109, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2611, allocations: 56.32 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.3796, allocations: 95.01 MB / 0.5619 GB, free: 7.398 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001845/0.3815, allocations: 0.8682 MB / 0.5628 GB, free: 6.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03496/0.4165, allocations: 14.98 MB / 0.5774 GB, free: 7.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4165, allocations: 0 / 0.5774 GB, free: 7.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.4165, allocations: 8 kB / 0.5774 GB, free: 7.391 MB / 410.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.000847/0.4174, allocations: 0.6129 MB / 0.578 GB, free: 6.727 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.4174, allocations: 12.02 kB / 0.578 GB, free: 6.715 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.204e-05/0.4175, allocations: 62.47 kB / 0.5781 GB, free: 6.645 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006752/0.4182, allocations: 107.5 kB / 0.5782 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.4187, allocations: 362.4 kB / 0.5785 GB, free: 6.145 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.4187, allocations: 12.38 kB / 0.5786 GB, free: 6.133 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.4188, allocations: 16 kB / 0.5786 GB, free: 6.117 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.4193, allocations: 364.4 kB / 0.5789 GB, free: 5.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.4193, allocations: 3.938 kB / 0.5789 GB, free: 5.727 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.4194, allocations: 12 kB / 0.5789 GB, free: 5.715 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.784e-05/0.4194, allocations: 16.38 kB / 0.5789 GB, free: 5.699 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000602/0.42, allocations: 432.7 kB / 0.5794 GB, free: 5.273 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.4218, allocations: 1.593 MB / 0.5809 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000607/0.4224, allocations: 357 kB / 0.5813 GB, free: 3.203 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.4224, allocations: 4.75 kB / 0.5813 GB, free: 3.199 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000305/0.4227, allocations: 205.7 kB / 0.5815 GB, free: 2.977 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.4227, allocations: 0 / 0.5815 GB, free: 2.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006962/0.4234, allocations: 405.7 kB / 0.5818 GB, free: 2.574 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.4235, allocations: 140.4 kB / 0.582 GB, free: 2.406 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.4239, allocations: 302 kB / 0.5823 GB, free: 2.098 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.4239, allocations: 33.95 kB / 0.5823 GB, free: 2.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.424, allocations: 180.2 kB / 0.5825 GB, free: 1.879 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/0.4241, allocations: 86.97 kB / 0.5825 GB, free: 1.793 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/0.4241, allocations: 4 kB / 0.5826 GB, free: 1.789 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4242, allocations: 338.8 kB / 0.5829 GB, free: 1.449 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.4244, allocations: 108.4 kB / 0.583 GB, free: 1.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.4246, allocations: 191.3 kB / 0.5832 GB, free: 1.117 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.4248, allocations: 143.1 kB / 0.5833 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4249, allocations: 0 / 0.5833 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005106/0.4254, allocations: 365 kB / 0.5836 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.4254, allocations: 8 kB / 0.5837 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.4254, allocations: 3.984 kB / 0.5837 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4254, allocations: 8.312 kB / 0.5837 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.4257, allocations: 63.91 kB / 0.5837 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.4257, allocations: 11.88 kB / 0.5837 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.4258, allocations: 31.64 kB / 0.5838 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.4259, allocations: 12 kB / 0.5838 GB, free: 492 kB / 410.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 () * 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.0001712/0.426, allocations: 189.6 kB / 0.584 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.4261, allocations: 27.62 kB / 0.584 GB, free: 264 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006438/0.4267, allocations: 395.9 kB / 0.5844 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.4268, allocations: 7.984 kB / 0.5844 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4268, allocations: 0 / 0.5844 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.4268, allocations: 4 kB / 0.5844 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.4279, allocations: 0.8497 MB / 0.5852 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4279, allocations: 0 / 0.5852 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.4281, allocations: 59.92 kB / 0.5853 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4281, allocations: 4 kB / 0.5853 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.4281, allocations: 11.98 kB / 0.5853 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4281, allocations: 0 / 0.5853 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4281, allocations: 3.953 kB / 0.5853 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.4287, allocations: 494 kB / 0.5858 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.879e-05/0.4288, allocations: 116.7 kB / 0.5859 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.573e-05/0.4289, allocations: 23.94 kB / 0.5859 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.429, allocations: 8 kB / 0.5859 GB, free: 14.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.4291, allocations: 23.95 kB / 0.5859 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.4291, allocations: 12 kB / 0.5859 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002252/0.4293, allocations: 237.9 kB / 0.5862 GB, free: 13.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4293, allocations: 0 / 0.5862 GB, free: 13.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003941/0.4297, allocations: 107.8 kB / 0.5863 GB, free: 13.82 MB / 426.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) * Number of clocked states: 0 () * 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.001793/0.4315, allocations: 1.53 MB / 0.5878 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004459/0.432, allocations: 276.8 kB / 0.588 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.432, allocations: 0.625 kB / 0.588 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.4322, allocations: 151.8 kB / 0.5882 GB, free: 11.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.4326, allocations: 52.75 kB / 0.5882 GB, free: 11.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/0.4356, allocations: 3.445 MB / 0.5916 GB, free: 8.305 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.436, allocations: 0.808 MB / 0.5924 GB, free: 7.469 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.4362, allocations: 78.91 kB / 0.5924 GB, free: 7.391 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.4364, allocations: 111.4 kB / 0.5925 GB, free: 7.281 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4364, allocations: 0 / 0.5925 GB, free: 7.281 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.4574, allocations: 6.79 MB / 0.5992 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.4576, allocations: 218 kB / 0.5994 GB, free: 260 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.399, allocations: 0 / 0.5994 GB, free: 260 kB / 426.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