Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.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.Examples.Carnot_y,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.Carnot_y,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_Carnot_y",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.00129/0.00129, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001651/0.001651, allocations: 172.7 kB / 15.95 MB, free: 208 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.453/1.453, allocations: 223.2 MB / 240 MB, free: 5.359 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.504/2.504, allocations: 390.4 MB / 0.6655 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004248, allocations: 8 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7715/0.7719, allocations: 142.3 MB / 0.9538 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.Carnot_y): time 0.08333/0.8553, allocations: 69.42 MB / 1.022 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02047/0.8758, allocations: 11.95 MB / 1.033 GB, free: 14.59 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.8788, allocations: 59.62 kB / 1.033 GB, free: 14.53 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.8814, allocations: 0.5627 MB / 1.034 GB, free: 13.96 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007399/0.8888, allocations: 1.9 MB / 1.036 GB, free: 12.05 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.8924, allocations: 0.9614 MB / 1.037 GB, free: 11.11 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007045/0.8994, allocations: 4.787 MB / 1.041 GB, free: 6.305 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002291/0.9017, allocations: 1.021 MB / 1.042 GB, free: 5.254 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003135/0.9049, allocations: 1.268 MB / 1.044 GB, free: 3.98 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00237/0.9073, allocations: 1.062 MB / 1.045 GB, free: 2.914 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003997/0.9077, allocations: 56 kB / 1.045 GB, free: 2.859 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.9107, allocations: 0.9199 MB / 1.046 GB, free: 1.938 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005617/0.9113, allocations: 266.7 kB / 1.046 GB, free: 1.676 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00091/0.9122, allocations: 360.9 kB / 1.046 GB, free: 1.316 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003423/0.9156, allocations: 2.077 MB / 1.048 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.9157, allocations: 4 kB / 1.048 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9157, allocations: 3.938 kB / 1.048 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.208e-05/0.9158, allocations: 0 / 1.048 GB, free: 15.23 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004202/0.92, allocations: 1.795 MB / 1.05 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.92, allocations: 8.031 kB / 1.05 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003616/0.9204, allocations: 151.9 kB / 1.05 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009319/0.9213, allocations: 234 kB / 1.05 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003015/0.9244, allocations: 1.443 MB / 1.052 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-05/0.9245, allocations: 81.98 kB / 1.052 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/0.9247, allocations: 104 kB / 1.052 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.9269, allocations: 1.116 MB / 1.053 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/0.9269, allocations: 0 / 1.053 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-05/0.927, allocations: 44 kB / 1.053 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.189e-05/0.9271, allocations: 28 kB / 1.053 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001971/0.9291, allocations: 0.9134 MB / 1.054 GB, free: 9.16 MB / 0.8106 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.006758/0.9358, allocations: 4.915 MB / 1.059 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.9372, allocations: 0.6332 MB / 1.059 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.9379, allocations: 371.3 kB / 1.06 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00067/0.9386, allocations: 0.8277 MB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.9386, allocations: 43.12 kB / 1.061 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.344e-06/0.9386, allocations: 0 / 1.061 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.006573/0.9452, allocations: 1.873 MB / 1.062 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.9453, allocations: 67.89 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.9473, allocations: 1.202 MB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.495e-05/0.9474, allocations: 37.7 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006042/0.9481, allocations: 0.6064 MB / 1.064 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.9483, allocations: 209 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.9484, allocations: 16 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.9485, allocations: 334 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006442/0.9492, allocations: 293.8 kB / 1.065 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008703/0.95, allocations: 0.5037 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007266/0.9508, allocations: 359 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.9508, allocations: 0 / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004296/0.9551, allocations: 1.394 MB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.9553, allocations: 199.4 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.9553, allocations: 8 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/0.9559, allocations: 152.7 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006159/0.9565, allocations: 159.8 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008639/0.9574, allocations: 0.7045 MB / 1.069 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.9587, allocations: 171 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.321e-05/0.9588, allocations: 31.98 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.9588, allocations: 4 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003901/0.9627, allocations: 1.249 MB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.9627, allocations: 4 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/0.9632, allocations: 153.1 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.9638, allocations: 159.8 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007827/0.9646, allocations: 0.7084 MB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.9658, allocations: 157.1 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.739e-05/0.9659, allocations: 31.98 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (79): * Single equations (assignments): 78 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007748/0.9666, allocations: 432.8 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003417/0.967, allocations: 130.4 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004315/0.9713, allocations: 1.388 MB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.9713, allocations: 11.94 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.9714, allocations: 3.953 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003747/0.9751, allocations: 1.232 MB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008068/0.9832, allocations: 2.739 MB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.9832, allocations: 4 kB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.9837, allocations: 120.3 kB / 1.077 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004731/0.9842, allocations: 144.7 kB / 1.077 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-05/0.9843, allocations: 19.98 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004438/0.9887, allocations: 2.423 MB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.9888, allocations: 11.95 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004999/0.9938, allocations: 1.852 MB / 1.081 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007832/0.9946, allocations: 327.1 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003144/0.9949, allocations: 19.98 kB / 1.082 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.996, allocations: 103.8 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.9961, allocations: 60.25 kB / 1.082 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-05/0.9962, allocations: 27.98 kB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001553/0.9977, allocations: 0.8582 MB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9977, allocations: 4 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002436/1, allocations: 0.7096 MB / 1.083 GB, free: 9.859 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (chi.con.vol.dynBal.U,chi.eva.vol.dynBal.U) * 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 (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.005918/1.006, allocations: 2.686 MB / 1.086 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00277/1.009, allocations: 1.164 MB / 1.087 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.423e-06/1.009, allocations: 4 kB / 1.087 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001499/1.01, allocations: 0.5994 MB / 1.088 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/1.014, allocations: 0.7599 MB / 1.088 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.035, allocations: 8.34 MB / 1.097 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/1.036, allocations: 1.172 MB / 1.098 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001573/1.038, allocations: 307 kB / 1.098 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008394/1.039, allocations: 0.5032 MB / 1.099 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of SimCode: time 1.292e-06/1.039, allocations: 0 / 1.099 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07985/1.119, allocations: 41.96 MB / 1.14 GB, free: 440 kB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/1.119, allocations: 244.6 kB / 1.14 GB, free: 156 kB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.826/3.945, allocations: 3.938 kB / 1.14 GB, free: 152 kB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_Carnot_y.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y_res.mat does not exist to compare? outputFormat=mat