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.001196/0.001196, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001218/0.001218, allocations: 198.9 kB / 18 MB, free: 5.082 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.334/1.334, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1843/0.1843, 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.001346/0.001346, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09825, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005679/0.104, allocations: 3.611 MB / 490.2 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.1067, allocations: 1.731 MB / 491.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000256/0.1069, allocations: 7.938 kB / 492 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009532/0.1079, allocations: 234.9 kB / 492.2 MB, free: 3.234 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.0007479/0.1087, allocations: 259 kB / 492.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.1092, allocations: 195.9 kB / 492.6 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.1097, allocations: 434.9 kB / 493.1 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000366/0.1101, allocations: 182.2 kB / 493.2 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004224/0.1105, allocations: 195.2 kB / 493.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.1108, allocations: 171.4 kB / 493.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.385e-05/0.1109, allocations: 28 kB / 493.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000502/0.1114, allocations: 315.3 kB / 493.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.1115, allocations: 123.6 kB / 494 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.1117, allocations: 143.3 kB / 494.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006862/0.1124, allocations: 0.5222 MB / 494.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1124, allocations: 0 / 494.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1124, allocations: 0 / 494.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.1124, allocations: 4 kB / 494.7 MB, free: 0.6992 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.0009805/0.1134, allocations: 0.6199 MB / 495.3 MB, free: 28 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.1135, allocations: 15.89 kB / 495.3 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.487e-05/0.1136, allocations: 50.73 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000814/0.1144, allocations: 96.41 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.115, allocations: 375.7 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.1151, allocations: 12.75 kB / 495.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.315e-05/0.1151, allocations: 23.92 kB / 495.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006114/0.1157, allocations: 356.6 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.1158, allocations: 4 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.1158, allocations: 4 kB / 496.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/0.1158, allocations: 20.36 kB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.1165, allocations: 388.8 kB / 496.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.1184, allocations: 1.546 MB / 498.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005765/0.119, allocations: 317.1 kB / 498.5 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.1192, allocations: 101.7 kB / 498.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.982e-05/0.1193, allocations: 23.86 kB / 498.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/0.1196, allocations: 193.7 kB / 498.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.1196, allocations: 4 kB / 498.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007821/0.1204, allocations: 381.1 kB / 499.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.377e-05/0.1205, allocations: 144.4 kB / 499.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.1208, allocations: 291.3 kB / 499.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.1209, allocations: 33.7 kB / 499.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.121, allocations: 180.2 kB / 499.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.159e-05/0.1211, allocations: 82.84 kB / 499.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/0.1212, allocations: 53.98 kB / 500 MB, free: 11.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1213, allocations: 342.8 kB / 0.4886 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.1215, allocations: 96.52 kB / 0.4887 GB, free: 10.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.1218, allocations: 187.2 kB / 0.4888 GB, free: 10.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.1222, allocations: 298 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1222, allocations: 8 kB / 0.4891 GB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005643/0.1228, allocations: 356.9 kB / 0.4895 GB, free: 9.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1228, allocations: 4 kB / 0.4895 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1228, allocations: 4 kB / 0.4895 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1228, allocations: 4 kB / 0.4895 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1231, allocations: 68.16 kB / 0.4895 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1231, allocations: 11.94 kB / 0.4896 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1232, allocations: 23.75 kB / 0.4896 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.1233, allocations: 19.98 kB / 0.4896 GB, free: 9.629 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.0001884/0.1235, allocations: 177.7 kB / 0.4898 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.1235, allocations: 27.72 kB / 0.4898 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005399/0.1241, allocations: 307.5 kB / 0.4901 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1241, allocations: 4 kB / 0.4901 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1241, allocations: 3.938 kB / 0.4901 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1241, allocations: 7.984 kB / 0.4901 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009349/0.1251, allocations: 0.7478 MB / 0.4908 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1251, allocations: 7.984 kB / 0.4908 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.1252, allocations: 43.92 kB / 0.4909 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.1252, allocations: 7.938 kB / 0.4909 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.1253, allocations: 8 kB / 0.4909 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1253, allocations: 0 / 0.4909 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1253, allocations: 3.984 kB / 0.4909 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004898/0.1258, allocations: 408.8 kB / 0.4913 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.1259, allocations: 116.5 kB / 0.4914 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.1259, allocations: 8 kB / 0.4914 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.126, allocations: 8 kB / 0.4914 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.1261, allocations: 19.97 kB / 0.4914 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1261, allocations: 12 kB / 0.4915 GB, free: 7.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.1263, allocations: 217.9 kB / 0.4917 GB, free: 7.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1263, allocations: 0 / 0.4917 GB, free: 7.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000374/0.1267, allocations: 79.89 kB / 0.4917 GB, free: 7.328 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.001636/0.1284, allocations: 1.297 MB / 0.493 GB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.1288, allocations: 244.2 kB / 0.4932 GB, free: 5.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1288, allocations: 4.125 kB / 0.4932 GB, free: 5.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.129, allocations: 119.9 kB / 0.4934 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.1295, allocations: 56.81 kB / 0.4934 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.1332, allocations: 3.056 MB / 0.4964 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.1336, allocations: 0.7952 MB / 0.4972 GB, free: 1.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.1338, allocations: 82.89 kB / 0.4972 GB, free: 1.469 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.1339, allocations: 99.39 kB / 0.4973 GB, free: 1.371 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1339, allocations: 3.938 kB / 0.4973 GB, free: 1.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.1578, allocations: 7.017 MB / 0.5042 GB, free: 10.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.7, allocations: 0 / 0.5042 GB, free: 10.25 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)