Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_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.001122/0.001122, 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.001285/0.001285, allocations: 196.6 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00222/0.00222, allocations: 282.7 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9515/0.9515, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 91.45 kB / 0.5953 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1392, allocations: 86.98 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06346/0.2026, allocations: 70.44 MB / 0.7491 GB, free: 9.969 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02098/0.2237, allocations: 18.91 MB / 0.7675 GB, free: 7 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.2255, allocations: 63.62 kB / 0.7676 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.2273, allocations: 0.8189 MB / 0.7684 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006209/0.2335, allocations: 2.855 MB / 0.7712 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.2369, allocations: 1.648 MB / 0.7728 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2733/0.5103, allocations: 4.03 MB / 0.7767 GB, free: 25.94 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.5125, allocations: 1.445 MB / 0.7781 GB, free: 25.84 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004033/0.5165, allocations: 1.763 MB / 0.7799 GB, free: 25.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001878/0.5184, allocations: 1.188 MB / 0.781 GB, free: 25.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.5188, allocations: 175.8 kB / 0.7812 GB, free: 25.77 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003667/0.5225, allocations: 1.406 MB / 0.7826 GB, free: 25.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.5229, allocations: 392.5 kB / 0.7829 GB, free: 25.7 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.5241, allocations: 0.9175 MB / 0.7838 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004672/0.5288, allocations: 3.081 MB / 0.7868 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5288, allocations: 0 / 0.7868 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.635e-06/0.5288, allocations: 2.016 kB / 0.7868 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.128e-05/0.5289, allocations: 0 / 0.7868 GB, free: 25.21 MB / 0.5606 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.004481/0.5333, allocations: 2.037 MB / 0.7888 GB, free: 24.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.5334, allocations: 9.375 kB / 0.7888 GB, free: 24.18 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002417/0.5337, allocations: 156 kB / 0.789 GB, free: 24.14 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003156/0.5368, allocations: 448.8 kB / 0.7894 GB, free: 24.04 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.5402, allocations: 1.492 MB / 0.7909 GB, free: 23.63 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004924/0.5407, allocations: 135 kB / 0.791 GB, free: 23.62 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002193/0.541, allocations: 106 kB / 0.7911 GB, free: 23.62 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003428/0.5444, allocations: 1.318 MB / 0.7924 GB, free: 23.33 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.5444, allocations: 3.656 kB / 0.7924 GB, free: 23.33 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.5446, allocations: 44.75 kB / 0.7924 GB, free: 23.33 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-05/0.5447, allocations: 28.97 kB / 0.7925 GB, free: 23.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003595/0.5483, allocations: 1.106 MB / 0.7935 GB, free: 23.3 MB / 0.5606 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.01057/0.5589, allocations: 7.563 MB / 0.8009 GB, free: 18.88 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004124/0.563, allocations: 0.8017 MB / 0.8017 GB, free: 18.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000776/0.5638, allocations: 282.6 kB / 0.802 GB, free: 18.83 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/0.5649, allocations: 1.721 MB / 0.8037 GB, free: 16.86 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.565, allocations: 41.22 kB / 0.8037 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 3.376e-06/0.565, allocations: 2.812 kB / 0.8037 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.006351/0.5713, allocations: 1.334 MB / 0.805 GB, free: 16.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.5714, allocations: 62.98 kB / 0.8051 GB, free: 16.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003986/0.5754, allocations: 1.545 MB / 0.8066 GB, free: 16.34 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.762e-05/0.5755, allocations: 36.45 kB / 0.8066 GB, free: 16.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006334/0.5761, allocations: 0.6839 MB / 0.8073 GB, free: 16.07 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.5763, allocations: 170.3 kB / 0.8074 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004135/0.5767, allocations: 170 kB / 0.8076 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.5768, allocations: 335.2 kB / 0.8079 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.5781, allocations: 368.4 kB / 0.8083 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.5797, allocations: 0.6615 MB / 0.8089 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.582, allocations: 0.8886 MB / 0.8098 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.5821, allocations: 1.969 kB / 0.8098 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004107/0.5862, allocations: 1.205 MB / 0.811 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.5862, allocations: 13.94 kB / 0.811 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.5863, allocations: 7.188 kB / 0.811 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.5874, allocations: 228.8 kB / 0.8112 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.5885, allocations: 192.2 kB / 0.8114 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009462/0.5894, allocations: 0.7237 MB / 0.8121 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002195/0.5917, allocations: 221.4 kB / 0.8123 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.5918, allocations: 44.78 kB / 0.8124 GB, free: 14.2 MB / 0.5606 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.0006996/0.5925, allocations: 350.2 kB / 0.8127 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.593, allocations: 145.3 kB / 0.8128 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002622/0.5956, allocations: 1.152 MB / 0.814 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.5956, allocations: 9.5 kB / 0.814 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.5956, allocations: 0 / 0.814 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.5956, allocations: 5.266 kB / 0.814 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005124/0.6008, allocations: 2.52 MB / 0.8164 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.6008, allocations: 1.375 kB / 0.8164 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.6012, allocations: 83.45 kB / 0.8165 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007614/0.6019, allocations: 219 kB / 0.8167 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.662e-05/0.602, allocations: 13.69 kB / 0.8167 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.6032, allocations: 0.7647 MB / 0.8175 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6032, allocations: 8.812 kB / 0.8175 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003667/0.6069, allocations: 1.208 MB / 0.8187 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005363/0.6075, allocations: 354 kB / 0.819 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.6077, allocations: 16.09 kB / 0.819 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009741/0.6087, allocations: 79.62 kB / 0.8191 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.831e-05/0.6088, allocations: 39.12 kB / 0.8191 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.6089, allocations: 24.62 kB / 0.8192 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001641/0.6105, allocations: 1.089 MB / 0.8202 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.222e-06/0.6105, allocations: 0 / 0.8202 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001201/0.6117, allocations: 453.1 kB / 0.8206 GB, free: 11.89 MB / 0.5606 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.003919/0.6157, allocations: 2.128 MB / 0.8227 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002055/0.6177, allocations: 0.8822 MB / 0.8236 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.6177, allocations: 0 / 0.8236 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.6189, allocations: 444 kB / 0.824 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002768/0.6217, allocations: 0.7426 MB / 0.8247 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.6362, allocations: 11.39 MB / 0.8359 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.6367, allocations: 1.177 MB / 0.837 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009752/0.6377, allocations: 268.5 kB / 0.8373 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005516/0.6382, allocations: 0.5426 MB / 0.8378 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.6383, allocations: 0 / 0.8378 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.59/1.228, allocations: 43.46 MB / 0.8802 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.29, allocations: 21.17 kB / 0.8803 GB, free: 10.59 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)