Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.884/1.884, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001056, allocations: 79 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2078/0.2078, allocations: 38 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.849e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 56.33 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5641, allocations: 102.9 MB / 0.5565 GB, free: 7.922 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5645, allocations: 83.95 kB / 0.5566 GB, free: 7.84 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06047/0.625, allocations: 22.43 MB / 0.5785 GB, free: 1.254 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.625, allocations: 0 / 0.5785 GB, free: 1.254 MB / 411.1 MB Notification: Performance of Transformations before backend: time 7.899e-05/0.6251, allocations: 15.94 kB / 0.5785 GB, free: 1.238 MB / 411.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.002003/0.6271, allocations: 0.9601 MB / 0.5794 GB, free: 236 kB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.935e-05/0.6272, allocations: 8.031 kB / 0.5794 GB, free: 228 kB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.6282, allocations: 182.7 kB / 0.5796 GB, free: 44 kB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.6294, allocations: 0.5972 MB / 0.5802 GB, free: 15.4 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.224e-05/0.6294, allocations: 20 kB / 0.5802 GB, free: 15.38 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-05/0.6295, allocations: 36 kB / 0.5802 GB, free: 15.35 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009323/0.6305, allocations: 470.5 kB / 0.5807 GB, free: 14.89 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.6316, allocations: 0.6209 MB / 0.5813 GB, free: 14.23 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.6316, allocations: 4 kB / 0.5813 GB, free: 14.22 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.949e-05/0.6317, allocations: 7.953 kB / 0.5813 GB, free: 14.21 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.392e-05/0.6317, allocations: 25.31 kB / 0.5813 GB, free: 14.19 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0044/0.6361, allocations: 2.873 MB / 0.5841 GB, free: 11.21 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.6373, allocations: 0.6359 MB / 0.5848 GB, free: 10.54 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.6376, allocations: 183.1 kB / 0.5849 GB, free: 10.35 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.62e-05/0.6377, allocations: 12.42 kB / 0.585 GB, free: 10.34 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.6377, allocations: 43 kB / 0.585 GB, free: 10.29 MB / 427.1 MB Notification: Performance of pre-optimization done (n=51): time 2.775e-06/0.6377, allocations: 0 / 0.585 GB, free: 10.29 MB / 427.1 MB Notification: Performance of matching and sorting (n=51): time 0.0008611/0.6386, allocations: 437.3 kB / 0.5854 GB, free: 9.859 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.6387, allocations: 107.4 kB / 0.5855 GB, free: 9.73 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005065/0.6392, allocations: 402.1 kB / 0.5859 GB, free: 9.332 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.6393, allocations: 25.7 kB / 0.5859 GB, free: 9.301 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.6396, allocations: 356.1 kB / 0.5863 GB, free: 8.945 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.6397, allocations: 177.4 kB / 0.5864 GB, free: 8.77 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.6398, allocations: 0 / 0.5864 GB, free: 8.77 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.64, allocations: 378.8 kB / 0.5868 GB, free: 8.391 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.6403, allocations: 161.5 kB / 0.5869 GB, free: 8.23 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004077/0.6407, allocations: 289.4 kB / 0.5872 GB, free: 7.898 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.6411, allocations: 206.1 kB / 0.5874 GB, free: 7.695 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.6411, allocations: 4 kB / 0.5874 GB, free: 7.691 MB / 427.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001329/0.6424, allocations: 0.6512 MB / 0.5881 GB, free: 7.031 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007924/0.6432, allocations: 1.397 MB / 0.5894 GB, free: 5.523 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.6432, allocations: 4 kB / 0.5894 GB, free: 5.52 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004246/0.6437, allocations: 116.8 kB / 0.5895 GB, free: 5.402 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/0.6443, allocations: 147.9 kB / 0.5897 GB, free: 5.258 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007125/0.645, allocations: 0.7162 MB / 0.5904 GB, free: 4.516 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004864/0.6455, allocations: 75.55 kB / 0.5904 GB, free: 4.441 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.6456, allocations: 20 kB / 0.5905 GB, free: 4.422 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.6456, allocations: 4 kB / 0.5905 GB, free: 4.418 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001001/0.6466, allocations: 0.5098 MB / 0.591 GB, free: 3.906 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.6466, allocations: 4 kB / 0.591 GB, free: 3.902 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/0.6469, allocations: 104.7 kB / 0.5911 GB, free: 3.797 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.6475, allocations: 148.1 kB / 0.5912 GB, free: 3.652 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.6498, allocations: 1.967 MB / 0.5931 GB, free: 1.566 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.6502, allocations: 59.64 kB / 0.5932 GB, free: 1.508 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.6503, allocations: 24.06 kB / 0.5932 GB, free: 1.484 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 61 * 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.0002536/0.6505, allocations: 122.7 kB / 0.5933 GB, free: 1.359 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000737/0.6513, allocations: 431.3 kB / 0.5937 GB, free: 0.9297 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.6514, allocations: 71.11 kB / 0.5938 GB, free: 0.8594 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000914/0.6523, allocations: 466.4 kB / 0.5943 GB, free: 408 kB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.6523, allocations: 11.98 kB / 0.5943 GB, free: 396 kB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.6523, allocations: 0 / 0.5943 GB, free: 396 kB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.6524, allocations: 4.031 kB / 0.5943 GB, free: 392 kB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.6541, allocations: 1.123 MB / 0.5954 GB, free: 15.21 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6542, allocations: 3.984 kB / 0.5954 GB, free: 15.21 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.6548, allocations: 119.9 kB / 0.5955 GB, free: 15.09 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-05/0.6548, allocations: 8 kB / 0.5955 GB, free: 15.08 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.6548, allocations: 7.984 kB / 0.5955 GB, free: 15.07 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6549, allocations: 4 kB / 0.5955 GB, free: 15.07 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6549, allocations: 0 / 0.5955 GB, free: 15.07 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.656, allocations: 0.7939 MB / 0.5963 GB, free: 14.25 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.6562, allocations: 184.1 kB / 0.5965 GB, free: 14.05 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.6563, allocations: 12 kB / 0.5965 GB, free: 14.04 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.6567, allocations: 39.95 kB / 0.5965 GB, free: 14 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6568, allocations: 36.38 kB / 0.5965 GB, free: 13.96 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.6569, allocations: 19.98 kB / 0.5966 GB, free: 13.95 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0003943/0.6573, allocations: 310.9 kB / 0.5969 GB, free: 13.64 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6573, allocations: 0 / 0.5969 GB, free: 13.64 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0009248/0.6582, allocations: 255.9 kB / 0.5971 GB, free: 13.39 MB / 443.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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.001673/0.6599, allocations: 1.435 MB / 0.5985 GB, free: 11.93 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.6617, allocations: 0.8641 MB / 0.5993 GB, free: 11.05 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6617, allocations: 0 / 0.5993 GB, free: 11.05 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.6621, allocations: 221.6 kB / 0.5996 GB, free: 10.84 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007494/0.6628, allocations: 110.2 kB / 0.5997 GB, free: 10.73 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.6658, allocations: 1.285 MB / 0.6009 GB, free: 9.398 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006602/0.6665, allocations: 0.9584 MB / 0.6019 GB, free: 8.41 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0006193/0.6671, allocations: 162.6 kB / 0.602 GB, free: 8.25 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.6675, allocations: 247.4 kB / 0.6022 GB, free: 8.008 MB / 443.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6675, allocations: 0 / 0.6022 GB, free: 8.008 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0451/0.7126, allocations: 13.16 MB / 0.6151 GB, free: 10.85 MB / 459.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/0.713, allocations: 147.8 kB / 0.6152 GB, free: 10.66 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/3.117, allocations: 8.031 kB / 0.6152 GB, free: 10.65 MB / 459.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat does not exist to compare? outputFormat=mat