Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.0009129/0.0009129, allocations: 173.4 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.241/1.241, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007601/0.0007601, allocations: 82.42 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.1673/0.1673, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003801, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3095, allocations: 56.33 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006024/0.3156, allocations: 5.779 MB / 485.5 MB, free: 5.352 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004724/0.3204, allocations: 2.802 MB / 488.3 MB, free: 3.352 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009298/0.3214, allocations: 39.19 kB / 488.4 MB, free: 3.336 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006092/0.322, allocations: 122.9 kB / 488.5 MB, free: 3.27 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.3234, allocations: 448.7 kB / 488.9 MB, free: 3.035 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.3248, allocations: 465.2 kB / 489.4 MB, free: 2.805 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.3266, allocations: 1.207 MB / 490.6 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.3283, allocations: 0.8294 MB / 491.4 MB, free: 1.742 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000699/0.329, allocations: 352.6 kB / 491.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005621/0.3295, allocations: 393 kB / 492.1 MB, free: 1.422 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.704e-05/0.3296, allocations: 27.31 kB / 492.2 MB, free: 1.422 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.3308, allocations: 0.5452 MB / 492.7 MB, free: 1.234 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002332/0.331, allocations: 192 kB / 492.9 MB, free: 1.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.3313, allocations: 364.8 kB / 493.2 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.3327, allocations: 0.9173 MB / 494.2 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.3327, allocations: 4 kB / 494.2 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3327, allocations: 0 / 494.2 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.824e-05/0.3327, allocations: 0 / 494.2 MB, free: 0.6953 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.00233/0.3351, allocations: 1.069 MB / 495.2 MB, free: 15.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3351, allocations: 9.094 kB / 495.2 MB, free: 15.97 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.3353, allocations: 111.1 kB / 495.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.3365, allocations: 204.9 kB / 495.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.3376, allocations: 0.6171 MB / 496.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.657e-05/0.3377, allocations: 53.22 kB / 496.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.3379, allocations: 64.69 kB / 496.3 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.3397, allocations: 0.8857 MB / 497.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.3397, allocations: 10.55 kB / 497.2 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.05e-05/0.3398, allocations: 26.47 kB / 497.2 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-05/0.3399, allocations: 39.34 kB / 497.2 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.3416, allocations: 0.7961 MB / 498 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005326/0.3469, allocations: 3.292 MB / 0.4896 GB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.3487, allocations: 0.9892 MB / 0.4906 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006149/0.3494, allocations: 323.3 kB / 0.4909 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.9e-05/0.3494, allocations: 11.86 kB / 0.4909 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.3495, allocations: 45.42 kB / 0.4909 GB, free: 11.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 2.775e-06/0.3495, allocations: 5.125 kB / 0.4909 GB, free: 11.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.005733/0.3552, allocations: 2.602 MB / 0.4935 GB, free: 9.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.3554, allocations: 113.9 kB / 0.4936 GB, free: 9.551 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009776/0.3563, allocations: 0.5827 MB / 0.4941 GB, free: 9.203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3564, allocations: 36.05 kB / 0.4942 GB, free: 9.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.3567, allocations: 370.7 kB / 0.4945 GB, free: 8.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.3569, allocations: 223.6 kB / 0.4947 GB, free: 8.645 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.736e-05/0.357, allocations: 18.78 kB / 0.4948 GB, free: 8.629 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.3572, allocations: 388.2 kB / 0.4951 GB, free: 8.258 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006571/0.3578, allocations: 275.3 kB / 0.4954 GB, free: 8.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007474/0.3586, allocations: 424 kB / 0.4958 GB, free: 7.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.3599, allocations: 0.7166 MB / 0.4965 GB, free: 7.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3599, allocations: 1.125 kB / 0.4965 GB, free: 7.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001747/0.3617, allocations: 0.8557 MB / 0.4973 GB, free: 6.945 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.3619, allocations: 204.3 kB / 0.4975 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3619, allocations: 3.438 kB / 0.4975 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002852/0.3622, allocations: 66.41 kB / 0.4976 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/0.3629, allocations: 181.8 kB / 0.4978 GB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.3646, allocations: 1.618 MB / 0.4993 GB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005728/0.3652, allocations: 68.88 kB / 0.4994 GB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.556e-05/0.3653, allocations: 27.25 kB / 0.4994 GB, free: 5.023 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/0.3653, allocations: 8.062 kB / 0.4994 GB, free: 5.02 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001509/0.3668, allocations: 0.7331 MB / 0.5002 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3668, allocations: 4.688 kB / 0.5002 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002129/0.367, allocations: 61 kB / 0.5002 GB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006919/0.3677, allocations: 173.6 kB / 0.5004 GB, free: 4.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.3693, allocations: 1.623 MB / 0.502 GB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006083/0.3699, allocations: 61.3 kB / 0.502 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.136e-05/0.37, allocations: 27.55 kB / 0.5021 GB, free: 2.992 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005594/0.3705, allocations: 324.6 kB / 0.5024 GB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3707, allocations: 71.16 kB / 0.5024 GB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.3724, allocations: 0.7958 MB / 0.5032 GB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3724, allocations: 8 kB / 0.5032 GB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3724, allocations: 0 / 0.5032 GB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.3724, allocations: 7.922 kB / 0.5032 GB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004096/0.3765, allocations: 2.186 MB / 0.5054 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.3765, allocations: 8.094 kB / 0.5054 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.3771, allocations: 135.8 kB / 0.5055 GB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/0.3773, allocations: 56.81 kB / 0.5056 GB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.576e-05/0.3774, allocations: 27.98 kB / 0.5056 GB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001514/0.3789, allocations: 1.58 MB / 0.5071 GB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.3789, allocations: 8 kB / 0.5071 GB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.3813, allocations: 1.372 MB / 0.5085 GB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.3816, allocations: 204.1 kB / 0.5087 GB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.3817, allocations: 19.98 kB / 0.5087 GB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.3822, allocations: 63.89 kB / 0.5087 GB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.3824, allocations: 71.8 kB / 0.5088 GB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.3824, allocations: 24 kB / 0.5088 GB, free: 11.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006782/0.3831, allocations: 415 kB / 0.5092 GB, free: 11.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3831, allocations: 3.938 kB / 0.5092 GB, free: 11.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001119/0.3843, allocations: 252 kB / 0.5095 GB, free: 11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 (63): * Single equations (assignments): 61 * 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: 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002794/0.3871, allocations: 1.913 MB / 0.5113 GB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.3896, allocations: 1.283 MB / 0.5126 GB, free: 7.668 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/0.3896, allocations: 4 kB / 0.5126 GB, free: 7.664 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.3905, allocations: 0.492 MB / 0.5131 GB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.3921, allocations: 160.9 kB / 0.5132 GB, free: 7.008 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009379/0.4015, allocations: 5.028 MB / 0.5181 GB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007058/0.4022, allocations: 0.9899 MB / 0.5191 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005061/0.4028, allocations: 291.3 kB / 0.5194 GB, free: 496 kB / 346.7 MB Notification: Performance of SimCode: time 7.42e-07/0.4028, allocations: 0 / 0.5194 GB, free: 496 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.701/4.104, allocations: 14.42 MB / 0.5335 GB, free: 2.035 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)