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.001127/0.001127, allocations: 96.31 kB / 16.3 MB, free: 5.539 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.001243/0.001243, allocations: 180.9 kB / 17.19 MB, free: 5.473 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.587/1.587, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3171/0.3171, allocations: 48.77 MB / 320.4 MB, free: 11.32 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.0005162/0.0005165, allocations: 14.31 kB / 391.1 MB, free: 50.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1302, allocations: 60.27 MB / 451.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator): time 0.4579/0.5882, allocations: 176.4 MB / 0.613 GB, free: 2.676 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01261/0.6009, allocations: 8.961 MB / 0.6218 GB, free: 11.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.6028, allocations: 21.22 kB / 0.6218 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.6053, allocations: 0.6703 MB / 0.6225 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003392/0.6087, allocations: 1.229 MB / 0.6237 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008221/0.617, allocations: 2.976 MB / 0.6266 GB, free: 7.824 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006244/0.6232, allocations: 2.752 MB / 0.6293 GB, free: 6.027 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004028/0.6273, allocations: 1.684 MB / 0.6309 GB, free: 5.004 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005377/0.6327, allocations: 1.684 MB / 0.6325 GB, free: 3.711 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.6354, allocations: 1.215 MB / 0.6337 GB, free: 2.492 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008745/0.6362, allocations: 116 kB / 0.6338 GB, free: 2.379 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006922/0.6432, allocations: 2.716 MB / 0.6365 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002092/0.6453, allocations: 1.403 MB / 0.6379 GB, free: 14.25 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001812/0.6471, allocations: 0.7421 MB / 0.6386 GB, free: 13.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008233/0.6554, allocations: 5.373 MB / 0.6438 GB, free: 8.121 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.6554, allocations: 0 / 0.6438 GB, free: 8.121 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6554, allocations: 0 / 0.6438 GB, free: 8.121 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002037/0.6556, allocations: 0 / 0.6438 GB, free: 8.121 MB / 462.1 MB 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.008289/0.6639, allocations: 3.279 MB / 0.647 GB, free: 4.773 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.664, allocations: 8.031 kB / 0.647 GB, free: 4.766 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003345/0.6674, allocations: 0.6321 MB / 0.6477 GB, free: 4.129 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00597/0.6733, allocations: 2.021 MB / 0.6496 GB, free: 2.039 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.6736, allocations: 168.5 kB / 0.6498 GB, free: 1.871 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008372/0.6745, allocations: 231.8 kB / 0.65 GB, free: 1.645 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00721/0.6817, allocations: 3.197 MB / 0.6531 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.058e-05/0.6818, allocations: 3.906 kB / 0.6531 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006109/0.6824, allocations: 115.9 kB / 0.6533 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.493e-05/0.6825, allocations: 88.39 kB / 0.6533 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004833/0.6874, allocations: 2.574 MB / 0.6558 GB, free: 11.54 MB / 478.1 MB 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.02172/0.7091, allocations: 13.48 MB / 0.669 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.711, allocations: 1.101 MB / 0.6701 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000807/0.7119, allocations: 311.1 kB / 0.6704 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.832e-05/0.712, allocations: 68.16 kB / 0.6704 GB, free: 11.55 MB / 494.1 MB Notification: Performance of pre-optimization done (n=114): time 4.148e-06/0.712, allocations: 0 / 0.6704 GB, free: 11.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=127): time 0.01688/0.7289, allocations: 6.138 MB / 0.6764 GB, free: 5.289 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.729, allocations: 167.5 kB / 0.6766 GB, free: 5.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/0.7353, allocations: 4.023 MB / 0.6805 GB, free: 1.051 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004304/0.7357, allocations: 61.7 kB / 0.6806 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.7372, allocations: 1.429 MB / 0.682 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007342/0.7379, allocations: 465.3 kB / 0.6824 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.7381, allocations: 28 kB / 0.6825 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.7383, allocations: 377.9 kB / 0.6828 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.7399, allocations: 0.8355 MB / 0.6836 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.7416, allocations: 1.174 MB / 0.6848 GB, free: 12.53 MB / 0.4981 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.plant.generator.theta = plant.generator.omega_e_nom (6.283185307179586 * plant.grid.fnom = plant.generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.01537/0.757, allocations: 4.245 MB / 0.6889 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.757, allocations: 4 kB / 0.6889 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00621/0.7632, allocations: 2.933 MB / 0.6918 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.001623/0.7649, allocations: 3.762 MB / 0.6955 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.7649, allocations: 12 kB / 0.6955 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00601/0.771, allocations: 1.514 MB / 0.697 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.7724, allocations: 287.6 kB / 0.6972 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004803/0.7772, allocations: 4.058 MB / 0.7012 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002947/0.7802, allocations: 267.8 kB / 0.7014 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002826/0.7805, allocations: 95.91 kB / 0.7015 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.7805, allocations: 7.938 kB / 0.7015 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005476/0.786, allocations: 2.488 MB / 0.704 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/0.7861, allocations: 12 kB / 0.704 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003431/0.7895, allocations: 0.962 MB / 0.7049 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.7914, allocations: 371.5 kB / 0.7053 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003847/0.7952, allocations: 4.784 MB / 0.71 GB, free: 2.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002673/0.7979, allocations: 259.8 kB / 0.7102 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/0.7982, allocations: 83.98 kB / 0.7103 GB, free: 1.77 MB / 0.5137 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.plant.generator.theta = plant.generator.omega_e_nom. 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {15 45} Notification: Performance of prepare postOptimizeDAE: time 0.002268/0.8005, allocations: 1.008 MB / 0.7113 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009505/0.8014, allocations: 308.4 kB / 0.7116 GB, free: 456 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004745/0.8062, allocations: 2.255 MB / 0.7138 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.8062, allocations: 12 kB / 0.7138 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.8062, allocations: 4 kB / 0.7138 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.8063, allocations: 15.92 kB / 0.7138 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.818, allocations: 5.198 MB / 0.7189 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/0.818, allocations: 0 / 0.7189 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/0.8199, allocations: 339.6 kB / 0.7192 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001524/0.8214, allocations: 314.2 kB / 0.7195 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/0.8216, allocations: 51.97 kB / 0.7195 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004214/0.8258, allocations: 5.866 MB / 0.7253 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.8259, allocations: 8.281 kB / 0.7253 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0055/0.8314, allocations: 2.871 MB / 0.7281 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/0.834, allocations: 0.7511 MB / 0.7288 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009161/0.835, allocations: 36 kB / 0.7289 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/0.8381, allocations: 219.6 kB / 0.7291 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.8384, allocations: 85.19 kB / 0.7291 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004005/0.8388, allocations: 123.8 kB / 0.7293 GB, free: 13.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00551/0.8443, allocations: 2.843 MB / 0.732 GB, free: 11.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8443, allocations: 0 / 0.732 GB, free: 11.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00607/0.8504, allocations: 1.336 MB / 0.7333 GB, free: 9.684 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (plant.generator.omega_m,plant.generator.omega_e_filt,plant.turbine.phi,plant.CombustionChamber1.fluegas.p,plant.CombustionChamber1.fluegas.Xi[1],plant.CombustionChamber1.fluegas.Xi[2],plant.CombustionChamber1.fluegas.Xi[3],plant.CombustionChamber1.fluegas.Xi[4],plant.CombustionChamber1.fluegas.Xi[5],plant.CombustionChamber1.fluegas.T,plant.CombustionChamber1.Tm,plant.gasFlowActuator.y,plant.powerSensor1.y,pID.I) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {3 8,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004026/0.8544, allocations: 1.041 MB / 0.7344 GB, free: 8.645 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007635/0.8621, allocations: 3.567 MB / 0.7378 GB, free: 5.082 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-05/0.8622, allocations: 7 kB / 0.7378 GB, free: 5.074 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/0.8645, allocations: 1.142 MB / 0.739 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006984/0.8715, allocations: 1.205 MB / 0.7401 GB, free: 2.715 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2514/1.123, allocations: 7.264 MB / 0.7472 GB, free: 215.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/1.126, allocations: 2.078 MB / 0.7493 GB, free: 215.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003788/1.129, allocations: 0.657 MB / 0.7499 GB, free: 215.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006911/1.13, allocations: 185.7 kB / 0.7501 GB, free: 215.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.523e-06/1.13, allocations: 0 / 0.7501 GB, free: 215.1 MB / 0.545 GB Notification: Performance of Templates: time 0.1038/1.234, allocations: 70.29 MB / 0.8187 GB, free: 162.5 MB / 0.545 GB make -j1 -f ThermoPower_ThermoPower.Examples.BraytonCycle.ClosedLoopSimulator.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: