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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007365/0.0007366, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0007197/0.0007197, allocations: 182 kB / 17.56 MB, free: 6.203 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.256/1.256, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1651/0.1651, allocations: 38.05 MB / 310.1 MB, free: 5.918 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.000515/0.0005152, allocations: 19.11 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2257, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.004256/0.23, allocations: 5.438 MB / 439 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.2327, allocations: 2.386 MB / 441.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005138/0.2332, allocations: 35.81 kB / 441.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004129/0.2336, allocations: 99.14 kB / 441.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006146/0.2342, allocations: 302.5 kB / 441.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008014/0.2351, allocations: 469.9 kB / 442.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007149/0.2358, allocations: 1.143 MB / 443.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007785/0.2366, allocations: 0.716 MB / 444.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000327/0.2369, allocations: 298.4 kB / 444.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003089/0.2372, allocations: 346.1 kB / 444.8 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.2373, allocations: 28 kB / 444.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004624/0.2378, allocations: 371.1 kB / 445.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.2379, allocations: 147.3 kB / 445.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.2381, allocations: 355.5 kB / 445.7 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.2387, allocations: 1.008 MB / 446.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2387, allocations: 0 / 446.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2387, allocations: 0 / 446.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2388, allocations: 0 / 446.7 MB, free: 5.457 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.001687/0.2405, allocations: 1.017 MB / 447.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2405, allocations: 12.03 kB / 447.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.2406, allocations: 102.7 kB / 447.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007694/0.2414, allocations: 163.7 kB / 448 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007274/0.2421, allocations: 0.5813 MB / 448.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/0.2422, allocations: 49.69 kB / 448.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.2423, allocations: 64.28 kB / 448.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.2434, allocations: 0.7914 MB / 449.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.2434, allocations: 7.938 kB / 449.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.2435, allocations: 20 kB / 449.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.2435, allocations: 33.3 kB / 449.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2447, allocations: 0.6843 MB / 450.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.2483, allocations: 2.957 MB / 453.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.2498, allocations: 0.7656 MB / 453.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005285/0.2503, allocations: 266.9 kB / 454.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.2504, allocations: 12.42 kB / 454.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.2504, allocations: 39 kB / 454.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.234e-06/0.2504, allocations: 0 / 454.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001731/0.2522, allocations: 0.7949 MB / 455 MB, free: 12.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.2523, allocations: 115.3 kB / 455.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007643/0.253, allocations: 0.5822 MB / 455.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.369e-05/0.2531, allocations: 37.7 kB / 455.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.2534, allocations: 357.1 kB / 456.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.2535, allocations: 181.3 kB / 456.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.822e-05/0.2536, allocations: 57.69 kB / 456.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2538, allocations: 382.7 kB / 456.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.2543, allocations: 237.2 kB / 456.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006231/0.2549, allocations: 373.6 kB / 457.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.2561, allocations: 0.6173 MB / 457.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2561, allocations: 0 / 457.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001898/0.258, allocations: 0.8777 MB / 458.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.2581, allocations: 188.2 kB / 459 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.2582, allocations: 11.94 kB / 459 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004151/0.2586, allocations: 116.7 kB / 459.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/0.2592, allocations: 147.8 kB / 459.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002894/0.2621, allocations: 2.248 MB / 461.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.2626, allocations: 99.39 kB / 461.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.2626, allocations: 23.98 kB / 461.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.2627, allocations: 7.938 kB / 461.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001382/0.264, allocations: 0.6657 MB / 462.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2641, allocations: 4 kB / 462.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/0.2643, allocations: 101.2 kB / 462.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005463/0.2649, allocations: 143.8 kB / 462.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.2668, allocations: 2.03 MB / 464.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.2673, allocations: 91.48 kB / 464.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.2673, allocations: 20 kB / 464.7 MB, free: 2.641 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 (61): * Single equations (assignments): 60 * 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.0003828/0.2677, allocations: 304.9 kB / 465 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2679, allocations: 67.16 kB / 465.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.2692, allocations: 0.6318 MB / 465.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2692, allocations: 4 kB / 465.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.2692, allocations: 4 kB / 465.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2692, allocations: 7.984 kB / 465.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.2713, allocations: 1.384 MB / 467.1 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2713, allocations: 4 kB / 467.1 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005729/0.2719, allocations: 115.9 kB / 467.2 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.2719, allocations: 4 kB / 467.2 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.2719, allocations: 15.98 kB / 467.2 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.272, allocations: 4 kB / 467.2 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.272, allocations: 0 / 467.2 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.2738, allocations: 1.011 MB / 468.2 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.274, allocations: 192.3 kB / 468.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.2741, allocations: 16 kB / 468.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.2745, allocations: 51.89 kB / 468.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.661e-05/0.2746, allocations: 44.42 kB / 468.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.2746, allocations: 15.94 kB / 468.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005659/0.2752, allocations: 427 kB / 469 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2752, allocations: 4 kB / 469 MB, free: 14.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008401/0.276, allocations: 267.2 kB / 469.2 MB, free: 13.98 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 (51): * Single equations (assignments): 50 * 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.002092/0.2781, allocations: 1.556 MB / 470.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.2803, allocations: 1.175 MB / 472 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2803, allocations: 0.5 kB / 472 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005852/0.2809, allocations: 294.3 kB / 472.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.2817, allocations: 147.4 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.2928, allocations: 6.958 MB / 479.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.2934, allocations: 0.9497 MB / 480.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004788/0.2938, allocations: 128.6 kB / 480.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.2942, allocations: 255.3 kB / 480.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2942, allocations: 0 / 480.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.3282, allocations: 14.37 MB / 495 MB, free: 3.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.3284, allocations: 234.3 kB / 495.3 MB, free: 3.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.365, allocations: 0 / 495.3 MB, free: 3.66 MB / 366.1 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/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)