Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem1a.T|senTem1b.T|senTem2a.T|senTem2b.T|senTem3a.T|senTem3b.T|senTem4a.T|senTem4b.T|mix1.T|hea1.m_flow|hea2.m_flow|hea3.m_flow|hea4.m_flow|senTem5b.T|senTem5a.T|senTem6b.T|senTem7a.T|senTem7b.T|senTem8a.T|senTem8b.T|mix2.T|hea5.m_flow|hea6.m_flow|hea7.m_flow|hea8.m_flow|che1.y|che2.y|che9.y|che10.y|che3.y|che4.y|che5.y|che6.y|che7.y|che8.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem1a.T|senTem1b.T|senTem2a.T|senTem2b.T|senTem3a.T|senTem3b.T|senTem4a.T|senTem4b.T|mix1.T|hea1.m_flow|hea2.m_flow|hea3.m_flow|hea4.m_flow|senTem5b.T|senTem5a.T|senTem6b.T|senTem7a.T|senTem7b.T|senTem8a.T|senTem8b.T|mix2.T|hea5.m_flow|hea6.m_flow|hea7.m_flow|hea8.m_flow|che1.y|che2.y|che9.y|che10.y|che3.y|che4.y|che5.y|che6.y|che7.y|che8.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 115 kB / 16.42 MB, free: 6.512 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.00126/0.00126, allocations: 186.5 kB / 17.35 MB, free: 5.754 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.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.592/2.592, allocations: 472.7 MB / 0.746 GB, free: 424 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.89 kB / 1.07 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6809/0.6823, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.2773/0.9597, allocations: 300.4 MB / 1.52 GB, free: 100 kB / 1.232 GB Notification: Performance of NFInst.instExpressions: time 0.6841/1.644, allocations: 50.02 MB / 1.569 GB, free: 71.84 MB / 1.279 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00826/1.652, allocations: 299.7 kB / 1.569 GB, free: 71.84 MB / 1.279 GB Notification: Performance of NFTyping.typeComponents: time 0.008845/1.661, allocations: 3.522 MB / 1.572 GB, free: 71.84 MB / 1.279 GB Notification: Performance of NFTyping.typeBindings: time 0.02368/1.685, allocations: 9.494 MB / 1.582 GB, free: 71.76 MB / 1.279 GB Notification: Performance of NFTyping.typeClassSections: time 0.01491/1.7, allocations: 6.711 MB / 1.588 GB, free: 71.6 MB / 1.279 GB Notification: Performance of NFFlatten.flatten: time 0.02303/1.723, allocations: 18.52 MB / 1.606 GB, free: 71.57 MB / 1.279 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008081/1.731, allocations: 5.831 MB / 1.612 GB, free: 70.84 MB / 1.279 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01609/1.747, allocations: 7.559 MB / 1.619 GB, free: 70.59 MB / 1.279 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01023/1.757, allocations: 5.088 MB / 1.624 GB, free: 69.64 MB / 1.279 GB Notification: Performance of NFPackage.collectConstants: time 0.002092/1.759, allocations: 0.5638 MB / 1.625 GB, free: 69.64 MB / 1.279 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01303/1.772, allocations: 4.387 MB / 1.629 GB, free: 69.55 MB / 1.279 GB Notification: Performance of NFScalarize.scalarize: time 0.002118/1.774, allocations: 1.503 MB / 1.631 GB, free: 69.3 MB / 1.279 GB Notification: Performance of NFVerifyModel.verify: time 0.006512/1.781, allocations: 3.741 MB / 1.634 GB, free: 68.26 MB / 1.279 GB Notification: Performance of NFConvertDAE.convert: time 0.01638/1.797, allocations: 10.47 MB / 1.644 GB, free: 66.72 MB / 1.279 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/1.797, allocations: 0 / 1.644 GB, free: 66.72 MB / 1.279 GB Notification: Performance of FrontEnd: time 2.294e-06/1.797, allocations: 4.422 kB / 1.644 GB, free: 66.72 MB / 1.279 GB Notification: Performance of Transformations before backend: time 0.0002212/1.798, allocations: 4 kB / 1.644 GB, free: 66.72 MB / 1.279 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.01186/1.81, allocations: 7.704 MB / 1.652 GB, free: 63.16 MB / 1.279 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/1.81, allocations: 16.52 kB / 1.652 GB, free: 63.16 MB / 1.279 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/1.812, allocations: 0.8153 MB / 1.653 GB, free: 62.75 MB / 1.279 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009036/1.821, allocations: 5.41 MB / 1.658 GB, free: 61.57 MB / 1.279 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/1.821, allocations: 325 kB / 1.658 GB, free: 61.56 MB / 1.279 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006619/1.822, allocations: 431.4 kB / 1.659 GB, free: 61.56 MB / 1.279 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006592/1.828, allocations: 4.382 MB / 1.663 GB, free: 60.75 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.395e-05/1.829, allocations: 13.52 kB / 1.663 GB, free: 60.75 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003463/1.829, allocations: 176.1 kB / 1.663 GB, free: 60.75 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.523e-05/1.829, allocations: 120.9 kB / 1.663 GB, free: 60.75 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004833/1.834, allocations: 2.957 MB / 1.666 GB, free: 60.72 MB / 1.279 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.02055/1.854, allocations: 25.17 MB / 1.691 GB, free: 42.69 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/1.857, allocations: 2.769 MB / 1.694 GB, free: 41.33 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/1.858, allocations: 0.9963 MB / 1.695 GB, free: 41.21 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00191/1.86, allocations: 3.907 MB / 1.698 GB, free: 36.7 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/1.86, allocations: 67.78 kB / 1.698 GB, free: 36.66 MB / 1.279 GB Notification: Performance of pre-optimization done (n=217): time 4.338e-06/1.86, allocations: 2.844 kB / 1.698 GB, free: 36.66 MB / 1.279 GB Notification: Performance of matching and sorting (n=217): time 0.01003/1.87, allocations: 4.097 MB / 1.702 GB, free: 34.67 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/1.87, allocations: 77.41 kB / 1.702 GB, free: 34.58 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005258/1.876, allocations: 4.295 MB / 1.707 GB, free: 30.3 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.0003467/1.876, allocations: 81.7 kB / 1.707 GB, free: 30.22 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.001413/1.877, allocations: 2.821 MB / 1.71 GB, free: 27.39 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005974/1.878, allocations: 0.7996 MB / 1.71 GB, free: 26.6 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006349/1.879, allocations: 0.5766 MB / 1.711 GB, free: 26.02 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 3.555e-05/1.879, allocations: 305.1 kB / 1.711 GB, free: 25.72 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/1.88, allocations: 0.8263 MB / 1.712 GB, free: 24.89 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/1.881, allocations: 1.818 MB / 1.714 GB, free: 22.65 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/1.884, allocations: 2.51 MB / 1.716 GB, free: 19.9 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/1.884, allocations: 4 kB / 1.716 GB, free: 19.89 MB / 1.279 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.007117/1.891, allocations: 3.591 MB / 1.72 GB, free: 16.41 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/1.891, allocations: 12 kB / 1.72 GB, free: 16.39 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/1.892, allocations: 27.98 kB / 1.72 GB, free: 16.37 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/1.894, allocations: 0.5858 MB / 1.72 GB, free: 15.78 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/1.896, allocations: 0.5524 MB / 1.721 GB, free: 15.27 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/1.897, allocations: 2.682 MB / 1.723 GB, free: 12.5 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/1.9, allocations: 330.1 kB / 1.724 GB, free: 12.18 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/1.901, allocations: 136 kB / 1.724 GB, free: 12.05 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002551/1.903, allocations: 1.575 MB / 1.725 GB, free: 10.47 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001575/1.905, allocations: 1.794 MB / 1.727 GB, free: 8.254 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002719/1.908, allocations: 2.457 MB / 1.73 GB, free: 5.559 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.13e-05/1.908, allocations: 14.84 kB / 1.73 GB, free: 5.547 MB / 1.279 GB Notification: Performance of matching and sorting (n=365) (initialization_lambda0): time 0.00606/1.914, allocations: 3.334 MB / 1.733 GB, free: 2.293 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/1.914, allocations: 17.28 kB / 1.733 GB, free: 2.281 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/1.914, allocations: 24.88 kB / 1.733 GB, free: 2.258 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00091/1.915, allocations: 372.9 kB / 1.733 GB, free: 1.887 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/1.916, allocations: 0.5481 MB / 1.734 GB, free: 1.375 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00778/1.924, allocations: 8.462 MB / 1.742 GB, free: 8.402 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/1.928, allocations: 299.6 kB / 1.742 GB, free: 8.109 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003153/1.928, allocations: 132 kB / 1.742 GB, free: 7.98 MB / 1.295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * 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 (323): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,12), (1,9), (1,12), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006748/1.929, allocations: 364.1 kB / 1.743 GB, free: 7.656 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/1.93, allocations: 0.5318 MB / 1.743 GB, free: 7.121 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006445/1.937, allocations: 3.574 MB / 1.747 GB, free: 3.559 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003901/1.941, allocations: 2.43 MB / 1.749 GB, free: 1.102 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/1.941, allocations: 0 / 1.749 GB, free: 1.102 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0023/1.943, allocations: 0.9185 MB / 1.75 GB, free: 164 kB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008826/1.944, allocations: 40 kB / 1.75 GB, free: 124 kB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002204/1.946, allocations: 119.9 kB / 1.75 GB, free: 4 kB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003288/1.947, allocations: 185.7 kB / 1.75 GB, free: 15.82 MB / 1.311 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005452/1.952, allocations: 2.832 MB / 1.753 GB, free: 13 MB / 1.311 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006757/1.959, allocations: 4.123 MB / 1.757 GB, free: 8.816 MB / 1.311 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001564/1.96, allocations: 1.05 MB / 1.758 GB, free: 7.766 MB / 1.311 GB Notification: Performance of sorting global known variables: time 0.004983/1.965, allocations: 2.844 MB / 1.761 GB, free: 4.949 MB / 1.311 GB Notification: Performance of Backend: time 8.52e-07/1.965, allocations: 4 kB / 1.761 GB, free: 4.945 MB / 1.311 GB Notification: Performance of simCode: created initialization part: time 0.01179/1.977, allocations: 5.227 MB / 1.766 GB, free: 15.99 MB / 1.326 GB Notification: Performance of SimCode: time 0.02162/1.999, allocations: 11.63 MB / 1.777 GB, free: 4.461 MB / 1.326 GB Notification: Performance of Templates: time 0.1729/2.172, allocations: 109.5 MB / 1.884 GB, free: 8.832 MB / 1.436 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches