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.00131/0.00131, allocations: 110.2 kB / 17.75 MB, free: 5.352 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.001291/0.001291, allocations: 185.4 kB / 18.68 MB, free: 4.426 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.516/1.516, 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.3057/0.3057, allocations: 48.85 MB / 320.8 MB, free: 11.01 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.001673/0.001673, allocations: 63.91 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1376, allocations: 59.16 MB / 0.4984 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator): time 0.6724/0.8101, allocations: 243.1 MB / 0.7358 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.8242, allocations: 9.11 MB / 0.7447 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001993/0.8262, allocations: 27.94 kB / 0.7447 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002914/0.8292, allocations: 0.9359 MB / 0.7457 GB, free: 12.78 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.00476/0.834, allocations: 1.633 MB / 0.7473 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01045/0.8445, allocations: 4.192 MB / 0.7514 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0068/0.8513, allocations: 5.27 MB / 0.7565 GB, free: 1.668 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3431/1.194, allocations: 2.097 MB / 0.7585 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004481/1.199, allocations: 2.007 MB / 0.7605 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004122/1.203, allocations: 1.707 MB / 0.7622 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001784/1.205, allocations: 320.3 kB / 0.7625 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009816/1.215, allocations: 3.435 MB / 0.7658 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003126/1.218, allocations: 1.675 MB / 0.7675 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005258/1.223, allocations: 2.084 MB / 0.7695 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01397/1.237, allocations: 7.177 MB / 0.7765 GB, free: 4.395 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/1.237, allocations: 0.6875 kB / 0.7765 GB, free: 4.395 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.085e-06/1.237, allocations: 0.75 kB / 0.7765 GB, free: 4.395 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002269/1.238, allocations: 0.5938 kB / 0.7765 GB, free: 4.395 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.01652/1.254, allocations: 4.115 MB / 0.7805 GB, free: 18.58 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/1.254, allocations: 13.8 kB / 0.7805 GB, free: 18.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003657/1.258, allocations: 0.6277 MB / 0.7812 GB, free: 18.38 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005163/1.263, allocations: 2.121 MB / 0.7832 GB, free: 17.78 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/1.263, allocations: 171 kB / 0.7834 GB, free: 17.77 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008526/1.264, allocations: 232.4 kB / 0.7836 GB, free: 17.77 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006548/1.271, allocations: 3.218 MB / 0.7868 GB, free: 17.48 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.702e-05/1.271, allocations: 8.75 kB / 0.7868 GB, free: 17.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004799/1.271, allocations: 103.8 kB / 0.7869 GB, free: 17.48 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.061e-05/1.271, allocations: 88.27 kB / 0.7869 GB, free: 17.47 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003941/1.275, allocations: 2.583 MB / 0.7895 GB, free: 17.43 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.02078/1.296, allocations: 13.47 MB / 0.8026 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/1.298, allocations: 1.094 MB / 0.8037 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/1.299, allocations: 0.9247 MB / 0.8046 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007785/1.3, allocations: 314 kB / 0.8049 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.115e-05/1.3, allocations: 65.88 kB / 0.805 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=114): time 3.276e-06/1.3, allocations: 0 / 0.805 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of matching and sorting (n=127): time 0.01519/1.315, allocations: 6.162 MB / 0.811 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.315, allocations: 171.6 kB / 0.8111 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006845/1.322, allocations: 3.991 MB / 0.815 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0006439/1.323, allocations: 62.02 kB / 0.8151 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001188/1.324, allocations: 1.436 MB / 0.8165 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005258/1.325, allocations: 480 kB / 0.817 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005511/1.325, allocations: 302 kB / 0.8172 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001204/1.325, allocations: 308 kB / 0.8175 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/1.327, allocations: 0.8573 MB / 0.8184 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/1.328, allocations: 1.176 MB / 0.8195 GB, free: 7.738 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.0173/1.346, allocations: 5.914 MB / 0.8253 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.47e-05/1.346, allocations: 2.719 kB / 0.8253 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004874/1.351, allocations: 2.904 MB / 0.8281 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/1.351, allocations: 10.69 kB / 0.8281 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.351, allocations: 7.812 kB / 0.8282 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005954/1.357, allocations: 1.515 MB / 0.8296 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/1.358, allocations: 288.5 kB / 0.8299 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/1.362, allocations: 4.063 MB / 0.8339 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/1.365, allocations: 68.95 kB / 0.8339 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/1.365, allocations: 92.19 kB / 0.834 GB, free: 4.672 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.00274/1.368, allocations: 1.655 MB / 0.8356 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001504/1.369, allocations: 1.187 MB / 0.8368 GB, free: 3.684 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.01739/1.387, allocations: 5.747 MB / 0.8424 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.437e-05/1.387, allocations: 4 kB / 0.8424 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of matching and sorting (n=199) (initialization_lambda0): time 0.005491/1.392, allocations: 2.801 MB / 0.8452 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/1.392, allocations: 8 kB / 0.8452 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/1.392, allocations: 8 kB / 0.8452 GB, free: 11.56 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003433/1.396, allocations: 0.9652 MB / 0.8461 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/1.397, allocations: 370 kB / 0.8465 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004225/1.402, allocations: 4.778 MB / 0.8511 GB, free: 5.359 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/1.404, allocations: 75.69 kB / 0.8512 GB, free: 5.289 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/1.405, allocations: 87.98 kB / 0.8513 GB, free: 5.203 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.0008324/1.406, allocations: 291.8 kB / 0.8516 GB, free: 4.93 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007971/1.406, allocations: 322 kB / 0.8519 GB, free: 4.613 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004774/1.411, allocations: 2.243 MB / 0.8541 GB, free: 2.355 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/1.411, allocations: 11.97 kB / 0.8541 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.411, allocations: 0 / 0.8541 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.413, allocations: 0.7254 MB / 0.8548 GB, free: 1.598 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006267/1.414, allocations: 39.98 kB / 0.8548 GB, free: 1.559 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.416, allocations: 111.8 kB / 0.8549 GB, free: 1.449 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/1.416, allocations: 85.12 kB / 0.855 GB, free: 1.367 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005345/1.421, allocations: 2.26 MB / 0.8572 GB, free: 15.11 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005001/1.426, allocations: 2.91 MB / 0.8601 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001224/1.428, allocations: 0.8116 MB / 0.8608 GB, free: 11.38 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.004462/1.432, allocations: 2.822 MB / 0.8636 GB, free: 8.562 MB / 0.6387 GB Notification: Performance of Backend: time 6.41e-07/1.432, allocations: 0 / 0.8636 GB, free: 8.562 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01537/1.447, allocations: 4.729 MB / 0.8682 GB, free: 3.992 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01409/1.462, allocations: 7.394 MB / 0.8754 GB, free: 12.58 MB / 0.6544 GB Notification: Performance of Templates: time 0.1269/1.589, allocations: 84.38 MB / 0.9578 GB, free: 8.328 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)