Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001148/0.001148, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.586/2.586, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 63.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9851/0.9866, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.08225/1.069, allocations: 75.2 MB / 1.282 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02316/1.092, allocations: 15.17 MB / 1.297 GB, free: 2.953 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00332/1.096, allocations: 67.62 kB / 1.297 GB, free: 2.887 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.003032/1.099, allocations: 0.8267 MB / 1.298 GB, free: 2.055 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008276/1.107, allocations: 2.596 MB / 1.3 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004205/1.111, allocations: 1.398 MB / 1.301 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.006782/1.118, allocations: 4.395 MB / 1.306 GB, free: 9.656 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002818/1.121, allocations: 1.445 MB / 1.307 GB, free: 8.184 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004633/1.125, allocations: 1.679 MB / 1.309 GB, free: 6.504 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002624/1.128, allocations: 1.21 MB / 1.31 GB, free: 5.289 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0006768/1.129, allocations: 164 kB / 1.31 GB, free: 5.129 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003833/1.133, allocations: 1.408 MB / 1.311 GB, free: 3.719 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0007584/1.133, allocations: 390.7 kB / 1.312 GB, free: 3.336 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.002056/1.136, allocations: 0.9099 MB / 1.313 GB, free: 2.422 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.005922/1.141, allocations: 2.865 MB / 1.316 GB, free: 15.55 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/1.142, allocations: 0 / 1.316 GB, free: 15.55 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.954e-06/1.142, allocations: 0 / 1.316 GB, free: 15.55 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.628e-05/1.142, allocations: 0 / 1.316 GB, free: 15.55 MB / 1.045 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.005129/1.147, allocations: 2.077 MB / 1.318 GB, free: 13.41 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.147, allocations: 8.031 kB / 1.318 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/1.148, allocations: 230.8 kB / 1.318 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003198/1.151, allocations: 1.521 MB / 1.319 GB, free: 11.6 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.153e-05/1.151, allocations: 85.92 kB / 1.319 GB, free: 11.52 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002236/1.151, allocations: 104 kB / 1.319 GB, free: 11.41 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/1.154, allocations: 1.104 MB / 1.321 GB, free: 10.27 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/1.154, allocations: 8 kB / 1.321 GB, free: 10.27 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/1.154, allocations: 36 kB / 1.321 GB, free: 10.23 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/1.154, allocations: 28 kB / 1.321 GB, free: 10.2 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/1.156, allocations: 0.89 MB / 1.321 GB, free: 9.316 MB / 1.045 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.007201/1.163, allocations: 4.896 MB / 1.326 GB, free: 4.133 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/1.165, allocations: 0.608 MB / 1.327 GB, free: 3.52 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007436/1.166, allocations: 355.6 kB / 1.327 GB, free: 3.172 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006716/1.166, allocations: 0.8277 MB / 1.328 GB, free: 2.16 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/1.166, allocations: 39.12 kB / 1.328 GB, free: 2.109 MB / 1.045 GB Notification: Performance of pre-optimization done (n=61): time 3.667e-06/1.166, allocations: 0 / 1.328 GB, free: 2.109 MB / 1.045 GB Notification: Performance of matching and sorting (n=61): time 0.007578/1.174, allocations: 1.693 MB / 1.33 GB, free: 400 kB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/1.174, allocations: 59.97 kB / 1.33 GB, free: 328 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/1.176, allocations: 1.222 MB / 1.331 GB, free: 15.08 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001731/1.177, allocations: 45.7 kB / 1.331 GB, free: 15.03 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/1.177, allocations: 0.6065 MB / 1.332 GB, free: 14.42 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/1.177, allocations: 209 kB / 1.332 GB, free: 14.21 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/1.178, allocations: 154.5 kB / 1.332 GB, free: 14.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001338/1.178, allocations: 338 kB / 1.332 GB, free: 13.72 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007337/1.179, allocations: 292.6 kB / 1.333 GB, free: 13.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009454/1.18, allocations: 0.489 MB / 1.333 GB, free: 12.86 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/1.181, allocations: 0.7166 MB / 1.334 GB, free: 12.1 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.198e-06/1.181, allocations: 4 kB / 1.334 GB, free: 12.1 MB / 1.061 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005108/1.186, allocations: 1.277 MB / 1.335 GB, free: 10.81 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/1.186, allocations: 8.062 kB / 1.335 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/1.186, allocations: 4 kB / 1.335 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006477/1.187, allocations: 136.7 kB / 1.335 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006809/1.188, allocations: 151.8 kB / 1.335 GB, free: 10.51 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009432/1.189, allocations: 0.7122 MB / 1.336 GB, free: 9.773 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/1.19, allocations: 119 kB / 1.336 GB, free: 9.656 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/1.19, allocations: 35.98 kB / 1.336 GB, free: 9.621 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001328/1.192, allocations: 0.5526 MB / 1.337 GB, free: 9.062 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009076/1.192, allocations: 498.7 kB / 1.337 GB, free: 8.5 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001507/1.194, allocations: 0.709 MB / 1.338 GB, free: 7.738 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.28e-06/1.194, allocations: 4 kB / 1.338 GB, free: 7.734 MB / 1.061 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.005138/1.199, allocations: 1.265 MB / 1.339 GB, free: 6.457 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/1.199, allocations: 4 kB / 1.339 GB, free: 6.453 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/1.199, allocations: 4.375 kB / 1.339 GB, free: 6.449 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/1.2, allocations: 140.7 kB / 1.339 GB, free: 6.309 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006539/1.2, allocations: 155.7 kB / 1.339 GB, free: 6.156 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008622/1.201, allocations: 0.7045 MB / 1.34 GB, free: 5.426 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/1.203, allocations: 103.4 kB / 1.34 GB, free: 5.324 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/1.203, allocations: 31.98 kB / 1.34 GB, free: 5.293 MB / 1.061 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 (78): * Single equations (assignments): 77 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003144/1.203, allocations: 229.7 kB / 1.34 GB, free: 5.062 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005043/1.204, allocations: 130.4 kB / 1.34 GB, free: 4.934 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00501/1.209, allocations: 1.275 MB / 1.342 GB, free: 3.637 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/1.209, allocations: 4 kB / 1.342 GB, free: 3.633 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.209, allocations: 4 kB / 1.342 GB, free: 3.629 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004358/1.213, allocations: 1.103 MB / 1.343 GB, free: 2.492 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007546/1.221, allocations: 2.621 MB / 1.345 GB, free: 15.76 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.221, allocations: 7.938 kB / 1.345 GB, free: 15.75 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005239/1.221, allocations: 107.9 kB / 1.345 GB, free: 15.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005222/1.222, allocations: 129.2 kB / 1.346 GB, free: 15.52 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-05/1.222, allocations: 19.98 kB / 1.346 GB, free: 15.5 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005408/1.227, allocations: 2.622 MB / 1.348 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.227, allocations: 7.938 kB / 1.348 GB, free: 12.71 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006013/1.233, allocations: 1.695 MB / 1.35 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009084/1.234, allocations: 311.3 kB / 1.35 GB, free: 10.62 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004461/1.235, allocations: 19.94 kB / 1.35 GB, free: 10.6 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.236, allocations: 55.94 kB / 1.35 GB, free: 10.55 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/1.236, allocations: 64.23 kB / 1.35 GB, free: 10.48 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.245e-05/1.236, allocations: 31.98 kB / 1.35 GB, free: 10.45 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001642/1.238, allocations: 0.8818 MB / 1.351 GB, free: 9.57 MB / 1.076 GB Notification: Performance of sort global known variables: time 3.8e-07/1.238, allocations: 0 / 1.351 GB, free: 9.57 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.002537/1.24, allocations: 0.7213 MB / 1.352 GB, free: 8.848 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.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 (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001147/1.242, allocations: 459.4 kB / 1.352 GB, free: 8.398 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.002929/1.244, allocations: 1.125 MB / 1.353 GB, free: 7.277 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.244, allocations: 0 / 1.353 GB, free: 7.277 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001598/1.246, allocations: 0.5603 MB / 1.354 GB, free: 6.707 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/1.25, allocations: 0.7904 MB / 1.355 GB, free: 5.93 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005234/1.256, allocations: 2.305 MB / 1.357 GB, free: 3.539 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/1.257, allocations: 1.168 MB / 1.358 GB, free: 2.344 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/1.257, allocations: 115.4 kB / 1.358 GB, free: 2.23 MB / 1.076 GB Notification: Performance of SimCode: time 1.322e-06/1.257, allocations: 0 / 1.358 GB, free: 2.23 MB / 1.076 GB Notification: Performance of Templates: time 0.0427/1.3, allocations: 31.3 MB / 1.389 GB, free: 3.113 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_y.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches