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.00135/0.00135, allocations: 111.6 kB / 16.63 MB, free: 6.953 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.001388/0.001388, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.347/1.347, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1663/0.1663, allocations: 38.04 MB / 329.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 59.38 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 58.06 MB / 456.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005307/0.1088, allocations: 3.838 MB / 460.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.1112, allocations: 1.856 MB / 462.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1114, allocations: 11.94 kB / 462.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008053/0.1122, allocations: 219.2 kB / 462.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004869/0.1127, allocations: 247.1 kB / 462.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.1132, allocations: 177.7 kB / 462.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004733/0.1137, allocations: 446.9 kB / 463.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.114, allocations: 202.4 kB / 463.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.1144, allocations: 195.2 kB / 463.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.1146, allocations: 187.3 kB / 463.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.1147, allocations: 28 kB / 463.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000462/0.1152, allocations: 311.3 kB / 464.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.1153, allocations: 123.7 kB / 464.2 MB, free: 476 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.1154, allocations: 155.2 kB / 464.4 MB, free: 320 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006182/0.1161, allocations: 0.5258 MB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1161, allocations: 0 / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1161, allocations: 0 / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.1161, allocations: 0 / 464.9 MB, free: 15.79 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.0009583/0.1171, allocations: 0.6199 MB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1171, allocations: 15.88 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.008e-05/0.1172, allocations: 62.72 kB / 465.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007329/0.1179, allocations: 88.48 kB / 465.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.1184, allocations: 363.7 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.1184, allocations: 16.75 kB / 466.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.1185, allocations: 27.86 kB / 466.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.119, allocations: 356.7 kB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.119, allocations: 3.938 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1191, allocations: 8 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.1191, allocations: 12.38 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.1197, allocations: 388.8 kB / 466.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.1214, allocations: 1.558 MB / 468.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006071/0.1221, allocations: 309.1 kB / 468.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1222, allocations: 113.7 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.1223, allocations: 4 kB / 468.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.1226, allocations: 204.5 kB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.1226, allocations: 0 / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007033/0.1233, allocations: 379.5 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.1234, allocations: 136.5 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.1237, allocations: 295 kB / 469.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.1237, allocations: 29.7 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1239, allocations: 176.2 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.1239, allocations: 90.91 kB / 470.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.688e-05/0.124, allocations: 53.98 kB / 470.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1242, allocations: 338.8 kB / 470.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.1243, allocations: 96.52 kB / 470.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.1246, allocations: 191.2 kB / 470.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004273/0.125, allocations: 300.5 kB / 471.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.125, allocations: 4 kB / 471.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005377/0.1255, allocations: 356.9 kB / 471.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.1256, allocations: 13.95 kB / 471.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1256, allocations: 4.312 kB / 471.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.1256, allocations: 8 kB / 471.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.1259, allocations: 59.91 kB / 471.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.1259, allocations: 7.938 kB / 471.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.126, allocations: 27.69 kB / 471.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.1261, allocations: 16 kB / 471.6 MB, free: 8.719 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 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.1263, allocations: 180.3 kB / 471.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.1263, allocations: 27.72 kB / 471.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005576/0.1269, allocations: 319.6 kB / 472.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1269, allocations: 0 / 472.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1269, allocations: 7.938 kB / 472.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.1269, allocations: 3.984 kB / 472.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009369/0.1279, allocations: 0.7463 MB / 472.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1279, allocations: 4 kB / 472.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.128, allocations: 39.97 kB / 472.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.128, allocations: 3.938 kB / 472.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.1281, allocations: 12 kB / 472.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1281, allocations: 4 kB / 472.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.1281, allocations: 3.938 kB / 472.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005341/0.1286, allocations: 409.6 kB / 473.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.31e-05/0.1287, allocations: 108.6 kB / 473.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.1288, allocations: 15.98 kB / 473.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1289, allocations: 12 kB / 473.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.129, allocations: 11.98 kB / 473.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.129, allocations: 11.98 kB / 473.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.1292, allocations: 213.9 kB / 473.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1292, allocations: 0 / 473.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.1296, allocations: 83.84 kB / 473.7 MB, free: 6.422 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001631/0.1312, allocations: 1.312 MB / 475.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005138/0.1317, allocations: 279.7 kB / 475.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1317, allocations: 0 / 475.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.132, allocations: 115.8 kB / 475.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.1324, allocations: 56.42 kB / 475.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.1358, allocations: 3.164 MB / 478.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1361, allocations: 0.7875 MB / 479.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.1363, allocations: 90.81 kB / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.1365, allocations: 111.3 kB / 479.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1365, allocations: 4 kB / 479.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.1554, allocations: 6.714 MB / 486.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1556, allocations: 250.8 kB / 486.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/1.982, allocations: 0 / 486.6 MB, free: 9.668 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/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)