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.001256/0.001256, allocations: 179.6 kB / 8.349 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.716/1.716, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001918/0.001919, allocations: 112.7 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.249/0.249, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.266e-05/2.268e-05, allocations: 3.984 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.328, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.4704, allocations: 96.78 MB / 0.5278 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.4708, allocations: 83.95 kB / 0.5279 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3585/0.8293, allocations: 21.55 MB / 0.5489 GB, free: 80.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.8293, allocations: 0 / 0.5489 GB, free: 80.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.168e-05/0.8294, allocations: 19.91 kB / 0.5489 GB, free: 80.45 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.001659/0.8311, allocations: 0.9211 MB / 0.5498 GB, free: 79.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.8311, allocations: 8.031 kB / 0.5499 GB, free: 79.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000901/0.832, allocations: 178.8 kB / 0.55 GB, free: 79.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008336/0.8329, allocations: 0.5497 MB / 0.5506 GB, free: 78.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.8329, allocations: 20 kB / 0.5506 GB, free: 78.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.066e-05/0.833, allocations: 39.91 kB / 0.5506 GB, free: 78.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00074/0.8338, allocations: 458.4 kB / 0.5511 GB, free: 78.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008429/0.8346, allocations: 0.586 MB / 0.5516 GB, free: 77.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.8347, allocations: 0 / 0.5516 GB, free: 77.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.966e-05/0.8347, allocations: 0 / 0.5516 GB, free: 77.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/0.8348, allocations: 25.31 kB / 0.5517 GB, free: 77.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003403/0.8382, allocations: 2.469 MB / 0.5541 GB, free: 75.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009141/0.8391, allocations: 0.6126 MB / 0.5547 GB, free: 74.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.8394, allocations: 182.9 kB / 0.5548 GB, free: 74.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.8394, allocations: 8.438 kB / 0.5548 GB, free: 74.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.8395, allocations: 42.98 kB / 0.5549 GB, free: 74.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.753e-06/0.8395, allocations: 0 / 0.5549 GB, free: 74.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.0006971/0.8402, allocations: 415.6 kB / 0.5553 GB, free: 73.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.8403, allocations: 115.2 kB / 0.5554 GB, free: 73.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.8406, allocations: 369.3 kB / 0.5557 GB, free: 73.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.8407, allocations: 29.7 kB / 0.5558 GB, free: 73.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.8408, allocations: 324.4 kB / 0.5561 GB, free: 72.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.8409, allocations: 173.5 kB / 0.5562 GB, free: 72.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.301e-05/0.841, allocations: 3.938 kB / 0.5563 GB, free: 72.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.8411, allocations: 370.8 kB / 0.5566 GB, free: 72.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.8413, allocations: 153.1 kB / 0.5568 GB, free: 72.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.8416, allocations: 264.8 kB / 0.557 GB, free: 71.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.8419, allocations: 194.1 kB / 0.5572 GB, free: 71.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.8419, allocations: 0 / 0.5572 GB, free: 71.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001001/0.8429, allocations: 0.6044 MB / 0.5578 GB, free: 71.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000249/0.8432, allocations: 1.057 MB / 0.5588 GB, free: 69.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.8432, allocations: 4 kB / 0.5588 GB, free: 69.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/0.8435, allocations: 104.7 kB / 0.5589 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/0.844, allocations: 140 kB / 0.559 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004279/0.8445, allocations: 0.6927 MB / 0.5597 GB, free: 68.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.8449, allocations: 71.64 kB / 0.5598 GB, free: 68.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.8449, allocations: 23.98 kB / 0.5598 GB, free: 68.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-06/0.845, allocations: 6.031 kB / 0.5598 GB, free: 68.87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007083/0.8457, allocations: 481.9 kB / 0.5603 GB, free: 68.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.8457, allocations: 4 kB / 0.5603 GB, free: 68.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000206/0.8459, allocations: 88.75 kB / 0.5604 GB, free: 68.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.8464, allocations: 144.1 kB / 0.5605 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.8479, allocations: 1.893 MB / 0.5624 GB, free: 66.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.8483, allocations: 55.56 kB / 0.5624 GB, free: 66.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.483e-05/0.8483, allocations: 28.05 kB / 0.5624 GB, free: 66.07 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 (58): * Single equations (assignments): 57 * 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.0001868/0.8485, allocations: 121.3 kB / 0.5626 GB, free: 65.95 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006302/0.8491, allocations: 419.4 kB / 0.563 GB, free: 65.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.8492, allocations: 55.3 kB / 0.563 GB, free: 65.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007087/0.85, allocations: 461.8 kB / 0.5634 GB, free: 65.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.85, allocations: 4 kB / 0.5634 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.85, allocations: 3.938 kB / 0.5635 GB, free: 65.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.85, allocations: 12.02 kB / 0.5635 GB, free: 65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.8513, allocations: 1.088 MB / 0.5645 GB, free: 63.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8513, allocations: 0 / 0.5645 GB, free: 63.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.8519, allocations: 123.9 kB / 0.5646 GB, free: 63.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.8519, allocations: 4 kB / 0.5646 GB, free: 63.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.8519, allocations: 7.938 kB / 0.5647 GB, free: 63.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.8519, allocations: 4 kB / 0.5647 GB, free: 63.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8519, allocations: 0 / 0.5647 GB, free: 63.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008281/0.8528, allocations: 0.7705 MB / 0.5654 GB, free: 62.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.8529, allocations: 188.2 kB / 0.5656 GB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.285e-05/0.853, allocations: 4 kB / 0.5656 GB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.8534, allocations: 39.95 kB / 0.5656 GB, free: 62.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.034e-05/0.8535, allocations: 40.38 kB / 0.5657 GB, free: 62.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.8535, allocations: 12 kB / 0.5657 GB, free: 62.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003038/0.8538, allocations: 294.9 kB / 0.566 GB, free: 62.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.8538, allocations: 4.094 kB / 0.566 GB, free: 62.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000759/0.8546, allocations: 242.9 kB / 0.5662 GB, free: 62.12 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 (51): * Single equations (assignments): 50 * 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.001168/0.8558, allocations: 1.392 MB / 0.5676 GB, free: 60.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.8571, allocations: 0.8264 MB / 0.5684 GB, free: 59.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.8571, allocations: 1.375 kB / 0.5684 GB, free: 59.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.8574, allocations: 209.6 kB / 0.5686 GB, free: 59.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.858, allocations: 106.4 kB / 0.5687 GB, free: 59.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.8602, allocations: 1.243 MB / 0.5699 GB, free: 58.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.8606, allocations: 0.9425 MB / 0.5708 GB, free: 57.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005443/0.8612, allocations: 154.2 kB / 0.571 GB, free: 57.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.8615, allocations: 231.3 kB / 0.5712 GB, free: 56.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.8615, allocations: 0 / 0.5712 GB, free: 56.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.8938, allocations: 12.25 MB / 0.5831 GB, free: 44.65 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/0.894, allocations: 139.2 kB / 0.5833 GB, free: 44.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.351/3.245, allocations: 3.938 kB / 0.5833 GB, free: 44.46 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)