Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_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.001177/0.001177, allocations: 111.1 kB / 17.06 MB, free: 5.977 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.001119/0.001119, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.169/0.169, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 67.89 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09249, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005408/0.09794, allocations: 3.615 MB / 490.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002691/0.1007, allocations: 1.731 MB / 491.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.1009, allocations: 11.94 kB / 492 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000831/0.1018, allocations: 227 kB / 492.2 MB, free: 3.242 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006388/0.1024, allocations: 259 kB / 492.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.103, allocations: 195.9 kB / 492.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005279/0.1035, allocations: 438.9 kB / 493.1 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003682/0.1039, allocations: 178.2 kB / 493.2 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004295/0.1043, allocations: 199.2 kB / 493.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.1046, allocations: 171.4 kB / 493.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.933e-05/0.1046, allocations: 31.94 kB / 493.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005207/0.1052, allocations: 319.3 kB / 493.9 MB, free: 1.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.1053, allocations: 115.7 kB / 494 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.1055, allocations: 143.3 kB / 494.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007907/0.1063, allocations: 0.5222 MB / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1063, allocations: 0 / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1063, allocations: 0 / 494.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1063, allocations: 4 kB / 494.7 MB, free: 0.7031 MB / 366.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.001064/0.1074, allocations: 0.6237 MB / 495.3 MB, free: 28 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1074, allocations: 15.89 kB / 495.3 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.924e-05/0.1075, allocations: 50.73 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008119/0.1083, allocations: 92.47 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005559/0.1089, allocations: 375.7 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.1089, allocations: 12.75 kB / 495.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.109, allocations: 23.92 kB / 495.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.1096, allocations: 356.6 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1096, allocations: 4 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.1096, allocations: 11.97 kB / 496.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/0.1097, allocations: 20.36 kB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.1102, allocations: 392.7 kB / 496.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.112, allocations: 1.542 MB / 498.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.1126, allocations: 317 kB / 498.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.1128, allocations: 101.7 kB / 498.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.1129, allocations: 20.05 kB / 498.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003178/0.1132, allocations: 189.7 kB / 498.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 3.938e-06/0.1132, allocations: 4 kB / 498.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007305/0.114, allocations: 388.9 kB / 499.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.839e-05/0.114, allocations: 136.5 kB / 499.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.1144, allocations: 291.3 kB / 499.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.1144, allocations: 33.7 kB / 499.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1145, allocations: 176.2 kB / 499.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.545e-05/0.1146, allocations: 82.84 kB / 499.9 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.424e-05/0.1147, allocations: 53.98 kB / 500 MB, free: 11.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1148, allocations: 342.8 kB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.115, allocations: 96.52 kB / 0.4887 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.1152, allocations: 187.2 kB / 0.4888 GB, free: 10.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/0.1156, allocations: 298 kB / 0.4891 GB, free: 10.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1156, allocations: 0 / 0.4891 GB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005524/0.1162, allocations: 368.8 kB / 0.4895 GB, free: 9.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1162, allocations: 4 kB / 0.4895 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1162, allocations: 4 kB / 0.4895 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.1163, allocations: 4 kB / 0.4895 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.1165, allocations: 63.91 kB / 0.4895 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.1165, allocations: 8.25 kB / 0.4896 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.1167, allocations: 31.75 kB / 0.4896 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.1167, allocations: 15.98 kB / 0.4896 GB, free: 9.637 MB / 382.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.000184/0.1169, allocations: 177.7 kB / 0.4898 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.013e-05/0.117, allocations: 31.72 kB / 0.4898 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005714/0.1176, allocations: 315.5 kB / 0.4901 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1176, allocations: 4 kB / 0.4901 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1176, allocations: 3.938 kB / 0.4901 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1176, allocations: 7.984 kB / 0.4901 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009853/0.1186, allocations: 0.744 MB / 0.4908 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1186, allocations: 4 kB / 0.4908 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1188, allocations: 47.91 kB / 0.4909 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.1188, allocations: 7.938 kB / 0.4909 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1188, allocations: 4 kB / 0.4909 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1188, allocations: 0 / 0.4909 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1188, allocations: 3.984 kB / 0.4909 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.1194, allocations: 420.7 kB / 0.4913 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.1195, allocations: 112.6 kB / 0.4914 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.804e-05/0.1195, allocations: 8 kB / 0.4914 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.1197, allocations: 11.94 kB / 0.4914 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.1197, allocations: 19.97 kB / 0.4915 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.1198, allocations: 12 kB / 0.4915 GB, free: 7.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.12, allocations: 213.9 kB / 0.4917 GB, free: 7.402 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.12, allocations: 0 / 0.4917 GB, free: 7.402 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.1204, allocations: 79.89 kB / 0.4917 GB, free: 7.324 MB / 382.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.001635/0.122, allocations: 1.285 MB / 0.493 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000483/0.1225, allocations: 244.2 kB / 0.4932 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.1226, allocations: 4.125 kB / 0.4932 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.1228, allocations: 119.9 kB / 0.4933 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.1233, allocations: 56.75 kB / 0.4934 GB, free: 5.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.1269, allocations: 3.056 MB / 0.4964 GB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1272, allocations: 0.7874 MB / 0.4972 GB, free: 1.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001977/0.1274, allocations: 98.86 kB / 0.4972 GB, free: 1.469 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.1276, allocations: 103.4 kB / 0.4973 GB, free: 1.367 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1276, allocations: 0 / 0.4973 GB, free: 1.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.1523, allocations: 7.01 MB / 0.5042 GB, free: 10.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/7.789, allocations: 0 / 0.5042 GB, free: 10.26 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)