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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001102/0.001101, allocations: 182.8 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.649/1.649, allocations: 194.3 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00164/0.00164, allocations: 118.3 kB / 253.5 MB, free: 9.594 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1609/0.1609, allocations: 37.92 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.864e-05/3.876e-05, allocations: 0 / 397.6 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2787, allocations: 53.23 MB / 450.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.7376, allocations: 97.45 MB / 0.5354 GB, free: 32.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.7379, allocations: 89.78 kB / 0.5355 GB, free: 32.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06365/0.8015, allocations: 21.69 MB / 0.5567 GB, free: 30.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.8016, allocations: 3.875 kB / 0.5567 GB, free: 30.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.404e-05/0.8017, allocations: 15.3 kB / 0.5567 GB, free: 30.42 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002787/0.8045, allocations: 0.927 MB / 0.5576 GB, free: 29.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.8046, allocations: 7.531 kB / 0.5576 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/0.8048, allocations: 95.88 kB / 0.5577 GB, free: 29.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001777/0.8066, allocations: 174.5 kB / 0.5579 GB, free: 29.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.808, allocations: 0.5579 MB / 0.5584 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.8081, allocations: 43.12 kB / 0.5585 GB, free: 29.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.8083, allocations: 72.19 kB / 0.5586 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.81, allocations: 0.6581 MB / 0.5592 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.8101, allocations: 3.938 kB / 0.5592 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.005e-05/0.8102, allocations: 23.5 kB / 0.5592 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.155e-05/0.8102, allocations: 27.97 kB / 0.5593 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.8118, allocations: 0.5413 MB / 0.5598 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006179/0.818, allocations: 2.566 MB / 0.5623 GB, free: 28.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.8198, allocations: 0.6232 MB / 0.5629 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004868/0.8203, allocations: 191.8 kB / 0.5631 GB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.867e-05/0.8204, allocations: 4.344 kB / 0.5631 GB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.8205, allocations: 43.75 kB / 0.5631 GB, free: 28.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.777e-06/0.8205, allocations: 0 / 0.5631 GB, free: 28.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.001257/0.8217, allocations: 452.3 kB / 0.5636 GB, free: 28.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.8218, allocations: 115 kB / 0.5637 GB, free: 27.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.8224, allocations: 449.1 kB / 0.5641 GB, free: 27.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.8224, allocations: 37.42 kB / 0.5641 GB, free: 27.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.8226, allocations: 326.1 kB / 0.5644 GB, free: 27.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.8227, allocations: 178.6 kB / 0.5646 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.8228, allocations: 11.09 kB / 0.5646 GB, free: 27.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.8229, allocations: 372 kB / 0.565 GB, free: 27.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.8231, allocations: 170.5 kB / 0.5651 GB, free: 27.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.8234, allocations: 275.9 kB / 0.5654 GB, free: 27.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.8237, allocations: 198.1 kB / 0.5656 GB, free: 27.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.8237, allocations: 0 / 0.5656 GB, free: 27.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001033/0.8248, allocations: 0.6575 MB / 0.5662 GB, free: 26.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001951/0.825, allocations: 1.049 MB / 0.5673 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.825, allocations: 3.906 kB / 0.5673 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003403/0.8253, allocations: 105.5 kB / 0.5674 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.8259, allocations: 134.7 kB / 0.5675 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004256/0.8263, allocations: 0.6813 MB / 0.5682 GB, free: 25.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.8268, allocations: 92.45 kB / 0.5682 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.8269, allocations: 23.22 kB / 0.5683 GB, free: 25.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.8269, allocations: 7.859 kB / 0.5683 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007896/0.8277, allocations: 0.5183 MB / 0.5688 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.8277, allocations: 7.906 kB / 0.5688 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/0.8279, allocations: 93.12 kB / 0.5689 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004872/0.8284, allocations: 142.8 kB / 0.569 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.8299, allocations: 1.917 MB / 0.5709 GB, free: 23.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.8303, allocations: 89.88 kB / 0.571 GB, free: 23.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.8304, allocations: 15 kB / 0.571 GB, free: 23.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.8305, allocations: 141.9 kB / 0.5711 GB, free: 23.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/0.8306, allocations: 66.41 kB / 0.5712 GB, free: 23.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007981/0.8314, allocations: 493.5 kB / 0.5717 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.8314, allocations: 3.906 kB / 0.5717 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.8314, allocations: 4 kB / 0.5717 GB, free: 23.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.8314, allocations: 3.328 kB / 0.5717 GB, free: 23.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.8328, allocations: 1.201 MB / 0.5728 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.8328, allocations: 0 / 0.5728 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005637/0.8334, allocations: 123.9 kB / 0.573 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.8334, allocations: 0 / 0.573 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.8335, allocations: 10.72 kB / 0.573 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.8335, allocations: 4.094 kB / 0.573 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.8335, allocations: 0 / 0.573 GB, free: 23.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009095/0.8344, allocations: 0.813 MB / 0.5738 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.8346, allocations: 185.1 kB / 0.5739 GB, free: 22.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.492e-05/0.8346, allocations: 13.92 kB / 0.574 GB, free: 22.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.835, allocations: 48.27 kB / 0.574 GB, free: 22.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.79e-05/0.8351, allocations: 36.61 kB / 0.574 GB, free: 22.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.8352, allocations: 19.22 kB / 0.5741 GB, free: 22.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003601/0.8355, allocations: 361.4 kB / 0.5744 GB, free: 22.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8355, allocations: 0 / 0.5744 GB, free: 22.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007474/0.8363, allocations: 263.2 kB / 0.5746 GB, free: 22.76 MB / 378.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 () * 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.00119/0.8375, allocations: 1.437 MB / 0.5761 GB, free: 21.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.8388, allocations: 0.8351 MB / 0.5769 GB, free: 21.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.8388, allocations: 0 / 0.5769 GB, free: 21.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.8391, allocations: 225.4 kB / 0.5771 GB, free: 21.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006266/0.8398, allocations: 108.9 kB / 0.5772 GB, free: 21.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.8421, allocations: 1.296 MB / 0.5785 GB, free: 21.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.8424, allocations: 0.9461 MB / 0.5794 GB, free: 20.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005444/0.843, allocations: 160.5 kB / 0.5795 GB, free: 20.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/0.8433, allocations: 233.9 kB / 0.5798 GB, free: 20.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.8433, allocations: 4 kB / 0.5798 GB, free: 20.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.8701, allocations: 13.75 MB / 0.5932 GB, free: 14.13 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.8703, allocations: 180.4 kB / 0.5934 GB, free: 13.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/3.155, allocations: 3.938 kB / 0.5934 GB, free: 13.9 MB / 378.7 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/linux/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)