Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_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.0008758/0.0008758, allocations: 173.2 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0009044/0.0009045, allocations: 87.59 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.164/0.164, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004107, allocations: 16 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2641, allocations: 56.33 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.005613/0.2697, allocations: 5.162 MB / 484.9 MB, free: 5.805 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003559/0.2733, allocations: 2.305 MB / 487.2 MB, free: 4.156 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006134/0.274, allocations: 33.84 kB / 487.2 MB, free: 4.145 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.2744, allocations: 109 kB / 487.3 MB, free: 4.082 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007802/0.2752, allocations: 319.3 kB / 487.7 MB, free: 3.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2763, allocations: 392.7 kB / 488 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.2774, allocations: 1.022 MB / 489.1 MB, free: 3.238 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.2784, allocations: 0.7004 MB / 489.8 MB, free: 2.773 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.2789, allocations: 301.8 kB / 490.1 MB, free: 2.641 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004264/0.2794, allocations: 322.9 kB / 490.4 MB, free: 2.496 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.208e-05/0.2794, allocations: 29.69 kB / 490.4 MB, free: 2.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007283/0.2802, allocations: 355 kB / 490.7 MB, free: 2.375 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.2804, allocations: 145.7 kB / 490.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.2807, allocations: 329.3 kB / 491.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.2817, allocations: 0.8095 MB / 492 MB, free: 1.887 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2818, allocations: 0 / 492 MB, free: 1.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.2818, allocations: 1.656 kB / 492 MB, free: 1.887 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.2818, allocations: 0 / 492 MB, free: 1.887 MB / 314.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.002062/0.2839, allocations: 1.007 MB / 493 MB, free: 1.199 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.2839, allocations: 9.562 kB / 493 MB, free: 1.199 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.2841, allocations: 109.4 kB / 493.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008141/0.2849, allocations: 162.8 kB / 493.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009508/0.2858, allocations: 0.5859 MB / 493.9 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.7e-05/0.2859, allocations: 46.09 kB / 493.9 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.286, allocations: 65.66 kB / 494 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.2876, allocations: 0.7919 MB / 494.8 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.2876, allocations: 1.25 kB / 494.8 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.806e-05/0.2877, allocations: 26.5 kB / 494.8 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.904e-05/0.2877, allocations: 32.97 kB / 494.8 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.2892, allocations: 0.681 MB / 495.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/0.2939, allocations: 2.941 MB / 498.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.2955, allocations: 0.7679 MB / 499.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.2961, allocations: 267 kB / 499.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.426e-05/0.2962, allocations: 10 kB / 499.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.2962, allocations: 41.97 kB / 499.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.885e-06/0.2962, allocations: 0 / 499.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.00188/0.2981, allocations: 0.789 MB / 0.4886 GB, free: 13.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.2982, allocations: 116.9 kB / 0.4887 GB, free: 12.99 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008309/0.299, allocations: 0.5749 MB / 0.4893 GB, free: 12.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.2991, allocations: 35.95 kB / 0.4893 GB, free: 12.61 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000272/0.2994, allocations: 356.9 kB / 0.4897 GB, free: 12.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.2996, allocations: 183.1 kB / 0.4898 GB, free: 12.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.2996, allocations: 14.09 kB / 0.4898 GB, free: 12.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.2998, allocations: 382.6 kB / 0.4902 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005514/0.3003, allocations: 232.6 kB / 0.4904 GB, free: 11.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006262/0.301, allocations: 366.4 kB / 0.4908 GB, free: 11.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.3022, allocations: 0.6108 MB / 0.4914 GB, free: 11.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3022, allocations: 0 / 0.4914 GB, free: 11.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002046/0.3042, allocations: 0.8734 MB / 0.4922 GB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.3044, allocations: 199.4 kB / 0.4924 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3044, allocations: 3.156 kB / 0.4924 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000516/0.3049, allocations: 135.8 kB / 0.4926 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.3056, allocations: 153.1 kB / 0.4927 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003119/0.3087, allocations: 2.249 MB / 0.4949 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.3093, allocations: 95.55 kB / 0.495 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-05/0.3094, allocations: 24.98 kB / 0.495 GB, free: 8.254 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/0.3094, allocations: 6.906 kB / 0.495 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001607/0.311, allocations: 0.668 MB / 0.4957 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3111, allocations: 7.875 kB / 0.4957 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.3114, allocations: 97.89 kB / 0.4958 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000593/0.312, allocations: 145.2 kB / 0.4959 GB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00226/0.3142, allocations: 2.02 MB / 0.4979 GB, free: 6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.3148, allocations: 88.08 kB / 0.498 GB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.817e-05/0.3149, allocations: 20.38 kB / 0.498 GB, free: 5.945 MB / 330.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 (61): * Single equations (assignments): 60 * 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.0005554/0.3155, allocations: 306.9 kB / 0.4983 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.3157, allocations: 71.84 kB / 0.4984 GB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.3173, allocations: 0.6266 MB / 0.499 GB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3173, allocations: 5.5 kB / 0.499 GB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3173, allocations: 0 / 0.499 GB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3173, allocations: 5.359 kB / 0.499 GB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/0.32, allocations: 1.389 MB / 0.5003 GB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.32, allocations: 1.812 kB / 0.5003 GB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006286/0.3207, allocations: 117 kB / 0.5004 GB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.3207, allocations: 6.625 kB / 0.5004 GB, free: 4.297 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.305e-05/0.3208, allocations: 16.14 kB / 0.5005 GB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3208, allocations: 2.438 kB / 0.5005 GB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3208, allocations: 1.5 kB / 0.5005 GB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.3228, allocations: 1.009 MB / 0.5015 GB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.3231, allocations: 196.1 kB / 0.5016 GB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.3233, allocations: 8.188 kB / 0.5016 GB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.3237, allocations: 51.95 kB / 0.5017 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3239, allocations: 44.25 kB / 0.5017 GB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/0.3239, allocations: 19.98 kB / 0.5018 GB, free: 3.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006279/0.3245, allocations: 415 kB / 0.5022 GB, free: 2.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3245, allocations: 0 / 0.5022 GB, free: 2.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001008/0.3256, allocations: 275.2 kB / 0.5024 GB, free: 2.699 MB / 330.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 (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.002099/0.3277, allocations: 1.548 MB / 0.5039 GB, free: 1.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.33, allocations: 1.176 MB / 0.5051 GB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.33, allocations: 0 / 0.5051 GB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005788/0.3306, allocations: 294.4 kB / 0.5054 GB, free: 15.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008736/0.3315, allocations: 141 kB / 0.5055 GB, free: 15.49 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/0.3405, allocations: 4.79 MB / 0.5102 GB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.3412, allocations: 0.946 MB / 0.5111 GB, free: 9.609 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.3416, allocations: 259.4 kB / 0.5113 GB, free: 9.359 MB / 346.7 MB Notification: Performance of SimCode: time 2.425e-06/0.3416, allocations: 0 / 0.5113 GB, free: 9.359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.412/3.754, allocations: 11.82 MB / 0.5229 GB, free: 13.52 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)