Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.0009265/0.0009264, allocations: 180.4 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.884/1.884, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001704/0.001704, allocations: 130.6 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1681/0.1681, allocations: 37.93 MB / 330.9 MB, free: 2.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.611e-05/2.604e-05, allocations: 7.938 kB / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3279, allocations: 53.22 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.4704, allocations: 96.58 MB / 0.5276 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.4708, allocations: 83.95 kB / 0.5277 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.361/0.8318, allocations: 21.4 MB / 0.5486 GB, free: 80.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.8319, allocations: 0 / 0.5486 GB, free: 80.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.994e-05/0.832, allocations: 16 kB / 0.5486 GB, free: 80.77 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.001565/0.8335, allocations: 0.9093 MB / 0.5495 GB, free: 79.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.8336, allocations: 8.031 kB / 0.5495 GB, free: 79.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009189/0.8345, allocations: 174.8 kB / 0.5497 GB, free: 79.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008092/0.8353, allocations: 0.5539 MB / 0.5502 GB, free: 79.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.8354, allocations: 20 kB / 0.5502 GB, free: 79.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/0.8355, allocations: 35.94 kB / 0.5503 GB, free: 78.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007428/0.8362, allocations: 446.5 kB / 0.5507 GB, free: 78.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008144/0.837, allocations: 0.5785 MB / 0.5512 GB, free: 77.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.8371, allocations: 4 kB / 0.5513 GB, free: 77.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.8371, allocations: 0 / 0.5513 GB, free: 77.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.7e-05/0.8372, allocations: 29.31 kB / 0.5513 GB, free: 77.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.8404, allocations: 2.45 MB / 0.5537 GB, free: 75.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008068/0.8413, allocations: 0.586 MB / 0.5542 GB, free: 74.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.8415, allocations: 179 kB / 0.5544 GB, free: 74.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.587e-05/0.8416, allocations: 11.95 kB / 0.5544 GB, free: 74.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.8416, allocations: 35 kB / 0.5545 GB, free: 74.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.254e-06/0.8416, allocations: 0 / 0.5545 GB, free: 74.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.0006518/0.8423, allocations: 415.4 kB / 0.5549 GB, free: 74.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.8423, allocations: 111.3 kB / 0.555 GB, free: 74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.8427, allocations: 365.3 kB / 0.5553 GB, free: 73.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.8427, allocations: 25.7 kB / 0.5553 GB, free: 73.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.8429, allocations: 324.3 kB / 0.5556 GB, free: 73.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.843, allocations: 169.4 kB / 0.5558 GB, free: 73.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.843, allocations: 0 / 0.5558 GB, free: 73.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.8431, allocations: 366.8 kB / 0.5562 GB, free: 72.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.8434, allocations: 153.1 kB / 0.5563 GB, free: 72.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.8436, allocations: 260.1 kB / 0.5565 GB, free: 72.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.8439, allocations: 184.7 kB / 0.5567 GB, free: 72.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.8439, allocations: 0 / 0.5567 GB, free: 72.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009494/0.8449, allocations: 0.5976 MB / 0.5573 GB, free: 71.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002546/0.8452, allocations: 1.046 MB / 0.5583 GB, free: 70.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.8452, allocations: 4 kB / 0.5583 GB, free: 70.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000334/0.8455, allocations: 108.9 kB / 0.5584 GB, free: 70.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004753/0.846, allocations: 135.8 kB / 0.5586 GB, free: 70.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004466/0.8465, allocations: 0.6888 MB / 0.5592 GB, free: 69.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.8469, allocations: 63.7 kB / 0.5593 GB, free: 69.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.8469, allocations: 16 kB / 0.5593 GB, free: 69.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/0.8469, allocations: 4 kB / 0.5593 GB, free: 69.35 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007265/0.8477, allocations: 470.9 kB / 0.5598 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.8477, allocations: 12.33 kB / 0.5598 GB, free: 68.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002318/0.8479, allocations: 84.75 kB / 0.5599 GB, free: 68.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.8484, allocations: 127.9 kB / 0.56 GB, free: 68.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.8499, allocations: 1.885 MB / 0.5618 GB, free: 66.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.8503, allocations: 51.72 kB / 0.5619 GB, free: 66.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.8503, allocations: 23.98 kB / 0.5619 GB, free: 66.58 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real 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.0001729/0.8505, allocations: 117 kB / 0.562 GB, free: 66.46 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005761/0.8511, allocations: 415.7 kB / 0.5624 GB, free: 66.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-05/0.8512, allocations: 59.28 kB / 0.5625 GB, free: 65.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007064/0.8519, allocations: 453.7 kB / 0.5629 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.8519, allocations: 4 kB / 0.5629 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.8519, allocations: 0 / 0.5629 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.8519, allocations: 3.984 kB / 0.5629 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.8532, allocations: 1.076 MB / 0.564 GB, free: 64.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.8532, allocations: 0 / 0.564 GB, free: 64.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.8537, allocations: 115.9 kB / 0.5641 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.8537, allocations: 7.938 kB / 0.5641 GB, free: 64.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.8538, allocations: 11.98 kB / 0.5641 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.8538, allocations: 0 / 0.5641 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.8538, allocations: 0 / 0.5641 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008057/0.8546, allocations: 0.751 MB / 0.5648 GB, free: 63.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.8548, allocations: 176.3 kB / 0.565 GB, free: 63.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.255e-05/0.8548, allocations: 4 kB / 0.565 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.8552, allocations: 27.97 kB / 0.565 GB, free: 63.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.216e-05/0.8553, allocations: 48.38 kB / 0.5651 GB, free: 63.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.8553, allocations: 11.94 kB / 0.5651 GB, free: 63.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002616/0.8556, allocations: 287 kB / 0.5653 GB, free: 62.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8556, allocations: 3.938 kB / 0.5653 GB, free: 62.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008377/0.8564, allocations: 242.9 kB / 0.5656 GB, free: 62.72 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.001085/0.8575, allocations: 1.376 MB / 0.5669 GB, free: 61.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.8588, allocations: 0.8071 MB / 0.5677 GB, free: 60.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.8588, allocations: 0 / 0.5677 GB, free: 60.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.8591, allocations: 209.7 kB / 0.5679 GB, free: 60.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.8597, allocations: 98.12 kB / 0.568 GB, free: 60.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.8621, allocations: 1.239 MB / 0.5692 GB, free: 58.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.8625, allocations: 0.9461 MB / 0.5701 GB, free: 57.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000528/0.863, allocations: 142.1 kB / 0.5703 GB, free: 57.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.8633, allocations: 223.4 kB / 0.5705 GB, free: 57.57 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8633, allocations: 0 / 0.5705 GB, free: 57.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.8967, allocations: 11.98 MB / 0.5822 GB, free: 45.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.8969, allocations: 139.1 kB / 0.5823 GB, free: 45.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/3.212, allocations: 0 / 0.5823 GB, free: 45.39 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)