Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|QCoo_flow|QHea_flow|QWatHea_flow",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad") translateModel(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|QCoo_flow|QHea_flow|QWatHea_flow",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 107.5 kB / 16.36 MB, free: 5.824 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.001458/0.001458, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.402/2.402, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 68.48 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3279, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad): time 0.002755/0.3307, allocations: 1.243 MB / 1.028 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.3327, allocations: 1.244 MB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.06e-05/0.3327, allocations: 11.94 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.3328, allocations: 0 / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006459/0.3334, allocations: 211.3 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001024/0.3335, allocations: 31.83 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.938e-05/0.3336, allocations: 11.94 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.232e-05/0.3336, allocations: 4 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.766e-05/0.3337, allocations: 19.91 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1842/0.5178, allocations: 30.89 MB / 1.06 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.185e-05/0.5179, allocations: 4 kB / 1.06 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.351e-05/0.5179, allocations: 4 kB / 1.06 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.5179, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.721e-05/0.518, allocations: 11.98 kB / 1.06 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.5181, allocations: 15.92 kB / 1.06 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.5181, allocations: 0 / 1.06 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.384e-06/0.5181, allocations: 3.938 kB / 1.06 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.5181, allocations: 0 / 1.06 GB, free: 2.934 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003436/0.5185, allocations: 311.6 kB / 1.06 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.5185, allocations: 12.03 kB / 1.06 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.887e-05/0.5186, allocations: 84.2 kB / 1.06 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.5188, allocations: 243.6 kB / 1.06 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.08e-05/0.5189, allocations: 150.9 kB / 1.06 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.5189, allocations: 154.9 kB / 1.061 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.223e-05/0.519, allocations: 105.1 kB / 1.061 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.5191, allocations: 79.28 kB / 1.061 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/0.5191, allocations: 150.6 kB / 1.061 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/0.5192, allocations: 154.6 kB / 1.061 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.301e-05/0.5192, allocations: 154.5 kB / 1.061 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002937/0.5195, allocations: 445.9 kB / 1.062 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.722e-05/0.5196, allocations: 169.1 kB / 1.062 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.283e-05/0.5197, allocations: 88.14 kB / 1.062 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.5197, allocations: 75.33 kB / 1.062 GB, free: 456 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.896e-05/0.5198, allocations: 117.7 kB / 1.062 GB, free: 328 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.5198, allocations: 0 / 1.062 GB, free: 328 kB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 8.6e-05/0.5199, allocations: 37.61 kB / 1.062 GB, free: 284 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.52, allocations: 211.8 kB / 1.062 GB, free: 40 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.5201, allocations: 97.86 kB / 1.062 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.5201, allocations: 25.7 kB / 1.062 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.82e-05/0.5202, allocations: 80.14 kB / 1.062 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-06/0.5202, allocations: 0 / 1.062 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.22e-05/0.5202, allocations: 17.7 kB / 1.062 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5203, allocations: 318.8 kB / 1.063 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.53e-06/0.5204, allocations: 4 kB / 1.063 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.333e-05/0.5204, allocations: 18.58 kB / 1.063 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.028e-05/0.5204, allocations: 79.22 kB / 1.063 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.578e-05/0.5205, allocations: 79.28 kB / 1.063 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.008e-05/0.5205, allocations: 29.64 kB / 1.063 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.5206, allocations: 83.28 kB / 1.063 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000644/0.5212, allocations: 79.27 kB / 1.063 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.146e-05/0.5213, allocations: 158.5 kB / 1.063 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.249e-05/0.5213, allocations: 75.28 kB / 1.063 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-05/0.5214, allocations: 162.5 kB / 1.063 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.5216, allocations: 75.28 kB / 1.064 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.5216, allocations: 83.28 kB / 1.064 GB, free: 14.55 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.5218, allocations: 268.9 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.5219, allocations: 112.9 kB / 1.064 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.5219, allocations: 108.1 kB / 1.064 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.456e-05/0.522, allocations: 180.2 kB / 1.064 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.596e-05/0.5221, allocations: 180.3 kB / 1.064 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.099e-05/0.5221, allocations: 180.2 kB / 1.065 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.5224, allocations: 405.2 kB / 1.065 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-05/0.5225, allocations: 113 kB / 1.065 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-05/0.5225, allocations: 109.1 kB / 1.065 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.553e-05/0.5226, allocations: 176.3 kB / 1.065 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.5227, allocations: 180.2 kB / 1.066 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.737e-05/0.5227, allocations: 188.2 kB / 1.066 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.354e-05/0.5228, allocations: 180.3 kB / 1.066 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.523, allocations: 307.7 kB / 1.066 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.5231, allocations: 182 kB / 1.066 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.5232, allocations: 196.2 kB / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.5233, allocations: 101 kB / 1.067 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.5234, allocations: 184.2 kB / 1.067 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.5234, allocations: 101 kB / 1.067 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.364e-05/0.5235, allocations: 83.27 kB / 1.067 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5235, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002541/0.5237, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001507/0.5239, allocations: 182.5 kB / 1.067 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 5.22e-05/0.524, allocations: 7.875 kB / 1.067 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.524, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.487e-06/0.524, allocations: 4 kB / 1.067 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.5243, allocations: 455.6 kB / 1.068 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00031/0.5247, allocations: 172.8 kB / 1.068 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.5249, allocations: 0.669 MB / 1.068 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.114e-05/0.525, allocations: 4 kB / 1.068 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.095e-05/0.525, allocations: 7.438 kB / 1.068 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.525, allocations: 0 / 1.068 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of Templates: time 0.004552/0.5295, allocations: 0.5014 MB / 1.069 GB, free: 8.809 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.makefile (rm -f Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.sim & ./Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Experimental_DHC_Loads_BaseClasses_Validation_GetPeakLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.GetPeakLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches