Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.00176/0.001759, allocations: 181.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.4 MB / 221.9 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001236/0.001236, allocations: 90.86 kB / 270.2 MB, free: 13.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.285/0.285, allocations: 38.06 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004923/0.0004923, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5312/0.6521, allocations: 103.4 MB / 0.5689 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.6525, allocations: 86.95 kB / 0.569 GB, free: 12.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1011/0.7535, allocations: 22.47 MB / 0.5909 GB, free: 9.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.7536, allocations: 0 / 0.5909 GB, free: 9.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001087/0.7537, allocations: 20 kB / 0.5909 GB, free: 9.48 MB / 394.7 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.003872/0.7576, allocations: 1.058 MB / 0.5919 GB, free: 8.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.7577, allocations: 12.03 kB / 0.592 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004474/0.7581, allocations: 106.8 kB / 0.5921 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001889/0.76, allocations: 170.8 kB / 0.5922 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/0.7624, allocations: 0.6103 MB / 0.5928 GB, free: 7.629 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-05/0.7625, allocations: 52.3 kB / 0.5929 GB, free: 7.594 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.7627, allocations: 63.91 kB / 0.5929 GB, free: 7.551 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.7652, allocations: 0.7479 MB / 0.5937 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.7653, allocations: 0 / 0.5937 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.7654, allocations: 38.25 kB / 0.5937 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.609e-05/0.7655, allocations: 29.31 kB / 0.5937 GB, free: 6.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.768, allocations: 0.6405 MB / 0.5944 GB, free: 6.496 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007903/0.7759, allocations: 2.934 MB / 0.5972 GB, free: 4.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002742/0.7787, allocations: 0.7361 MB / 0.5979 GB, free: 3.488 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-05/0.7788, allocations: 8.5 kB / 0.5979 GB, free: 3.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.7789, allocations: 34.75 kB / 0.598 GB, free: 3.441 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.956e-06/0.7789, allocations: 0 / 0.598 GB, free: 3.441 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002916/0.7818, allocations: 0.7217 MB / 0.5987 GB, free: 2.902 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.782, allocations: 111.4 kB / 0.5988 GB, free: 2.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.7834, allocations: 0.5212 MB / 0.5993 GB, free: 2.352 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.7836, allocations: 36.08 kB / 0.5993 GB, free: 2.316 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.7839, allocations: 371.7 kB / 0.5997 GB, free: 2.055 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.7842, allocations: 181.3 kB / 0.5999 GB, free: 1.898 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.454e-05/0.7843, allocations: 10.91 kB / 0.5999 GB, free: 1.895 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.7845, allocations: 337.3 kB / 0.6002 GB, free: 1.566 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008782/0.7854, allocations: 213.8 kB / 0.6004 GB, free: 1.426 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009533/0.7864, allocations: 346 kB / 0.6007 GB, free: 1.113 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009444/0.7873, allocations: 251.2 kB / 0.601 GB, free: 0.957 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.7874, allocations: 4 kB / 0.601 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002942/0.7903, allocations: 0.7345 MB / 0.6017 GB, free: 408 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007014/0.7911, allocations: 1.405 MB / 0.6031 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.7911, allocations: 4 kB / 0.6031 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009082/0.792, allocations: 140.7 kB / 0.6032 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.7932, allocations: 135 kB / 0.6033 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.7945, allocations: 0.7454 MB / 0.6041 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009956/0.7955, allocations: 89.27 kB / 0.6041 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-05/0.7956, allocations: 23.25 kB / 0.6042 GB, free: 13.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.7957, allocations: 8.062 kB / 0.6042 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002241/0.7979, allocations: 0.6132 MB / 0.6048 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.798, allocations: 4 kB / 0.6048 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004491/0.7984, allocations: 102.2 kB / 0.6049 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.7996, allocations: 138.9 kB / 0.605 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003313/0.8029, allocations: 2.028 MB / 0.607 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006514/0.8036, allocations: 53.27 kB / 0.607 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-05/0.8037, allocations: 23.38 kB / 0.6071 GB, free: 11.38 MB / 410.7 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 (60): * Single equations (assignments): 59 * 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.0006504/0.8044, allocations: 302.9 kB / 0.6073 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002522/0.8046, allocations: 71.23 kB / 0.6074 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.8067, allocations: 0.5677 MB / 0.608 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.8068, allocations: 4.109 kB / 0.608 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.8068, allocations: 11.94 kB / 0.608 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.8068, allocations: 3.984 kB / 0.608 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.8105, allocations: 1.294 MB / 0.6092 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.8105, allocations: 0 / 0.6092 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.8117, allocations: 115.8 kB / 0.6094 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.8118, allocations: 4 kB / 0.6094 GB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.52e-05/0.8119, allocations: 11.69 kB / 0.6094 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.8119, allocations: 0 / 0.6094 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8119, allocations: 384 / 0.6094 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00296/0.8149, allocations: 0.9373 MB / 0.6103 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005334/0.8154, allocations: 192.8 kB / 0.6105 GB, free: 8.625 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/0.8156, allocations: 16.92 kB / 0.6105 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007408/0.8164, allocations: 47.34 kB / 0.6105 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.8166, allocations: 35.94 kB / 0.6106 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.8166, allocations: 15.27 kB / 0.6106 GB, free: 8.535 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001108/0.8177, allocations: 427 kB / 0.611 GB, free: 8.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8178, allocations: 0 / 0.611 GB, free: 8.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001495/0.8193, allocations: 270.3 kB / 0.6112 GB, free: 7.973 MB / 410.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 () * Number of clocked 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.003659/0.823, allocations: 1.556 MB / 0.6128 GB, free: 6.613 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003584/0.8266, allocations: 0.9492 MB / 0.6137 GB, free: 5.656 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.8267, allocations: 0 / 0.6137 GB, free: 5.656 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.8277, allocations: 266.5 kB / 0.6139 GB, free: 5.391 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.829, allocations: 127.8 kB / 0.6141 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/0.845, allocations: 6.89 MB / 0.6208 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007695/0.8458, allocations: 0.9537 MB / 0.6217 GB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00071/0.8465, allocations: 263.3 kB / 0.622 GB, free: 13 MB / 426.7 MB Notification: Performance of SimCode: time 1.363e-06/0.8465, allocations: 0 / 0.622 GB, free: 13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.75/3.596, allocations: 12.67 MB / 0.6344 GB, free: 324 kB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)