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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 101.6 kB / 16.51 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.00106, allocations: 194.2 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.171/0.171, allocations: 37.99 MB / 308.6 MB, free: 6.25 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 71.89 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2217, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.005956/0.2277, allocations: 5.835 MB / 435.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003051/0.2308, allocations: 2.425 MB / 438.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004067/0.2312, allocations: 35.81 kB / 438.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007924/0.232, allocations: 222.8 kB / 438.5 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005614/0.2326, allocations: 306.5 kB / 438.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008757/0.2335, allocations: 461.7 kB / 439.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007517/0.2342, allocations: 1.131 MB / 440.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000621/0.2348, allocations: 0.5126 MB / 440.9 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.2352, allocations: 342.4 kB / 441.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.2355, allocations: 378.1 kB / 441.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.828e-05/0.2356, allocations: 40 kB / 441.6 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004648/0.236, allocations: 387.1 kB / 442 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.2362, allocations: 179.3 kB / 442.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.2364, allocations: 353.8 kB / 442.5 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006673/0.2371, allocations: 1.04 MB / 443.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2371, allocations: 0 / 443.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2371, allocations: 4 kB / 443.6 MB, free: 6.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2371, allocations: 0 / 443.6 MB, free: 6.117 MB / 318.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.001632/0.2388, allocations: 1.118 MB / 444.7 MB, free: 4.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2388, allocations: 16.03 kB / 444.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.979e-05/0.2389, allocations: 102.6 kB / 444.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007473/0.2396, allocations: 167.7 kB / 445 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.2403, allocations: 0.5813 MB / 445.5 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.2404, allocations: 49.69 kB / 445.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-05/0.2405, allocations: 60.38 kB / 445.6 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.2415, allocations: 0.7523 MB / 446.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.2415, allocations: 7.906 kB / 446.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-05/0.2416, allocations: 31.98 kB / 446.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.454e-05/0.2416, allocations: 25.31 kB / 446.5 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009769/0.2426, allocations: 0.6297 MB / 447.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.2458, allocations: 2.907 MB / 450 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.247, allocations: 0.7146 MB / 450.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/0.2474, allocations: 231 kB / 450.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.595e-05/0.2475, allocations: 12.42 kB / 450.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2475, allocations: 39 kB / 451 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.833e-06/0.2475, allocations: 0 / 451 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001421/0.249, allocations: 0.7019 MB / 451.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.249, allocations: 111.2 kB / 451.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000708/0.2498, allocations: 0.5822 MB / 452.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.2498, allocations: 37.7 kB / 452.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.25, allocations: 360.5 kB / 452.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2502, allocations: 173.5 kB / 452.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.2503, allocations: 98.25 kB / 453 MB, free: 12.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2505, allocations: 382.9 kB / 453.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.251, allocations: 215 kB / 453.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.2515, allocations: 344.5 kB / 454 MB, free: 11.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008964/0.2524, allocations: 0.5529 MB / 454.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.2524, allocations: 4 kB / 454.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001549/0.254, allocations: 0.7845 MB / 455.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.254, allocations: 4 kB / 455.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.254, allocations: 4 kB / 455.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003664/0.2544, allocations: 117.3 kB / 455.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.2549, allocations: 135.7 kB / 455.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/0.2574, allocations: 2.202 MB / 457.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004078/0.2579, allocations: 83.33 kB / 457.8 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.2579, allocations: 20 kB / 457.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005756/0.2585, allocations: 373.2 kB / 458.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004464/0.2589, allocations: 324.5 kB / 458.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007989/0.2598, allocations: 0.5372 MB / 459.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.2598, allocations: 0 / 459.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001219/0.261, allocations: 0.6989 MB / 459.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.261, allocations: 8 kB / 459.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.261, allocations: 4 kB / 459.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002557/0.2613, allocations: 104.2 kB / 459.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.2618, allocations: 132.1 kB / 460 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.2636, allocations: 2.026 MB / 462 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.264, allocations: 63.55 kB / 462.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/0.2641, allocations: 24 kB / 462.1 MB, free: 2.668 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.2643, allocations: 216 kB / 462.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.2644, allocations: 71.22 kB / 462.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.2655, allocations: 0.5577 MB / 463 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2655, allocations: 4 kB / 463 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2655, allocations: 4 kB / 463 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.2655, allocations: 11.92 kB / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.2673, allocations: 1.31 MB / 464.3 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2673, allocations: 4 kB / 464.3 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004972/0.2678, allocations: 111.8 kB / 464.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.2679, allocations: 0 / 464.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.2679, allocations: 11.94 kB / 464.4 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2679, allocations: 4 kB / 464.4 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2679, allocations: 192 / 464.4 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.2693, allocations: 0.9128 MB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.2695, allocations: 196.1 kB / 465.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/0.2696, allocations: 15.94 kB / 465.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000343/0.27, allocations: 35.97 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.274e-05/0.2701, allocations: 36.38 kB / 465.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.2701, allocations: 16 kB / 465.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005365/0.2706, allocations: 427.1 kB / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2706, allocations: 3.938 kB / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007555/0.2714, allocations: 263.2 kB / 466.3 MB, free: 14.37 MB / 350.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001651/0.2731, allocations: 1.458 MB / 467.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.2748, allocations: 1.084 MB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2748, allocations: 0 / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004468/0.2753, allocations: 259 kB / 469.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007062/0.276, allocations: 143.1 kB / 469.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00978/0.2858, allocations: 6.654 MB / 475.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005148/0.2863, allocations: 0.9379 MB / 476.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004279/0.2868, allocations: 116.6 kB / 476.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.2871, allocations: 255.4 kB / 477.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2871, allocations: 0 / 477.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04624/0.3334, allocations: 14.4 MB / 491.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.3336, allocations: 231 kB / 491.8 MB, free: 4.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.407, allocations: 0 / 491.8 MB, free: 4.547 MB / 366.1 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/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)