Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_9_Buildings_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.001597/0.001597, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002029/0.00203, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.426/2.426, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004039/0.0004041, allocations: 11.98 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7431/0.7435, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06488/0.8084, allocations: 59.19 MB / 1.011 GB, free: 4.879 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02056/0.829, allocations: 15.07 MB / 1.026 GB, free: 5.789 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002147/0.8312, allocations: 55.62 kB / 1.026 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.8338, allocations: 0.7073 MB / 1.027 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007191/0.841, allocations: 2.31 MB / 1.029 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004772/0.8458, allocations: 1.539 MB / 1.031 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004898/0.8507, allocations: 2.285 MB / 1.033 GB, free: 14.91 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002347/0.853, allocations: 1.026 MB / 1.034 GB, free: 13.85 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003567/0.8566, allocations: 1.265 MB / 1.035 GB, free: 12.58 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/0.8584, allocations: 0.7817 MB / 1.036 GB, free: 11.79 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003598/0.8588, allocations: 56 kB / 1.036 GB, free: 11.74 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.862, allocations: 0.979 MB / 1.037 GB, free: 10.76 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005283/0.8625, allocations: 242.9 kB / 1.037 GB, free: 10.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009918/0.8635, allocations: 368.8 kB / 1.037 GB, free: 10.15 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004341/0.8679, allocations: 2.276 MB / 1.04 GB, free: 7.871 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.8679, allocations: 4 kB / 1.04 GB, free: 7.867 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.976e-06/0.8679, allocations: 7.938 kB / 1.04 GB, free: 7.859 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001024/0.868, allocations: 0 / 1.04 GB, free: 7.859 MB / 0.795 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.004767/0.8728, allocations: 1.723 MB / 1.041 GB, free: 6.074 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.8729, allocations: 8.031 kB / 1.041 GB, free: 6.066 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004332/0.8733, allocations: 160.4 kB / 1.041 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002483/0.8758, allocations: 0.4936 MB / 1.042 GB, free: 5.406 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.8788, allocations: 1.424 MB / 1.043 GB, free: 3.926 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000398/0.8793, allocations: 146 kB / 1.044 GB, free: 3.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.8795, allocations: 104 kB / 1.044 GB, free: 3.68 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002881/0.8824, allocations: 1.305 MB / 1.045 GB, free: 2.281 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.8824, allocations: 4 kB / 1.045 GB, free: 2.277 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.8826, allocations: 47.95 kB / 1.045 GB, free: 2.23 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.8826, allocations: 27.98 kB / 1.045 GB, free: 2.203 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.8857, allocations: 1.155 MB / 1.046 GB, free: 1.051 MB / 0.795 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.009809/0.8955, allocations: 7.211 MB / 1.053 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003231/0.8988, allocations: 0.9065 MB / 1.054 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001259/0.9, allocations: 1.711 MB / 1.056 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.9001, allocations: 39 kB / 1.056 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.625e-06/0.9001, allocations: 0 / 1.056 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.005126/0.9052, allocations: 1.44 MB / 1.057 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.9053, allocations: 55.84 kB / 1.057 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.9081, allocations: 1.544 MB / 1.059 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.9082, allocations: 41.7 kB / 1.059 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007267/0.9089, allocations: 0.6653 MB / 1.059 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.9092, allocations: 173.6 kB / 1.06 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.9092, allocations: 8 kB / 1.06 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002143/0.9095, allocations: 334 kB / 1.06 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.9105, allocations: 385.8 kB / 1.06 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.9118, allocations: 0.6588 MB / 1.061 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.9128, allocations: 441.9 kB / 1.061 GB, free: 392 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.9128, allocations: 0 / 1.061 GB, free: 392 kB / 0.8106 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003024/0.9159, allocations: 1.212 MB / 1.062 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.9159, allocations: 8 kB / 1.062 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.9159, allocations: 8 kB / 1.063 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008913/0.9168, allocations: 229.4 kB / 1.063 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007715/0.9176, allocations: 207.6 kB / 1.063 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008942/0.9185, allocations: 0.7356 MB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.9202, allocations: 266.7 kB / 1.064 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.718e-05/0.9203, allocations: 39.97 kB / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006217/0.9209, allocations: 349.6 kB / 1.064 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.9211, allocations: 150.2 kB / 1.064 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.9236, allocations: 1.172 MB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/0.9236, allocations: 15.98 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.9236, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.9236, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005338/0.929, allocations: 2.612 MB / 1.068 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.929, allocations: 0 / 1.068 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003811/0.9294, allocations: 87.83 kB / 1.068 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007976/0.9302, allocations: 220.8 kB / 1.068 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.191e-05/0.9303, allocations: 19.98 kB / 1.068 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.9316, allocations: 0.802 MB / 1.069 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.9316, allocations: 8.031 kB / 1.069 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003609/0.9352, allocations: 1.377 MB / 1.071 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007041/0.9359, allocations: 382.8 kB / 1.071 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/0.9361, allocations: 12 kB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000937/0.937, allocations: 107.8 kB / 1.071 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.188e-05/0.9371, allocations: 40.69 kB / 1.071 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.674e-05/0.9372, allocations: 23.98 kB / 1.071 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00179/0.939, allocations: 1.09 MB / 1.072 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.939, allocations: 0 / 1.072 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001351/0.9404, allocations: 443.4 kB / 1.073 GB, free: 4.531 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.004627/0.945, allocations: 2.676 MB / 1.075 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002163/0.9472, allocations: 0.8642 MB / 1.076 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.9472, allocations: 0 / 1.076 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.9485, allocations: 475.5 kB / 1.077 GB, free: 480 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/0.9519, allocations: 0.6901 MB / 1.077 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007856/0.9597, allocations: 8.484 MB / 1.085 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008247/0.9606, allocations: 1.199 MB / 1.087 GB, free: 5.734 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001293/0.9619, allocations: 269.9 kB / 1.087 GB, free: 5.469 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007913/0.9627, allocations: 0.5422 MB / 1.087 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of SimCode: time 1.052e-06/0.9627, allocations: 0 / 1.087 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0693/1.032, allocations: 42.43 MB / 1.129 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002169/1.032, allocations: 266.2 kB / 1.129 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.697, allocations: 0 / 1.129 GB, free: 10.7 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat does not exist to compare? outputFormat=mat