Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_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.00142/0.00142, allocations: 108 kB / 15.6 MB, free: 132 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.001394/0.001395, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.257/1.257, 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/package.mo): time 0.706/0.706, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 60.94 kB / 0.5019 GB, free: 8.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1295, allocations: 80.21 MB / 0.5802 GB, free: 8.699 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.2646/0.3941, allocations: 70.44 MB / 0.649 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01606/0.4102, allocations: 18.9 MB / 0.6674 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001881/0.4121, allocations: 68.03 kB / 0.6675 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.4138, allocations: 0.8293 MB / 0.6683 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005996/0.4198, allocations: 2.843 MB / 0.6711 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003451/0.4233, allocations: 1.643 MB / 0.6727 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004444/0.4278, allocations: 4.036 MB / 0.6766 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001686/0.4295, allocations: 1.451 MB / 0.678 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003024/0.4325, allocations: 1.775 MB / 0.6798 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001344/0.4339, allocations: 1.177 MB / 0.6809 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002061/0.4341, allocations: 174.9 kB / 0.6811 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.4366, allocations: 1.42 MB / 0.6825 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003217/0.4369, allocations: 380.5 kB / 0.6828 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007943/0.4377, allocations: 0.9204 MB / 0.6837 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003244/0.441, allocations: 3.085 MB / 0.6868 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.441, allocations: 0.6094 kB / 0.6868 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.374e-06/0.441, allocations: 1.531 kB / 0.6868 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.818e-05/0.441, allocations: 3.938 kB / 0.6868 GB, free: 7.453 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.003111/0.4442, allocations: 2.029 MB / 0.6887 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.4442, allocations: 14.06 kB / 0.6888 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001886/0.4444, allocations: 158.6 kB / 0.6889 GB, free: 5.98 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002123/0.4465, allocations: 442.9 kB / 0.6893 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.4487, allocations: 1.478 MB / 0.6908 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003656/0.4491, allocations: 141.5 kB / 0.6909 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.4493, allocations: 102.6 kB / 0.691 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/0.4516, allocations: 1.323 MB / 0.6923 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.4516, allocations: 1.469 kB / 0.6923 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-05/0.4517, allocations: 42.72 kB / 0.6923 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.4517, allocations: 30.53 kB / 0.6924 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002551/0.4543, allocations: 1.108 MB / 0.6935 GB, free: 3.715 MB / 0.5137 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.007703/0.462, allocations: 7.558 MB / 0.7008 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.465, allocations: 0.7961 MB / 0.7016 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006265/0.4656, allocations: 282.5 kB / 0.7019 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001247/0.4669, allocations: 1.727 MB / 0.7036 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.4669, allocations: 42.19 kB / 0.7036 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/0.4669, allocations: 0 / 0.7036 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=48): time 0.004433/0.4714, allocations: 1.336 MB / 0.7049 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.4714, allocations: 57.25 kB / 0.705 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.4735, allocations: 1.551 MB / 0.7065 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/0.4735, allocations: 42.61 kB / 0.7065 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005293/0.4741, allocations: 0.6732 MB / 0.7072 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.4742, allocations: 170.4 kB / 0.7073 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002734/0.4745, allocations: 170.5 kB / 0.7075 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4746, allocations: 343.1 kB / 0.7078 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009463/0.4756, allocations: 365.6 kB / 0.7082 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.4768, allocations: 0.6713 MB / 0.7088 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.4785, allocations: 0.8816 MB / 0.7097 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.4785, allocations: 2.656 kB / 0.7097 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002792/0.4813, allocations: 1.205 MB / 0.7109 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4813, allocations: 9.5 kB / 0.7109 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4814, allocations: 7.984 kB / 0.7109 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007631/0.4821, allocations: 223.2 kB / 0.7111 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007269/0.4829, allocations: 191.3 kB / 0.7113 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007781/0.4837, allocations: 0.7227 MB / 0.712 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.4851, allocations: 219.7 kB / 0.7122 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-05/0.4852, allocations: 43.61 kB / 0.7122 GB, free: 6.098 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.0004406/0.4856, allocations: 356 kB / 0.7126 GB, free: 5.832 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.4858, allocations: 156.4 kB / 0.7127 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.488, allocations: 1.145 MB / 0.7139 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.4881, allocations: 17.72 kB / 0.7139 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4881, allocations: 0 / 0.7139 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.4881, allocations: 3.984 kB / 0.7139 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004706/0.4928, allocations: 2.503 MB / 0.7163 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4928, allocations: 5.781 kB / 0.7163 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.4932, allocations: 81.83 kB / 0.7164 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006751/0.4939, allocations: 210.4 kB / 0.7166 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.4939, allocations: 23.08 kB / 0.7166 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.4951, allocations: 0.7685 MB / 0.7174 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4951, allocations: 6.625 kB / 0.7174 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.4983, allocations: 1.205 MB / 0.7186 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003942/0.4987, allocations: 351.5 kB / 0.7189 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.4989, allocations: 10.72 kB / 0.7189 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008301/0.4997, allocations: 75.25 kB / 0.719 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.4998, allocations: 43.28 kB / 0.719 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.4998, allocations: 27.14 kB / 0.719 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001414/0.5013, allocations: 1.089 MB / 0.7201 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5013, allocations: 0 / 0.7201 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001066/0.5023, allocations: 451.8 kB / 0.7205 GB, free: 0.7148 MB / 0.5294 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.003928/0.5063, allocations: 2.128 MB / 0.7226 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002029/0.5083, allocations: 0.8876 MB / 0.7235 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5083, allocations: 0 / 0.7235 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.5095, allocations: 443 kB / 0.7239 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.5122, allocations: 0.735 MB / 0.7246 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/0.5274, allocations: 11.39 MB / 0.7357 GB, free: 1.539 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.528, allocations: 1.172 MB / 0.7369 GB, free: 340 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008466/0.5289, allocations: 273.3 kB / 0.7372 GB, free: 76 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006468/0.5295, allocations: 0.5501 MB / 0.7377 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5295, allocations: 0 / 0.7377 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.88/1.41, allocations: 43.39 MB / 0.7801 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/14.36, allocations: 7.922 kB / 0.7801 GB, free: 4.676 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)