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.001489/0.001489, allocations: 102.4 kB / 17.74 MB, free: 5.34 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.001665/0.001665, allocations: 189.4 kB / 18.67 MB, free: 4.418 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.473/1.473, 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.273/0.273, allocations: 48.84 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.001447/0.001447, allocations: 63.91 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1245, allocations: 59.15 MB / 0.4984 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.BraytonCycle.OpenLoopSimulator): time 0.5564/0.681, allocations: 243 MB / 0.7356 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01399/0.695, allocations: 9.04 MB / 0.7445 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.6966, allocations: 27.88 kB / 0.7445 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002462/0.6991, allocations: 0.9204 MB / 0.7454 GB, free: 13.06 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.003675/0.7029, allocations: 1.59 MB / 0.7469 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.7135, allocations: 4.127 MB / 0.751 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008505/0.722, allocations: 5.181 MB / 0.756 GB, free: 2.145 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003813/0.7259, allocations: 2.07 MB / 0.7581 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3571/1.083, allocations: 1.967 MB / 0.76 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/1.087, allocations: 1.667 MB / 0.7616 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.00104/1.088, allocations: 312.8 kB / 0.7619 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00842/1.096, allocations: 3.428 MB / 0.7653 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003128/1.099, allocations: 1.655 MB / 0.7669 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005828/1.105, allocations: 2.046 MB / 0.7689 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01459/1.12, allocations: 7.07 MB / 0.7758 GB, free: 5.996 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/1.12, allocations: 0.75 kB / 0.7758 GB, free: 5.996 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.464e-06/1.12, allocations: 0.7812 kB / 0.7758 GB, free: 5.996 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002587/1.12, allocations: 0 / 0.7758 GB, free: 5.996 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.01452/1.135, allocations: 3.912 MB / 0.7796 GB, free: 4.434 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/1.135, allocations: 12.27 kB / 0.7796 GB, free: 4.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003599/1.138, allocations: 0.6017 MB / 0.7802 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004707/1.143, allocations: 2.078 MB / 0.7822 GB, free: 3.668 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/1.143, allocations: 169.5 kB / 0.7824 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005607/1.144, allocations: 225.6 kB / 0.7826 GB, free: 3.656 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006201/1.15, allocations: 3.162 MB / 0.7857 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.066e-05/1.15, allocations: 2.844 kB / 0.7857 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005019/1.151, allocations: 102.4 kB / 0.7858 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-05/1.151, allocations: 87.09 kB / 0.7859 GB, free: 3.367 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004294/1.155, allocations: 2.515 MB / 0.7883 GB, free: 3.336 MB / 0.5919 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.02293/1.178, allocations: 13.19 MB / 0.8012 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/1.18, allocations: 1.008 MB / 0.8022 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/1.181, allocations: 0.886 MB / 0.8031 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008127/1.182, allocations: 315.6 kB / 0.8034 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.282e-05/1.182, allocations: 66.03 kB / 0.8034 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=106): time 3.597e-06/1.182, allocations: 1.031 kB / 0.8034 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of matching and sorting (n=119): time 0.01489/1.197, allocations: 5.888 MB / 0.8092 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.197, allocations: 167.2 kB / 0.8093 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005705/1.203, allocations: 3.945 MB / 0.8132 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0005218/1.203, allocations: 63.73 kB / 0.8132 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001044/1.204, allocations: 1.38 MB / 0.8146 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004174/1.205, allocations: 427.7 kB / 0.815 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004782/1.205, allocations: 293.5 kB / 0.8153 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000113/1.205, allocations: 306.1 kB / 0.8156 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/1.206, allocations: 0.8142 MB / 0.8164 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/1.208, allocations: 1.137 MB / 0.8175 GB, free: 9.902 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.01605/1.224, allocations: 5.689 MB / 0.823 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/1.224, allocations: 2.469 kB / 0.823 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004517/1.228, allocations: 2.711 MB / 0.8257 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/1.228, allocations: 16.45 kB / 0.8257 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/1.228, allocations: 8.188 kB / 0.8257 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004699/1.233, allocations: 1.194 MB / 0.8269 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/1.235, allocations: 307.9 kB / 0.8272 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/1.238, allocations: 3.721 MB / 0.8308 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/1.241, allocations: 67.5 kB / 0.8309 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/1.241, allocations: 84.11 kB / 0.8309 GB, free: 6.875 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.002835/1.244, allocations: 1.624 MB / 0.8325 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001351/1.245, allocations: 1.137 MB / 0.8336 GB, free: 6.43 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.01587/1.261, allocations: 5.553 MB / 0.8391 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.172e-05/1.261, allocations: 4 kB / 0.8391 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.005503/1.267, allocations: 2.675 MB / 0.8417 GB, free: 168 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/1.267, allocations: 8 kB / 0.8417 GB, free: 160 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/1.267, allocations: 8 kB / 0.8417 GB, free: 152 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003411/1.27, allocations: 0.9728 MB / 0.8426 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/1.272, allocations: 330.4 kB / 0.843 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004449/1.277, allocations: 4.778 MB / 0.8476 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/1.279, allocations: 67.95 kB / 0.8477 GB, free: 9.902 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004099/1.28, allocations: 83.97 kB / 0.8478 GB, free: 9.82 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.0009201/1.281, allocations: 284.3 kB / 0.848 GB, free: 9.551 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/1.282, allocations: 296.5 kB / 0.8483 GB, free: 9.258 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00504/1.287, allocations: 2.144 MB / 0.8504 GB, free: 7.125 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/1.287, allocations: 7.969 kB / 0.8504 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/1.287, allocations: 0 / 0.8504 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002308/1.289, allocations: 0.7006 MB / 0.8511 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.291, allocations: 43.98 kB / 0.8512 GB, free: 6.352 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/1.293, allocations: 91.91 kB / 0.8512 GB, free: 6.262 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/1.294, allocations: 80.88 kB / 0.8513 GB, free: 6.18 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005259/1.299, allocations: 2.164 MB / 0.8534 GB, free: 4.012 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005034/1.304, allocations: 2.749 MB / 0.8561 GB, free: 1.246 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001177/1.305, allocations: 0.7766 MB / 0.8569 GB, free: 484 kB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.006228/1.311, allocations: 2.793 MB / 0.8596 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of Backend: time 8.71e-07/1.312, allocations: 0 / 0.8596 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01678/1.328, allocations: 4.529 MB / 0.864 GB, free: 9.301 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01695/1.345, allocations: 7.165 MB / 0.871 GB, free: 2.121 MB / 0.6387 GB Notification: Performance of Templates: time 0.141/1.486, allocations: 84.08 MB / 0.9531 GB, free: 14.17 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)