Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00142/0.00142, allocations: 170.5 kB / 15.77 MB, free: 6.32 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.349/1.349, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007201/0.00072, allocations: 78.38 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1636/0.1636, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0802/0.08054, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.005465/0.08605, allocations: 5.121 MB / 484.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003285/0.08936, allocations: 2.27 MB / 486.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003802/0.08977, allocations: 39.75 kB / 486.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003822/0.09016, allocations: 111.1 kB / 486.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006405/0.09081, allocations: 282.4 kB / 486.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008089/0.09163, allocations: 371.3 kB / 487.2 MB, free: 9.824 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008548/0.0925, allocations: 0.9833 MB / 488.2 MB, free: 8.836 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008319/0.09334, allocations: 0.6275 MB / 488.9 MB, free: 8.164 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003526/0.0937, allocations: 294.6 kB / 489.1 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.09405, allocations: 314.4 kB / 489.4 MB, free: 7.566 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.235e-05/0.09412, allocations: 24 kB / 489.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003247/0.09445, allocations: 171.6 kB / 489.6 MB, free: 7.375 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.0946, allocations: 151.3 kB / 489.8 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.09472, allocations: 149.3 kB / 489.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006703/0.0954, allocations: 0.7871 MB / 490.7 MB, free: 6.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09541, allocations: 0 / 490.7 MB, free: 6.285 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.09542, allocations: 4 kB / 490.7 MB, free: 6.281 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.09544, allocations: 0 / 490.7 MB, free: 6.281 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001674/0.09712, allocations: 0.9894 MB / 491.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.09716, allocations: 12.03 kB / 491.7 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008055/0.09797, allocations: 166.8 kB / 491.9 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008609/0.09885, allocations: 0.5687 MB / 492.5 MB, free: 4.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.0989, allocations: 45.31 kB / 492.5 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.364e-05/0.099, allocations: 63.91 kB / 492.6 MB, free: 4.348 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.1003, allocations: 0.76 MB / 493.3 MB, free: 3.547 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1003, allocations: 4 kB / 493.3 MB, free: 3.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.953e-05/0.1004, allocations: 20 kB / 493.3 MB, free: 3.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.201e-05/0.1004, allocations: 37.25 kB / 493.4 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.1016, allocations: 0.6453 MB / 494 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.1055, allocations: 2.922 MB / 497 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.1069, allocations: 0.7272 MB / 497.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.1073, allocations: 247 kB / 497.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.1074, allocations: 8.344 kB / 497.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.1074, allocations: 43 kB / 498 MB, free: 14.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.1074, allocations: 0 / 498 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001522/0.109, allocations: 0.7332 MB / 498.7 MB, free: 14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.109, allocations: 107.2 kB / 498.8 MB, free: 13.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007608/0.1098, allocations: 0.5822 MB / 499.4 MB, free: 13.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.1098, allocations: 37.7 kB / 499.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.1101, allocations: 344.5 kB / 499.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.1103, allocations: 185.4 kB / 499.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.838e-05/0.1103, allocations: 12 kB / 500 MB, free: 12.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1105, allocations: 378.8 kB / 0.4886 GB, free: 12.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.1109, allocations: 213 kB / 0.4888 GB, free: 12.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005365/0.1115, allocations: 348.5 kB / 0.4891 GB, free: 11.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005145/0.112, allocations: 256.8 kB / 0.4894 GB, free: 11.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.112, allocations: 7.875 kB / 0.4894 GB, free: 11.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001695/0.1137, allocations: 0.8159 MB / 0.4902 GB, free: 10.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.1139, allocations: 196 kB / 0.4904 GB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1139, allocations: 8 kB / 0.4904 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004693/0.1144, allocations: 140.7 kB / 0.4905 GB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005519/0.1149, allocations: 131.9 kB / 0.4906 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002743/0.1177, allocations: 2.249 MB / 0.4928 GB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004439/0.1181, allocations: 91.23 kB / 0.4929 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.1182, allocations: 20 kB / 0.4929 GB, free: 7.617 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.304e-06/0.1182, allocations: 8.062 kB / 0.4929 GB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001246/0.1195, allocations: 0.6199 MB / 0.4936 GB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1195, allocations: 7.938 kB / 0.4936 GB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.1197, allocations: 101.4 kB / 0.4937 GB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.1203, allocations: 135.8 kB / 0.4938 GB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.1222, allocations: 2.015 MB / 0.4958 GB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.1227, allocations: 95.34 kB / 0.4958 GB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.1227, allocations: 24 kB / 0.4959 GB, free: 4.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003617/0.1231, allocations: 299.9 kB / 0.4962 GB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.1232, allocations: 71.25 kB / 0.4962 GB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.1244, allocations: 0.5889 MB / 0.4968 GB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1244, allocations: 4 kB / 0.4968 GB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1244, allocations: 4 kB / 0.4968 GB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1244, allocations: 3.953 kB / 0.4968 GB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.1264, allocations: 1.326 MB / 0.4981 GB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1264, allocations: 3.938 kB / 0.4981 GB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005587/0.1269, allocations: 115.9 kB / 0.4982 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.127, allocations: 4 kB / 0.4982 GB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.127, allocations: 15.98 kB / 0.4982 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.127, allocations: 4.141 kB / 0.4982 GB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.127, allocations: 4 kB / 0.4982 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.1286, allocations: 0.9324 MB / 0.4992 GB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.1288, allocations: 196.1 kB / 0.4993 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.974e-05/0.1289, allocations: 12 kB / 0.4994 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/0.1293, allocations: 39.95 kB / 0.4994 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/0.1293, allocations: 40.33 kB / 0.4994 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.1294, allocations: 12 kB / 0.4994 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005841/0.13, allocations: 427 kB / 0.4998 GB, free: 304 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.13, allocations: 0 / 0.4998 GB, free: 304 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008302/0.1308, allocations: 271.1 kB / 0.5001 GB, free: 32 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001503/0.131, allocations: 107.4 kB / 0.5002 GB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.1329, allocations: 1.104 MB / 0.5013 GB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1329, allocations: 0 / 0.5013 GB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004872/0.1334, allocations: 266.5 kB / 0.5015 GB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007065/0.1341, allocations: 130.9 kB / 0.5017 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.1369, allocations: 1.848 MB / 0.5035 GB, free: 12.51 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005174/0.1374, allocations: 0.9458 MB / 0.5044 GB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.1376, allocations: 47.42 kB / 0.5044 GB, free: 11.49 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1376, allocations: 0 / 0.5044 GB, free: 11.49 MB / 362.7 MB Notification: Performance of Templates: time 0.0123/0.1499, allocations: 9.729 MB / 0.5139 GB, free: 1.75 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)