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.001245/0.001245, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001471/0.001471, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.247/1.247, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1625/0.1625, allocations: 38.08 MB / 330.3 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.000324, allocations: 8 kB / 400.1 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1042, allocations: 59.17 MB / 459.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003668/0.1079, allocations: 3.27 MB / 462.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1101, allocations: 1.693 MB / 464.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.1103, allocations: 11.94 kB / 464.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003273/0.1107, allocations: 71.58 kB / 464.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004228/0.1111, allocations: 163.5 kB / 464.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.1116, allocations: 178.7 kB / 464.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.1119, allocations: 219.6 kB / 464.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005229/0.1124, allocations: 334.5 kB / 465.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.1127, allocations: 143.4 kB / 465.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.1129, allocations: 103.6 kB / 465.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.1129, allocations: 12 kB / 465.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002983/0.1132, allocations: 155.7 kB / 465.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.869e-05/0.1133, allocations: 95.78 kB / 465.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.1134, allocations: 73.52 kB / 465.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.1138, allocations: 387.1 kB / 466.1 MB, free: 408 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.1138, allocations: 0 / 466.1 MB, free: 408 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1138, allocations: 0 / 466.1 MB, free: 408 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1138, allocations: 0 / 466.1 MB, free: 408 kB / 334.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.0007748/0.1146, allocations: 0.573 MB / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1146, allocations: 8.031 kB / 466.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.119e-05/0.1147, allocations: 62.53 kB / 466.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006841/0.1154, allocations: 91.55 kB / 466.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.1159, allocations: 354.7 kB / 467.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.1159, allocations: 20.31 kB / 467.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.1159, allocations: 19.98 kB / 467.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.1164, allocations: 352.6 kB / 467.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1165, allocations: 4 kB / 467.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.1165, allocations: 7.984 kB / 467.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.1165, allocations: 16.38 kB / 467.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005395/0.1171, allocations: 392.7 kB / 468 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1188, allocations: 1.55 MB / 469.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/0.1194, allocations: 329.6 kB / 469.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.1195, allocations: 12.23 kB / 469.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.1197, allocations: 194.1 kB / 470 MB, free: 12.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1198, allocations: 0 / 470 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006395/0.1204, allocations: 385.2 kB / 470.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/0.1205, allocations: 132.8 kB / 470.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.1208, allocations: 298.9 kB / 470.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.1208, allocations: 33.69 kB / 470.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.858e-05/0.1209, allocations: 172.2 kB / 471 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.269e-05/0.121, allocations: 82.91 kB / 471.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.121, allocations: 4 kB / 471.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1211, allocations: 342.8 kB / 471.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.1213, allocations: 92.52 kB / 471.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.1215, allocations: 183.3 kB / 471.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.1217, allocations: 130.6 kB / 471.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1217, allocations: 0 / 471.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005056/0.1222, allocations: 353.3 kB / 472.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1222, allocations: 8 kB / 472.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1222, allocations: 4 kB / 472.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1222, allocations: 4 kB / 472.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.1225, allocations: 59.91 kB / 472.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1225, allocations: 4 kB / 472.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.1226, allocations: 31.69 kB / 472.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.1227, allocations: 23.88 kB / 472.3 MB, free: 9.766 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.0001652/0.1228, allocations: 173.8 kB / 472.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.1229, allocations: 35.62 kB / 472.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005169/0.1234, allocations: 315.6 kB / 472.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1234, allocations: 0 / 472.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1234, allocations: 4 kB / 472.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1234, allocations: 3.984 kB / 472.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008657/0.1243, allocations: 0.7538 MB / 473.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1243, allocations: 3.984 kB / 473.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.1245, allocations: 43.98 kB / 473.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1245, allocations: 0 / 473.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1245, allocations: 8 kB / 473.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1245, allocations: 0 / 473.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.1245, allocations: 7.984 kB / 473.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004933/0.125, allocations: 436.9 kB / 474.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.577e-05/0.1251, allocations: 112.8 kB / 474.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.919e-05/0.1252, allocations: 15.95 kB / 474.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.1253, allocations: 3.984 kB / 474.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.1254, allocations: 19.98 kB / 474.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.1254, allocations: 15.92 kB / 474.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001935/0.1256, allocations: 209.9 kB / 474.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1256, allocations: 4 kB / 474.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003639/0.126, allocations: 79.84 kB / 474.5 MB, free: 7.426 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.001741/0.1277, allocations: 1.453 MB / 476 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004227/0.1282, allocations: 240.3 kB / 476.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1282, allocations: 4.062 kB / 476.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.1284, allocations: 127 kB / 476.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.1288, allocations: 44.86 kB / 476.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.1319, allocations: 3.325 MB / 479.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1323, allocations: 0.803 MB / 480.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002084/0.1325, allocations: 78.91 kB / 480.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.1327, allocations: 107.4 kB / 480.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1327, allocations: 3.938 kB / 480.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.1522, allocations: 6.283 MB / 487 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.1524, allocations: 224.2 kB / 487.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/1.839, allocations: 0 / 487.2 MB, free: 10.91 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