Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8546/0.8546, allocations: 135.1 MB / 425.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 60.28 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1296, allocations: 80.92 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.2672/0.3969, allocations: 70.44 MB / 0.6532 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0172/0.4141, allocations: 18.91 MB / 0.6717 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.4163, allocations: 71.69 kB / 0.6718 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002129/0.4184, allocations: 0.8215 MB / 0.6726 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007258/0.4257, allocations: 2.843 MB / 0.6754 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003799/0.4295, allocations: 1.653 MB / 0.677 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00495/0.4345, allocations: 4.03 MB / 0.6809 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002124/0.4366, allocations: 1.459 MB / 0.6823 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00369/0.4403, allocations: 1.762 MB / 0.6841 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002154/0.4425, allocations: 1.18 MB / 0.6852 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004465/0.4429, allocations: 175.2 kB / 0.6854 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003303/0.4462, allocations: 1.405 MB / 0.6867 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005537/0.4468, allocations: 391.3 kB / 0.6871 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.4484, allocations: 0.9177 MB / 0.688 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.4531, allocations: 3.084 MB / 0.691 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4531, allocations: 0.9375 kB / 0.691 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.183e-06/0.4531, allocations: 0 / 0.691 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.004e-05/0.4532, allocations: 1.062 kB / 0.691 GB, free: 2.727 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.004637/0.4578, allocations: 2.034 MB / 0.693 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.4579, allocations: 9.688 kB / 0.693 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.4581, allocations: 157.1 kB / 0.6932 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002303/0.4605, allocations: 445.5 kB / 0.6936 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002482/0.4629, allocations: 1.482 MB / 0.695 GB, free: 208 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003592/0.4633, allocations: 132.8 kB / 0.6952 GB, free: 168 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.4635, allocations: 102.1 kB / 0.6953 GB, free: 136 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.4659, allocations: 1.325 MB / 0.6966 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.4659, allocations: 5.344 kB / 0.6966 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.735e-05/0.466, allocations: 44.16 kB / 0.6966 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.466, allocations: 29.34 kB / 0.6966 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.4686, allocations: 1.107 MB / 0.6977 GB, free: 14.98 MB / 0.5294 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.007644/0.4763, allocations: 7.546 MB / 0.7051 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.4792, allocations: 0.8081 MB / 0.7059 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005552/0.4798, allocations: 281.9 kB / 0.7061 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001067/0.4808, allocations: 1.732 MB / 0.7078 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.4809, allocations: 36.78 kB / 0.7079 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=48): time 2.475e-06/0.4809, allocations: 1.5 kB / 0.7079 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48): time 0.004446/0.4853, allocations: 1.335 MB / 0.7092 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.4854, allocations: 60.12 kB / 0.7092 GB, free: 5.895 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002058/0.4874, allocations: 1.545 MB / 0.7107 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.4875, allocations: 45.86 kB / 0.7108 GB, free: 5.008 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004998/0.488, allocations: 0.6807 MB / 0.7115 GB, free: 4.402 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.4881, allocations: 167.7 kB / 0.7116 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002625/0.4884, allocations: 172.7 kB / 0.7118 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.4885, allocations: 340.6 kB / 0.7121 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009527/0.4895, allocations: 366.8 kB / 0.7125 GB, free: 3.641 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.4906, allocations: 0.6635 MB / 0.7131 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.4923, allocations: 0.894 MB / 0.714 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.4923, allocations: 1.438 kB / 0.714 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002753/0.495, allocations: 1.199 MB / 0.7151 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4951, allocations: 12.44 kB / 0.7152 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.4951, allocations: 11.75 kB / 0.7152 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000785/0.4959, allocations: 218.5 kB / 0.7154 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007274/0.4966, allocations: 199 kB / 0.7156 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007527/0.4974, allocations: 0.7238 MB / 0.7163 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4989, allocations: 215.2 kB / 0.7165 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/0.4989, allocations: 45.89 kB / 0.7165 GB, free: 0.8594 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004844/0.4994, allocations: 356.7 kB / 0.7169 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.4996, allocations: 149.6 kB / 0.717 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.5019, allocations: 1.134 MB / 0.7181 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/0.5019, allocations: 14.86 kB / 0.7181 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5019, allocations: 4 kB / 0.7181 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5019, allocations: 3.984 kB / 0.7181 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/0.5066, allocations: 2.507 MB / 0.7206 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5066, allocations: 1.375 kB / 0.7206 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.507, allocations: 85.95 kB / 0.7207 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006695/0.5077, allocations: 214.8 kB / 0.7209 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.5077, allocations: 19.02 kB / 0.7209 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.5089, allocations: 0.7739 MB / 0.7216 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.5089, allocations: 2.031 kB / 0.7216 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.512, allocations: 1.215 MB / 0.7228 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005107/0.5125, allocations: 348.2 kB / 0.7232 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.5127, allocations: 12.19 kB / 0.7232 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008431/0.5135, allocations: 75.25 kB / 0.7233 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.5136, allocations: 46.88 kB / 0.7233 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/0.5137, allocations: 24.2 kB / 0.7233 GB, free: 12.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001472/0.5152, allocations: 1.091 MB / 0.7244 GB, free: 11.58 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5152, allocations: 0 / 0.7244 GB, free: 11.58 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001192/0.5164, allocations: 449.1 kB / 0.7248 GB, free: 11.47 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004065/0.5204, allocations: 2.113 MB / 0.7269 GB, free: 9.539 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002117/0.5226, allocations: 0.8808 MB / 0.7277 GB, free: 8.664 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5226, allocations: 0 / 0.7277 GB, free: 8.664 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.5238, allocations: 447 kB / 0.7282 GB, free: 8.234 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0027/0.5265, allocations: 0.743 MB / 0.7289 GB, free: 7.516 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.5417, allocations: 11.41 MB / 0.74 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.5423, allocations: 1.172 MB / 0.7412 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009478/0.5433, allocations: 276.1 kB / 0.7414 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006382/0.5439, allocations: 0.5461 MB / 0.742 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of SimCode: time 6.01e-07/0.544, allocations: 0 / 0.742 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.594/4.138, allocations: 43.4 MB / 0.7844 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/22.18, allocations: 9.062 kB / 0.7844 GB, free: 14.57 MB / 0.6075 GB (rm -f IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)