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: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008496/0.0008497, allocations: 170.9 kB / 16.07 MB, free: 5.695 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.21/1.21, 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.0007286/0.000729, allocations: 96.72 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1646/0.1646, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004351, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2458, allocations: 56.31 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.005066/0.2509, allocations: 5.141 MB / 484.8 MB, free: 5.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003449/0.2544, allocations: 2.294 MB / 487.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005876/0.255, allocations: 32.31 kB / 487.1 MB, free: 4.188 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.2555, allocations: 107 kB / 487.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008236/0.2563, allocations: 321.1 kB / 487.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.2574, allocations: 397.3 kB / 487.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.2585, allocations: 1.009 MB / 488.9 MB, free: 3.285 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001008/0.2596, allocations: 0.6976 MB / 489.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.26, allocations: 295.5 kB / 489.9 MB, free: 2.691 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003657/0.2604, allocations: 318.1 kB / 490.2 MB, free: 2.547 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.2604, allocations: 24.69 kB / 490.2 MB, free: 2.547 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006/0.2611, allocations: 355.2 kB / 490.6 MB, free: 2.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.2612, allocations: 149.2 kB / 490.7 MB, free: 2.363 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.2615, allocations: 324.7 kB / 491 MB, free: 2.137 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.2625, allocations: 0.8039 MB / 491.8 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2625, allocations: 0 / 491.8 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2625, allocations: 1.375 kB / 491.8 MB, free: 1.941 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.2625, allocations: 0 / 491.8 MB, free: 1.941 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.001686/0.2642, allocations: 0.9897 MB / 492.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2642, allocations: 9.906 kB / 492.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007731/0.265, allocations: 162.4 kB / 493 MB, free: 1.203 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008749/0.2659, allocations: 0.587 MB / 493.6 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/0.266, allocations: 46.84 kB / 493.6 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.65e-05/0.2661, allocations: 69.42 kB / 493.7 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.2674, allocations: 0.7638 MB / 494.5 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.2674, allocations: 2.516 kB / 494.5 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.707e-05/0.2675, allocations: 25.28 kB / 494.5 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.226e-05/0.2676, allocations: 29.31 kB / 494.5 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.2688, allocations: 0.6441 MB / 495.2 MB, free: 128 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004334/0.2731, allocations: 2.919 MB / 498.1 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.2745, allocations: 0.7321 MB / 498.8 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.275, allocations: 244.2 kB / 499 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.2751, allocations: 10.84 kB / 499.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.2751, allocations: 37.78 kB / 499.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 3.006e-06/0.2751, allocations: 0 / 499.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.001569/0.2767, allocations: 0.7281 MB / 499.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.084e-05/0.2768, allocations: 112.8 kB / 499.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000823/0.2776, allocations: 0.5912 MB / 0.4888 GB, free: 12.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.318e-05/0.2776, allocations: 36.14 kB / 0.4888 GB, free: 12.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.2779, allocations: 352.5 kB / 0.4892 GB, free: 12.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.278, allocations: 170.7 kB / 0.4893 GB, free: 12.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.2781, allocations: 10.03 kB / 0.4893 GB, free: 12.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2782, allocations: 378.5 kB / 0.4897 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004602/0.2787, allocations: 215.5 kB / 0.4899 GB, free: 11.92 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005342/0.2792, allocations: 346.5 kB / 0.4902 GB, free: 11.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009789/0.2802, allocations: 0.5748 MB / 0.4908 GB, free: 11.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.2802, allocations: 5.281 kB / 0.4908 GB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001779/0.282, allocations: 0.8197 MB / 0.4916 GB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.2821, allocations: 191.6 kB / 0.4918 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2822, allocations: 3.938 kB / 0.4918 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.2826, allocations: 147.7 kB / 0.4919 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005593/0.2832, allocations: 133.7 kB / 0.4921 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/0.286, allocations: 2.257 MB / 0.4943 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.2864, allocations: 83.44 kB / 0.4943 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.2865, allocations: 24.61 kB / 0.4944 GB, free: 8.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.2865, allocations: 4.031 kB / 0.4944 GB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00124/0.2878, allocations: 0.6265 MB / 0.495 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2878, allocations: 3.438 kB / 0.495 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.2881, allocations: 99.28 kB / 0.4951 GB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.2886, allocations: 138 kB / 0.4952 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.2906, allocations: 2.021 MB / 0.4972 GB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.2911, allocations: 70.03 kB / 0.4972 GB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.2911, allocations: 25.33 kB / 0.4973 GB, free: 6.289 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 (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.0004486/0.2916, allocations: 312.6 kB / 0.4976 GB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.2917, allocations: 67.88 kB / 0.4976 GB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.2929, allocations: 0.5808 MB / 0.4982 GB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2929, allocations: 5.781 kB / 0.4982 GB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2929, allocations: 8 kB / 0.4982 GB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.293, allocations: 5.375 kB / 0.4982 GB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.295, allocations: 1.334 MB / 0.4995 GB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2951, allocations: 1.219 kB / 0.4995 GB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005528/0.2956, allocations: 119 kB / 0.4996 GB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2956, allocations: 3.156 kB / 0.4996 GB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.936e-05/0.2957, allocations: 7.656 kB / 0.4996 GB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.956e-06/0.2957, allocations: 6.516 kB / 0.4997 GB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2957, allocations: 3.938 kB / 0.4997 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.2972, allocations: 0.9339 MB / 0.5006 GB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.2975, allocations: 192 kB / 0.5008 GB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.086e-05/0.2976, allocations: 8 kB / 0.5008 GB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.2979, allocations: 48.02 kB / 0.5008 GB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.298, allocations: 37.14 kB / 0.5008 GB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.2981, allocations: 17.86 kB / 0.5009 GB, free: 3.895 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005999/0.2987, allocations: 424.9 kB / 0.5013 GB, free: 3.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2987, allocations: 3.938 kB / 0.5013 GB, free: 3.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009137/0.2996, allocations: 266.3 kB / 0.5015 GB, free: 3.539 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 (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.0001421/0.2997, allocations: 111.2 kB / 0.5016 GB, free: 3.418 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.3016, allocations: 1.104 MB / 0.5027 GB, free: 2.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3017, allocations: 4.125 kB / 0.5027 GB, free: 2.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.3021, allocations: 262.3 kB / 0.503 GB, free: 2.031 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.3029, allocations: 131 kB / 0.5031 GB, free: 1.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3056, allocations: 1.846 MB / 0.5049 GB, free: 32 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.3062, allocations: 0.9497 MB / 0.5058 GB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.3064, allocations: 47.44 kB / 0.5059 GB, free: 15 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3064, allocations: 0 / 0.5059 GB, free: 15 MB / 346.7 MB Notification: Performance of Templates: time 0.01203/0.3184, allocations: 9.706 MB / 0.5153 GB, free: 5.297 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)