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: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009131/0.0009131, allocations: 168 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.219/1.219, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0008029/0.0008028, allocations: 90.36 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.1778/0.1778, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003456, allocations: 8 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2192, allocations: 56.33 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.004946/0.2242, allocations: 5.164 MB / 484.8 MB, free: 5.816 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00326/0.2275, allocations: 2.301 MB / 487.1 MB, free: 4.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005681/0.2281, allocations: 37.28 kB / 487.1 MB, free: 4.156 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004214/0.2285, allocations: 105.9 kB / 487.2 MB, free: 4.098 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007642/0.2293, allocations: 318.4 kB / 487.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009449/0.2302, allocations: 404.7 kB / 487.9 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009403/0.2312, allocations: 1.01 MB / 488.9 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008782/0.2321, allocations: 0.7046 MB / 489.7 MB, free: 2.785 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003911/0.2325, allocations: 301.1 kB / 489.9 MB, free: 2.652 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/0.2328, allocations: 323 kB / 490.3 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.526e-05/0.2329, allocations: 24.59 kB / 490.3 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005588/0.2335, allocations: 360.8 kB / 490.6 MB, free: 2.387 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2336, allocations: 145 kB / 490.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.2339, allocations: 322.7 kB / 491.1 MB, free: 2.102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008265/0.2347, allocations: 0.8136 MB / 491.9 MB, free: 1.902 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2347, allocations: 3.938 kB / 491.9 MB, free: 1.898 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2347, allocations: 0 / 491.9 MB, free: 1.898 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.2347, allocations: 4 kB / 491.9 MB, free: 1.895 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.00164/0.2364, allocations: 1.009 MB / 492.9 MB, free: 1.207 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.2364, allocations: 8.5 kB / 492.9 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007491/0.2372, allocations: 167.1 kB / 493.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007808/0.238, allocations: 0.5851 MB / 493.7 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.238, allocations: 46.94 kB / 493.7 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.682e-05/0.2381, allocations: 68.75 kB / 493.8 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.2394, allocations: 0.7849 MB / 494.6 MB, free: 320 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2394, allocations: 6.047 kB / 494.6 MB, free: 316 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.2395, allocations: 21.56 kB / 494.6 MB, free: 300 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.883e-05/0.2395, allocations: 33.19 kB / 494.6 MB, free: 296 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.2408, allocations: 0.6772 MB / 495.3 MB, free: 72 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.2449, allocations: 2.942 MB / 498.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.2465, allocations: 0.7679 MB / 499 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005134/0.247, allocations: 258.7 kB / 499.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.733e-05/0.247, allocations: 18.5 kB / 499.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.2471, allocations: 42.31 kB / 499.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.2471, allocations: 0 / 499.3 MB, free: 13.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.001712/0.2488, allocations: 0.7892 MB / 0.4884 GB, free: 13.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.2489, allocations: 116.5 kB / 0.4885 GB, free: 13.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007781/0.2497, allocations: 0.5739 MB / 0.4891 GB, free: 12.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.2497, allocations: 36.05 kB / 0.4891 GB, free: 12.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.25, allocations: 358.2 kB / 0.4895 GB, free: 12.4 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.2501, allocations: 178.3 kB / 0.4896 GB, free: 12.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.2502, allocations: 10 kB / 0.4896 GB, free: 12.24 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.2503, allocations: 383.4 kB / 0.49 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005224/0.2508, allocations: 236 kB / 0.4902 GB, free: 11.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.2514, allocations: 370.5 kB / 0.4906 GB, free: 11.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.2526, allocations: 0.6139 MB / 0.4912 GB, free: 11.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2526, allocations: 1.5 kB / 0.4912 GB, free: 11.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002056/0.2547, allocations: 0.8689 MB / 0.492 GB, free: 10.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.2548, allocations: 199.4 kB / 0.4922 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.2549, allocations: 3.281 kB / 0.4922 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004761/0.2553, allocations: 139.5 kB / 0.4924 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005851/0.2559, allocations: 145.1 kB / 0.4925 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.2587, allocations: 2.257 MB / 0.4947 GB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.2593, allocations: 92.05 kB / 0.4948 GB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.793e-05/0.2593, allocations: 21.5 kB / 0.4948 GB, free: 8.363 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.2594, allocations: 4.203 kB / 0.4948 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/0.2609, allocations: 0.6792 MB / 0.4955 GB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2609, allocations: 3.375 kB / 0.4955 GB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/0.2612, allocations: 95.86 kB / 0.4956 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.2618, allocations: 144.1 kB / 0.4957 GB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.2637, allocations: 2.017 MB / 0.4977 GB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.2642, allocations: 91.42 kB / 0.4978 GB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.029e-05/0.2643, allocations: 21.5 kB / 0.4978 GB, free: 6.051 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.0004236/0.2647, allocations: 309.7 kB / 0.4981 GB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.2648, allocations: 68.12 kB / 0.4981 GB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.2661, allocations: 0.6257 MB / 0.4988 GB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2661, allocations: 5.5 kB / 0.4988 GB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2661, allocations: 5.375 kB / 0.4988 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2661, allocations: 0 / 0.4988 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/0.2683, allocations: 1.389 MB / 0.5001 GB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2683, allocations: 1.188 kB / 0.5001 GB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005829/0.2689, allocations: 122.1 kB / 0.5002 GB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2689, allocations: 6.781 kB / 0.5002 GB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.2689, allocations: 16.33 kB / 0.5003 GB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.269, allocations: 2.688 kB / 0.5003 GB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.269, allocations: 0 / 0.5003 GB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.2707, allocations: 1.011 MB / 0.5012 GB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.2709, allocations: 191.7 kB / 0.5014 GB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.319e-05/0.271, allocations: 12 kB / 0.5014 GB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.2714, allocations: 55.95 kB / 0.5015 GB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.236e-05/0.2715, allocations: 40.31 kB / 0.5015 GB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.2716, allocations: 16 kB / 0.5016 GB, free: 3.512 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005611/0.2721, allocations: 419.4 kB / 0.502 GB, free: 3.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2721, allocations: 0 / 0.502 GB, free: 3.105 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008573/0.273, allocations: 267.2 kB / 0.5022 GB, free: 2.844 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.0001432/0.2731, allocations: 119.2 kB / 0.5023 GB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.2752, allocations: 1.176 MB / 0.5035 GB, free: 1.512 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.2752, allocations: 0 / 0.5035 GB, free: 1.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005447/0.2758, allocations: 294.4 kB / 0.5037 GB, free: 1.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000744/0.2765, allocations: 141.7 kB / 0.5039 GB, free: 1.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.2791, allocations: 1.864 MB / 0.5057 GB, free: 15.19 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.2796, allocations: 0.9421 MB / 0.5066 GB, free: 14.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.2798, allocations: 51.42 kB / 0.5067 GB, free: 14.17 MB / 346.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2798, allocations: 0 / 0.5067 GB, free: 14.17 MB / 346.7 MB Notification: Performance of Templates: time 0.01142/0.2913, allocations: 9.865 MB / 0.5163 GB, free: 4.305 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)