Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001154/0.001154, allocations: 111 kB / 17.06 MB, free: 5.969 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.001179/0.001179, allocations: 200 kB / 18.01 MB, free: 5.055 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.347/1.347, 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.1703/0.1703, allocations: 37.98 MB / 309.2 MB, free: 5.945 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.001532/0.001533, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.09077, allocations: 55.24 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006571/0.09738, allocations: 5.471 MB / 492.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.1009, allocations: 2.305 MB / 494.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000618/0.1016, allocations: 27.88 kB / 494.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.1026, allocations: 274.2 kB / 494.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009877/0.1036, allocations: 354 kB / 495 MB, free: 400 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1048, allocations: 0.5068 MB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.106, allocations: 1.054 MB / 496.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000917/0.1069, allocations: 0.6194 MB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000587/0.1075, allocations: 418.4 kB / 497.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005701/0.1081, allocations: 406.1 kB / 498 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001538/0.1082, allocations: 84 kB / 498.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005789/0.1088, allocations: 355.2 kB / 498.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.1091, allocations: 211.3 kB / 498.6 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003924/0.1095, allocations: 405.8 kB / 499 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.1107, allocations: 1.086 MB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1107, allocations: 0 / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1107, allocations: 8 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.265e-05/0.1107, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.1 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.002316/0.113, allocations: 1.141 MB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.1131, allocations: 15.88 kB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.1132, allocations: 106.6 kB / 0.4896 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008402/0.1141, allocations: 163.8 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.1151, allocations: 0.6163 MB / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.1152, allocations: 45.69 kB / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.1153, allocations: 68.27 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1167, allocations: 0.768 MB / 0.4913 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.1167, allocations: 7.984 kB / 0.4913 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.1168, allocations: 24 kB / 0.4913 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.851e-05/0.1168, allocations: 25.31 kB / 0.4913 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1182, allocations: 0.657 MB / 0.492 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.1223, allocations: 2.903 MB / 0.4948 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1239, allocations: 0.7423 MB / 0.4955 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005229/0.1244, allocations: 254.8 kB / 0.4958 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.1245, allocations: 16.42 kB / 0.4958 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.1245, allocations: 35 kB / 0.4958 GB, free: 3.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.943e-06/0.1246, allocations: 0 / 0.4958 GB, free: 3.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001703/0.1263, allocations: 0.7481 MB / 0.4965 GB, free: 2.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.1263, allocations: 107.2 kB / 0.4966 GB, free: 2.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007789/0.1271, allocations: 0.5901 MB / 0.4972 GB, free: 1.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.41e-05/0.1272, allocations: 41.64 kB / 0.4973 GB, free: 1.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.1274, allocations: 349.1 kB / 0.4976 GB, free: 1.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.1276, allocations: 177.4 kB / 0.4978 GB, free: 1.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.1278, allocations: 110.2 kB / 0.4979 GB, free: 1.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1279, allocations: 374.8 kB / 0.4982 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005202/0.1285, allocations: 235.3 kB / 0.4984 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005855/0.1291, allocations: 357.5 kB / 0.4988 GB, free: 192 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.1302, allocations: 0.5822 MB / 0.4994 GB, free: 15.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.1302, allocations: 4 kB / 0.4994 GB, free: 15.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001782/0.132, allocations: 0.8186 MB / 0.5002 GB, free: 14.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.132, allocations: 8 kB / 0.5002 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.132, allocations: 4 kB / 0.5002 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/0.1324, allocations: 109.2 kB / 0.5003 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.133, allocations: 143.8 kB / 0.5004 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.1358, allocations: 2.42 MB / 0.5028 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.1363, allocations: 91.27 kB / 0.5029 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.1364, allocations: 28.05 kB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006629/0.137, allocations: 385.3 kB / 0.5033 GB, free: 11.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005326/0.1376, allocations: 341.5 kB / 0.5036 GB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009995/0.1386, allocations: 0.5665 MB / 0.5041 GB, free: 10.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.1386, allocations: 0 / 0.5041 GB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001437/0.1401, allocations: 0.729 MB / 0.5048 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1401, allocations: 15.84 kB / 0.5049 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1401, allocations: 4.438 kB / 0.5049 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.1404, allocations: 105.1 kB / 0.505 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.1409, allocations: 139.8 kB / 0.5051 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.143, allocations: 2.221 MB / 0.5073 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004611/0.1435, allocations: 67.66 kB / 0.5073 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.1435, allocations: 31.98 kB / 0.5074 GB, free: 6.945 MB / 398.1 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 (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001863/0.1437, allocations: 208.1 kB / 0.5076 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.1438, allocations: 67.16 kB / 0.5076 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.1451, allocations: 0.6043 MB / 0.5082 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1452, allocations: 8 kB / 0.5082 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.1452, allocations: 0 / 0.5082 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1452, allocations: 0 / 0.5082 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.1473, allocations: 1.361 MB / 0.5095 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1473, allocations: 0 / 0.5095 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.1479, allocations: 119.9 kB / 0.5097 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.148, allocations: 0 / 0.5097 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.148, allocations: 11.98 kB / 0.5097 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.148, allocations: 4 kB / 0.5097 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.148, allocations: 0 / 0.5097 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.1498, allocations: 0.961 MB / 0.5106 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.15, allocations: 200 kB / 0.5108 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.577e-05/0.1501, allocations: 12.28 kB / 0.5108 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.1505, allocations: 39.95 kB / 0.5109 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.1506, allocations: 40.38 kB / 0.5109 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.1507, allocations: 15.94 kB / 0.5109 GB, free: 3.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005631/0.1512, allocations: 427 kB / 0.5113 GB, free: 2.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1512, allocations: 0 / 0.5113 GB, free: 2.785 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008407/0.1521, allocations: 271.2 kB / 0.5116 GB, free: 2.52 MB / 398.1 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002028/0.1541, allocations: 1.52 MB / 0.5131 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.1562, allocations: 1.136 MB / 0.5142 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1563, allocations: 0 / 0.5142 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005564/0.1568, allocations: 274.3 kB / 0.5144 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.1576, allocations: 151.2 kB / 0.5146 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.1676, allocations: 6.253 MB / 0.5207 GB, free: 8.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.1681, allocations: 0.9496 MB / 0.5216 GB, free: 7.969 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004232/0.1686, allocations: 124.5 kB / 0.5217 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.1689, allocations: 255.3 kB / 0.522 GB, free: 7.598 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1689, allocations: 8 kB / 0.522 GB, free: 7.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2344/0.4033, allocations: 15.83 MB / 0.5374 GB, free: 51.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.2, allocations: 18.3 kB / 0.5375 GB, free: 51.12 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)