Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.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.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dpRemSet.y|dpRem.y|resDpLoc.dpLocSet|resDpLoc.dpLocSet_min|resDpLoc.dpLocSet_max",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure") translateModel(Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dpRemSet.y|dpRem.y|resDpLoc.dpLocSet|resDpLoc.dpLocSet_min|resDpLoc.dpLocSet_max",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 91.84 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.01053/0.01053, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.559/1.559, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.001/3.001, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 9.125 kB / 0.9028 GB, free: 36.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3368, allocations: 159.6 MB / 1.059 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure): time 0.00329/0.3401, allocations: 2.331 MB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002525/0.3427, allocations: 1.403 MB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.343, allocations: 4 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004615/0.3435, allocations: 111.4 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002945/0.3438, allocations: 107.5 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.3443, allocations: 231.2 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004516/0.3448, allocations: 471.8 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003611/0.3452, allocations: 205.1 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.3454, allocations: 143.1 kB / 1.064 GB, free: 468 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.3456, allocations: 163 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.3456, allocations: 8 kB / 1.064 GB, free: 296 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.3458, allocations: 63.97 kB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.725e-05/0.3459, allocations: 71.67 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.3461, allocations: 188.5 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.3466, allocations: 0.6151 MB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3466, allocations: 0 / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3466, allocations: 0 / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.3466, allocations: 0 / 1.065 GB, free: 15.35 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001114/0.3478, allocations: 0.6983 MB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3478, allocations: 8.031 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.21e-05/0.3479, allocations: 56.27 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/0.3484, allocations: 394.9 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.3485, allocations: 24.88 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.3485, allocations: 31.94 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.3492, allocations: 331.6 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3492, allocations: 4 kB / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.3492, allocations: 8 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3493, allocations: 8 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.3498, allocations: 250.1 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3514, allocations: 1.134 MB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.3521, allocations: 374 kB / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.3524, allocations: 136.8 kB / 1.068 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.3525, allocations: 7.938 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003219/0.3528, allocations: 157.3 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 2.004e-06/0.3528, allocations: 0 / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22): time 0.0007672/0.3536, allocations: 342.5 kB / 1.068 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.3537, allocations: 89.05 kB / 1.069 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.3542, allocations: 461.5 kB / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.3542, allocations: 37.7 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3544, allocations: 232.1 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.3544, allocations: 71 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.158e-05/0.3545, allocations: 37.7 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3546, allocations: 346.8 kB / 1.07 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.3549, allocations: 120.6 kB / 1.07 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.3552, allocations: 193.2 kB / 1.07 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.3557, allocations: 283.5 kB / 1.07 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3557, allocations: 7.938 kB / 1.07 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007085/0.3564, allocations: 391.1 kB / 1.071 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.818e-05/0.3565, allocations: 130.1 kB / 1.071 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3565, allocations: 4 kB / 1.071 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3565, allocations: 4 kB / 1.071 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.3568, allocations: 75.89 kB / 1.071 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.3569, allocations: 7.938 kB / 1.071 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.3571, allocations: 47.67 kB / 1.071 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.3571, allocations: 15.98 kB / 1.071 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/0.3571, allocations: 4 kB / 1.071 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005163/0.3577, allocations: 295.9 kB / 1.071 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.3577, allocations: 0 / 1.071 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.629e-06/0.3577, allocations: 8.188 kB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.3579, allocations: 67.91 kB / 1.071 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.358, allocations: 7.938 kB / 1.071 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.3581, allocations: 31.77 kB / 1.071 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.3582, allocations: 12 kB / 1.071 GB, free: 8.176 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.ratDp.tab.nextTimeEvent,$whenCondition1,resDpLoc.ctlDpRem.con1.y,ratDp.tab.nextTimeEventScaled,$PRE.ratDp.tab.nextTimeEventScaled,ratDp.tab.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.000212/0.3584, allocations: 253 kB / 1.072 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-05/0.3584, allocations: 43.53 kB / 1.072 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006112/0.3591, allocations: 283.8 kB / 1.072 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3591, allocations: 0 / 1.072 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3591, allocations: 7.938 kB / 1.072 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3591, allocations: 3.984 kB / 1.072 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.3602, allocations: 0.7869 MB / 1.073 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3602, allocations: 0 / 1.073 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.3604, allocations: 43.86 kB / 1.073 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3604, allocations: 0 / 1.073 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.3604, allocations: 11.98 kB / 1.073 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3604, allocations: 0 / 1.073 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3604, allocations: 0 / 1.073 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007959/0.3612, allocations: 485.4 kB / 1.073 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.447e-05/0.3613, allocations: 128.7 kB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.3614, allocations: 8 kB / 1.073 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.3616, allocations: 15.98 kB / 1.073 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.3616, allocations: 15.97 kB / 1.073 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3617, allocations: 12 kB / 1.073 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003139/0.362, allocations: 307.1 kB / 1.074 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.362, allocations: 0 / 1.074 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004981/0.3625, allocations: 135.5 kB / 1.074 GB, free: 5.562 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (resDpLoc.ctlDpRem.I.y) * Number of discrete variables: 3 ($whenCondition1,ratDp.tab.nextTimeEvent,ratDp.tab.nextTimeEventScaled) * Number of discrete states: 2 (ratDp.tab.nextTimeEvent,ratDp.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001026/0.3635, allocations: 423.1 kB / 1.074 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008639/0.3644, allocations: 415.5 kB / 1.075 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3644, allocations: 0 / 1.075 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002373/0.3647, allocations: 112.6 kB / 1.075 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006012/0.3653, allocations: 83.89 kB / 1.075 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.3665, allocations: 0.833 MB / 1.076 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3669, allocations: 0.8114 MB / 1.076 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.3671, allocations: 67.22 kB / 1.076 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.138e-05/0.3672, allocations: 35.38 kB / 1.076 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.3672, allocations: 4 kB / 1.076 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of Templates: time 0.008723/0.376, allocations: 4.208 MB / 1.081 GB, free: 14.78 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Pumps_Generic_Validation_ResetLocalDifferentialPressure.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Pumps.Generic.Validation.ResetLocalDifferentialPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches