Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 109.5 kB / 16.42 MB, free: 6.504 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.001749/0.001749, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.514/1.514, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.545/2.545, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 64.11 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7967/0.798, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002297/0.8003, allocations: 1.276 MB / 1.21 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009958/0.8014, allocations: 0.6188 MB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.683e-05/0.8014, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.84e-05/0.8014, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.019e-05/0.8015, allocations: 11.91 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000595/0.8021, allocations: 146.1 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.494e-05/0.8022, allocations: 19.94 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.005e-05/0.8022, allocations: 3.984 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.783e-05/0.8022, allocations: 11.92 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.569e-05/0.8023, allocations: 8 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.8023, allocations: 0 / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.8028, allocations: 347.3 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.8029, allocations: 7.922 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.276e-05/0.8029, allocations: 4 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.8032, allocations: 151.5 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.8032, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8032, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.8032, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003991/0.8036, allocations: 361.3 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.8036, allocations: 8.031 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.8037, allocations: 8.844 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.8038, allocations: 168.3 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-06/0.8038, allocations: 384 / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.8038, allocations: 384 / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.8039, allocations: 50.19 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.804, allocations: 192 / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.804, allocations: 3.938 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.804, allocations: 0 / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.804, allocations: 11.98 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.8042, allocations: 161.7 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.8044, allocations: 42.56 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.275e-05/0.8044, allocations: 20.8 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.8044, allocations: 4 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.8045, allocations: 34.56 kB / 1.212 GB, free: 10 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 2.284e-06/0.8045, allocations: 3.984 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0005967/0.8051, allocations: 306.2 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.8051, allocations: 51.41 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.442e-05/0.8052, allocations: 101.9 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.8052, allocations: 29.7 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.076e-05/0.8053, allocations: 80.14 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.8053, allocations: 23.64 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.8053, allocations: 21.72 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.8055, allocations: 314.8 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.935e-05/0.8055, allocations: 12 kB / 1.213 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.747e-05/0.8055, allocations: 8 kB / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.169e-05/0.8056, allocations: 40.94 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.8056, allocations: 0 / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001114/0.8057, allocations: 73.58 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.8057, allocations: 11.92 kB / 1.213 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.8057, allocations: 4.062 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.8058, allocations: 4 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.288e-05/0.8058, allocations: 8 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.8058, allocations: 0 / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.128e-05/0.8059, allocations: 0 / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.8059, allocations: 7.938 kB / 1.213 GB, free: 8.812 MB / 0.9356 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 (7): * Single equations (assignments): 7 * 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 7.909e-05/0.806, allocations: 117.8 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.806, allocations: 7.938 kB / 1.213 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.8061, allocations: 69.64 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.8061, allocations: 0 / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.8061, allocations: 0 / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.8062, allocations: 85.09 kB / 1.213 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.8062, allocations: 4 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.358e-05/0.8063, allocations: 0 / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.918e-05/0.8063, allocations: 4 kB / 1.213 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001622/0.8065, allocations: 152.8 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002074/0.8067, allocations: 246.8 kB / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.121e-05/0.8067, allocations: 12.03 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.189e-05/0.8068, allocations: 87.27 kB / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of Backend: time 3.81e-07/0.8068, allocations: 0 / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005064/0.8073, allocations: 166.2 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005598/0.8079, allocations: 0.6318 MB / 1.214 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of Templates: time 0.003503/0.8114, allocations: 1.266 MB / 1.216 GB, free: 5.898 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches