Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.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.OpenLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator") translateModel(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001132/0.001132, allocations: 190.6 kB / 18.68 MB, free: 4.406 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.203/1.203, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2423/0.2423, allocations: 48.83 MB / 320.7 MB, free: 11.02 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.001327/0.001327, allocations: 72.44 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08852, allocations: 59.16 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator): time 0.4035/0.4921, allocations: 242.9 MB / 0.7356 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01159/0.5037, allocations: 9.049 MB / 0.7445 GB, free: 14 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.5048, allocations: 23.94 kB / 0.7445 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.507, allocations: 0.9398 MB / 0.7454 GB, free: 13.03 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.003118/0.5101, allocations: 1.621 MB / 0.747 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008608/0.5187, allocations: 4.152 MB / 0.7511 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005425/0.5242, allocations: 5.177 MB / 0.7561 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2492/0.7734, allocations: 2.073 MB / 0.7581 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003251/0.7767, allocations: 1.97 MB / 0.7601 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001894/0.7786, allocations: 1.663 MB / 0.7617 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005441/0.7792, allocations: 314.7 kB / 0.762 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006185/0.7854, allocations: 3.434 MB / 0.7653 GB, free: 5.016 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.7869, allocations: 1.653 MB / 0.7669 GB, free: 5.016 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002183/0.7891, allocations: 2.053 MB / 0.769 GB, free: 5.016 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009262/0.7983, allocations: 7.069 MB / 0.7759 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.7984, allocations: 0.8125 kB / 0.7759 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7984, allocations: 1.719 kB / 0.7759 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.156e-05/0.7985, allocations: 0 / 0.7759 GB, free: 4.586 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: 561 * Number of variables: 561 Notification: Performance of Generate backend data structure: time 0.007331/0.8058, allocations: 3.912 MB / 0.7797 GB, free: 19.02 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.8059, allocations: 12.14 kB / 0.7797 GB, free: 19.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002378/0.8083, allocations: 0.6031 MB / 0.7803 GB, free: 18.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003073/0.8113, allocations: 2.071 MB / 0.7823 GB, free: 18.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.864e-05/0.8114, allocations: 169 kB / 0.7825 GB, free: 18.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003239/0.8118, allocations: 230.4 kB / 0.7827 GB, free: 18.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004537/0.8163, allocations: 3.161 MB / 0.7858 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/0.8164, allocations: 1.844 kB / 0.7858 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.8167, allocations: 107.2 kB / 0.7859 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.537e-05/0.8167, allocations: 83.5 kB / 0.786 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003322/0.8201, allocations: 2.518 MB / 0.7884 GB, free: 17.92 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.01761/0.8377, allocations: 13.19 MB / 0.8013 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.839, allocations: 1.002 MB / 0.8023 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.8402, allocations: 0.8826 MB / 0.8031 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007262/0.8409, allocations: 320.3 kB / 0.8034 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.841, allocations: 66.03 kB / 0.8035 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=106): time 3.015e-06/0.841, allocations: 1.031 kB / 0.8035 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of matching and sorting (n=119): time 0.01259/0.8536, allocations: 5.893 MB / 0.8093 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.8537, allocations: 167.9 kB / 0.8094 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003948/0.8576, allocations: 3.945 MB / 0.8133 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.8578, allocations: 62.36 kB / 0.8133 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008803/0.8587, allocations: 1.381 MB / 0.8147 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.859, allocations: 433.6 kB / 0.8151 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004374/0.8594, allocations: 289.1 kB / 0.8154 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.429e-05/0.8595, allocations: 306.4 kB / 0.8157 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.8606, allocations: 0.8167 MB / 0.8165 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.8618, allocations: 1.138 MB / 0.8176 GB, free: 8.488 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.01548/0.8773, allocations: 5.686 MB / 0.8231 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.8773, allocations: 4.281 kB / 0.8231 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003659/0.881, allocations: 2.713 MB / 0.8258 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.881, allocations: 8.906 kB / 0.8258 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.881, allocations: 7.531 kB / 0.8258 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004482/0.8855, allocations: 1.19 MB / 0.827 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.8868, allocations: 312.4 kB / 0.8272 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003151/0.8899, allocations: 3.713 MB / 0.8309 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.8916, allocations: 69.58 kB / 0.8309 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.8918, allocations: 87.84 kB / 0.831 GB, free: 5.461 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.002143/0.894, allocations: 1.625 MB / 0.8326 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001231/0.8952, allocations: 1.138 MB / 0.8337 GB, free: 5.016 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.0148/0.91, allocations: 5.554 MB / 0.8391 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/0.91, allocations: 4 kB / 0.8392 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.004209/0.9142, allocations: 2.675 MB / 0.8418 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.9143, allocations: 8 kB / 0.8418 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/0.9143, allocations: 12.52 kB / 0.8418 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003196/0.9175, allocations: 0.9652 MB / 0.8427 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.919, allocations: 339.9 kB / 0.843 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.9228, allocations: 4.774 MB / 0.8477 GB, free: 8.977 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.9245, allocations: 63.95 kB / 0.8478 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.9247, allocations: 84.27 kB / 0.8479 GB, free: 8.832 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: 37 * 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 (145): * Single equations (assignments): 141 * 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 {(12,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005413/0.9252, allocations: 292.1 kB / 0.8481 GB, free: 8.555 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006536/0.9259, allocations: 292.5 kB / 0.8484 GB, free: 8.266 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.9298, allocations: 2.137 MB / 0.8505 GB, free: 6.137 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.9299, allocations: 7.969 kB / 0.8505 GB, free: 6.129 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.9299, allocations: 0 / 0.8505 GB, free: 6.129 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.9315, allocations: 0.7045 MB / 0.8512 GB, free: 5.402 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006092/0.9321, allocations: 36 kB / 0.8512 GB, free: 5.367 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.9341, allocations: 95.91 kB / 0.8513 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.9343, allocations: 80.88 kB / 0.8514 GB, free: 5.191 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00476/0.9391, allocations: 2.157 MB / 0.8535 GB, free: 3.031 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003954/0.9431, allocations: 2.752 MB / 0.8562 GB, free: 272 kB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001078/0.9442, allocations: 0.7706 MB / 0.8569 GB, free: 15.5 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.004241/0.9484, allocations: 2.797 MB / 0.8597 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of Backend: time 3.2e-07/0.9484, allocations: 0 / 0.8597 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0116/0.96, allocations: 4.541 MB / 0.8641 GB, free: 8.316 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01204/0.9721, allocations: 7.168 MB / 0.8711 GB, free: 1.133 MB / 0.6387 GB Notification: Performance of Templates: time 0.1125/1.085, allocations: 82.62 MB / 0.9518 GB, free: 14.64 MB / 0.7325 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.sim & ./ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.BraytonCycle.OpenLoopSimulator.pipe 2>&1)