Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.HeatPumps.Validation.Carnot_TCon_reverseFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow",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.0008931/0.0008932, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005785/0.005785, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.252/1.252, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.0003099, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5187/0.519, allocations: 142.4 MB / 0.9552 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.04723/0.5662, allocations: 59.79 MB / 1.014 GB, free: 3.344 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01364/0.5799, allocations: 11.92 MB / 1.025 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.5812, allocations: 51.62 kB / 1.025 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.5824, allocations: 0.5438 MB / 1.026 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.003504/0.5859, allocations: 1.811 MB / 1.028 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002095/0.588, allocations: 1.078 MB / 1.029 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.003254/0.5913, allocations: 3.901 MB / 1.032 GB, free: 15.99 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.5924, allocations: 0.9265 MB / 1.033 GB, free: 15.04 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.5939, allocations: 1.124 MB / 1.034 GB, free: 13.91 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000893/0.5948, allocations: 0.8592 MB / 1.035 GB, free: 13.04 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.596e-05/0.595, allocations: 44 kB / 1.035 GB, free: 13 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001981/0.5969, allocations: 1.329 MB / 1.037 GB, free: 11.67 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.5971, allocations: 214.9 kB / 1.037 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0004967/0.5976, allocations: 0.635 MB / 1.037 GB, free: 10.81 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00197/0.5996, allocations: 2.204 MB / 1.04 GB, free: 8.602 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.5996, allocations: 4 kB / 1.04 GB, free: 8.598 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5996, allocations: 0 / 1.04 GB, free: 8.598 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.5997, allocations: 0 / 1.04 GB, free: 8.598 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.002315/0.602, allocations: 1.501 MB / 1.041 GB, free: 7.039 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.602, allocations: 8.031 kB / 1.041 GB, free: 7.031 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.6022, allocations: 126.9 kB / 1.041 GB, free: 6.898 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002379/0.6045, allocations: 0.5142 MB / 1.042 GB, free: 6.383 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.6063, allocations: 1.128 MB / 1.043 GB, free: 5.195 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/0.6067, allocations: 133.9 kB / 1.043 GB, free: 5.066 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.6068, allocations: 80 kB / 1.043 GB, free: 4.988 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.6087, allocations: 1.033 MB / 1.044 GB, free: 3.922 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.6088, allocations: 0 / 1.044 GB, free: 3.922 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-05/0.6089, allocations: 36 kB / 1.044 GB, free: 3.887 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.6089, allocations: 24 kB / 1.044 GB, free: 3.863 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002445/0.6113, allocations: 1.011 MB / 1.045 GB, free: 2.852 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.005065/0.6164, allocations: 4.716 MB / 1.05 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003996/0.6204, allocations: 1.123 MB / 1.051 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.6215, allocations: 447.3 kB / 1.051 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008188/0.6223, allocations: 1.033 MB / 1.052 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.6223, allocations: 35 kB / 1.052 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=53): time 1.833e-06/0.6223, allocations: 0 / 1.052 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of matching and sorting (n=53): time 0.009372/0.6317, allocations: 2.502 MB / 1.055 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/0.6318, allocations: 59.83 kB / 1.055 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.6328, allocations: 0.9314 MB / 1.056 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.924e-05/0.6328, allocations: 45.64 kB / 1.056 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.6332, allocations: 0.5002 MB / 1.056 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.6333, allocations: 185.3 kB / 1.056 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.6334, allocations: 53.69 kB / 1.056 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.6335, allocations: 326 kB / 1.057 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.6345, allocations: 380.9 kB / 1.057 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.6356, allocations: 0.5477 MB / 1.058 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.6376, allocations: 0.8243 MB / 1.058 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.6377, allocations: 4 kB / 1.058 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002724/0.6404, allocations: 1.139 MB / 1.059 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.6405, allocations: 168.3 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6405, allocations: 4 kB / 1.06 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.6418, allocations: 328.6 kB / 1.06 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006173/0.6424, allocations: 143.8 kB / 1.06 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.6438, allocations: 0.9438 MB / 1.061 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.6448, allocations: 163.4 kB / 1.061 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/0.6449, allocations: 35.97 kB / 1.061 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.101e-06/0.6449, allocations: 4 kB / 1.061 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00265/0.6476, allocations: 1.001 MB / 1.062 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.6476, allocations: 3.984 kB / 1.062 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.6486, allocations: 330.5 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006213/0.6492, allocations: 139.8 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.6506, allocations: 0.9386 MB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009493/0.6515, allocations: 167.5 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/0.6516, allocations: 31.98 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/0.652, allocations: 345 kB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.6521, allocations: 118.5 kB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004375/0.6565, allocations: 1.44 MB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.6565, allocations: 7.984 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.6565, allocations: 4 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.6565, allocations: 3.984 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/0.662, allocations: 2.529 MB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.662, allocations: 4 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005282/0.6625, allocations: 120 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009542/0.6635, allocations: 326.1 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.6635, allocations: 15.98 kB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.6649, allocations: 0.9736 MB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6649, allocations: 7.969 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004084/0.669, allocations: 1.456 MB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.6693, allocations: 295.4 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.6695, allocations: 8 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008951/0.6704, allocations: 123.8 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/0.6704, allocations: 44.39 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.6705, allocations: 27.97 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007459/0.6713, allocations: 0.6556 MB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6713, allocations: 0 / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00118/0.6725, allocations: 0.5691 MB / 1.073 GB, free: 5.543 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004904/0.6774, allocations: 2.286 MB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003502/0.6809, allocations: 1.405 MB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6809, allocations: 0 / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.6821, allocations: 488.9 kB / 1.077 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.6845, allocations: 0.4923 MB / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/0.7014, allocations: 9.305 MB / 1.086 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/0.7019, allocations: 1.066 MB / 1.087 GB, free: 6.098 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0008436/0.7027, allocations: 230.7 kB / 1.087 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004863/0.7032, allocations: 415.3 kB / 1.088 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.7032, allocations: 0 / 1.088 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.647/3.351, allocations: 31.62 MB / 1.119 GB, free: 6.301 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002885/3.351, allocations: 289.8 kB / 1.119 GB, free: 5.922 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.647/6.998, allocations: 0 / 1.119 GB, free: 5.922 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_reverseFlow.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)