Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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: translateModel(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") translateModel(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001549, allocations: 107.7 kB / 17.71 MB, free: 5.371 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.00171/0.00171, allocations: 192.2 kB / 18.64 MB, free: 4.445 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.299/1.299, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2655/0.2655, allocations: 48.84 MB / 320.7 MB, free: 11.04 MB / 270.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.001507/0.001507, allocations: 63.91 kB / 451.1 MB, free: 8.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 59.15 MB / 0.4983 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator): time 0.5039/0.606, allocations: 243.1 MB / 0.7358 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01339/0.6195, allocations: 9.101 MB / 0.7447 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.6213, allocations: 23.88 kB / 0.7447 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.6242, allocations: 0.932 MB / 0.7456 GB, free: 12.82 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004186/0.6284, allocations: 1.602 MB / 0.7472 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.6391, allocations: 4.166 MB / 0.7512 GB, free: 7.043 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006551/0.6456, allocations: 5.266 MB / 0.7564 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3434/0.989, allocations: 2.1 MB / 0.7584 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004577/0.9936, allocations: 1.976 MB / 0.7603 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003802/0.9975, allocations: 1.71 MB / 0.762 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.9988, allocations: 319.6 kB / 0.7623 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00907/1.008, allocations: 3.432 MB / 0.7657 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003219/1.011, allocations: 1.673 MB / 0.7673 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005301/1.016, allocations: 2.085 MB / 0.7693 GB, free: 5.043 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0127/1.029, allocations: 7.154 MB / 0.7763 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/1.029, allocations: 1.531 kB / 0.7763 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.305e-06/1.029, allocations: 0.875 kB / 0.7763 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.00016/1.029, allocations: 0.5625 kB / 0.7763 GB, free: 4.57 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 574 * Number of variables: 574 Notification: Performance of Generate backend data structure: time 0.01216/1.042, allocations: 4 MB / 0.7802 GB, free: 18.97 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/1.042, allocations: 12.42 kB / 0.7802 GB, free: 18.97 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003146/1.045, allocations: 0.6079 MB / 0.7808 GB, free: 18.79 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004478/1.049, allocations: 2.107 MB / 0.7829 GB, free: 18.2 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/1.049, allocations: 170.6 kB / 0.7831 GB, free: 18.19 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005773/1.05, allocations: 234.3 kB / 0.7833 GB, free: 18.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006024/1.056, allocations: 3.23 MB / 0.7864 GB, free: 17.89 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.182e-05/1.056, allocations: 6.734 kB / 0.7864 GB, free: 17.89 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003278/1.057, allocations: 105.9 kB / 0.7865 GB, free: 17.89 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.864e-05/1.057, allocations: 88.48 kB / 0.7866 GB, free: 17.88 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00403/1.061, allocations: 2.58 MB / 0.7892 GB, free: 17.85 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02193/1.083, allocations: 13.43 MB / 0.8023 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/1.084, allocations: 1.095 MB / 0.8033 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/1.086, allocations: 0.7903 MB / 0.8041 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007743/1.086, allocations: 319.1 kB / 0.8044 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.079e-05/1.086, allocations: 70.72 kB / 0.8045 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=114): time 3.937e-06/1.086, allocations: 4.25 kB / 0.8045 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127): time 0.01483/1.101, allocations: 6.114 MB / 0.8105 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.729e-05/1.101, allocations: 169.1 kB / 0.8106 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/1.106, allocations: 3.986 MB / 0.8145 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003112/1.107, allocations: 61.39 kB / 0.8146 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009798/1.108, allocations: 1.419 MB / 0.816 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000366/1.108, allocations: 460.7 kB / 0.8164 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004903/1.108, allocations: 304.5 kB / 0.8167 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.133e-05/1.108, allocations: 301.1 kB / 0.817 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/1.11, allocations: 0.8505 MB / 0.8178 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/1.111, allocations: 1.183 MB / 0.819 GB, free: 8.242 MB / 0.6075 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: plant.grid.f = plant.grid.fnom (0.15915494309189535 * plant.generator.omega_e_nom = plant.grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.127, allocations: 5.901 MB / 0.8247 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/1.127, allocations: 2.219 kB / 0.8247 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005009/1.132, allocations: 2.895 MB / 0.8275 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/1.132, allocations: 10.47 kB / 0.8276 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/1.132, allocations: 8.562 kB / 0.8276 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005524/1.138, allocations: 1.523 MB / 0.8291 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/1.139, allocations: 288.9 kB / 0.8293 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/1.143, allocations: 4.065 MB / 0.8333 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/1.146, allocations: 70.47 kB / 0.8334 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/1.146, allocations: 88.45 kB / 0.8334 GB, free: 5.172 MB / 0.6075 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: plant.grid.f = plant.grid.fnom. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002673/1.148, allocations: 1.659 MB / 0.8351 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001428/1.15, allocations: 1.181 MB / 0.8362 GB, free: 4.367 MB / 0.6075 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: plant.grid.f = plant.grid.fnom (0.15915494309189535 * plant.generator.omega_e_nom = plant.grid.fnom) Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01634/1.166, allocations: 5.738 MB / 0.8418 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.869e-05/1.166, allocations: 4 kB / 0.8418 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.005756/1.172, allocations: 2.789 MB / 0.8446 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/1.172, allocations: 8 kB / 0.8446 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/1.172, allocations: 8 kB / 0.8446 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003263/1.175, allocations: 0.9789 MB / 0.8455 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/1.177, allocations: 363.6 kB / 0.8459 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/1.181, allocations: 4.782 MB / 0.8505 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/1.183, allocations: 75.94 kB / 0.8506 GB, free: 5.996 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/1.184, allocations: 87.97 kB / 0.8507 GB, free: 5.91 MB / 0.6231 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: plant.grid.f = plant.grid.fnom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems 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 {(15,45)} Notification: Performance of prepare postOptimizeDAE: time 0.0007306/1.184, allocations: 284.9 kB / 0.851 GB, free: 5.641 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.185, allocations: 304.5 kB / 0.8513 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005072/1.191, allocations: 2.25 MB / 0.8535 GB, free: 3.082 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/1.191, allocations: 3.984 kB / 0.8535 GB, free: 3.078 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.191, allocations: 0 / 0.8535 GB, free: 3.078 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/1.192, allocations: 0.7161 MB / 0.8542 GB, free: 2.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008241/1.193, allocations: 40 kB / 0.8542 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.196, allocations: 103.9 kB / 0.8543 GB, free: 2.199 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/1.196, allocations: 81.19 kB / 0.8544 GB, free: 2.121 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005265/1.201, allocations: 2.263 MB / 0.8566 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004839/1.206, allocations: 2.891 MB / 0.8594 GB, free: 12.96 MB / 0.6387 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00123/1.207, allocations: 0.818 MB / 0.8602 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.005743/1.213, allocations: 2.822 MB / 0.863 GB, free: 9.324 MB / 0.6387 GB Notification: Performance of Backend: time 8.81e-07/1.213, allocations: 0 / 0.863 GB, free: 9.324 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.017/1.23, allocations: 4.722 MB / 0.8676 GB, free: 4.762 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01661/1.247, allocations: 7.289 MB / 0.8747 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of Templates: time 0.1228/1.37, allocations: 83.62 MB / 0.9563 GB, free: 9.969 MB / 0.7325 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.sim & ./ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.pipe 2>&1)