Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001662/0.001662, allocations: 191.6 kB / 16.14 MB, free: 6.711 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.595/1.595, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.018/3.018, allocations: 437 MB / 0.7099 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003193/0.003194, allocations: 67.89 kB / 0.8686 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9215/0.9247, allocations: 151.6 MB / 1.017 GB, free: 2.891 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.003266/0.928, allocations: 1.351 MB / 1.018 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001456/0.9295, allocations: 0.6229 MB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.9296, allocations: 0 / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.105e-05/0.9296, allocations: 0 / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.092e-05/0.9297, allocations: 7.984 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007314/0.9304, allocations: 119.5 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.114e-05/0.9305, allocations: 19.88 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.891e-05/0.9306, allocations: 7.984 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.18e-05/0.9306, allocations: 11.92 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.619e-05/0.9307, allocations: 11.94 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.9307, allocations: 0 / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00065/0.9314, allocations: 339.4 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.424e-05/0.9314, allocations: 7.969 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.9315, allocations: 11.88 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.9319, allocations: 137.7 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.9319, allocations: 3.938 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.804e-06/0.9319, allocations: 0 / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.9319, allocations: 0 / 1.019 GB, free: 248 kB / 0.7637 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.0006179/0.9325, allocations: 371.4 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.9326, allocations: 12.03 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.9326, allocations: 0.9375 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.9328, allocations: 172.2 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.9329, allocations: 4.375 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.483e-05/0.9329, allocations: 384 / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.933, allocations: 42.25 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.933, allocations: 192 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.933, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.9331, allocations: 4 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.899e-05/0.9331, allocations: 19.97 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002441/0.9334, allocations: 153.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.9336, allocations: 42.5 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.528e-05/0.9337, allocations: 16.86 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.9337, allocations: 0 / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.9337, allocations: 38.56 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.143e-06/0.9337, allocations: 4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0008285/0.9346, allocations: 310.3 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.9346, allocations: 51.41 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.841e-05/0.9347, allocations: 97.86 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.9348, allocations: 25.7 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.9348, allocations: 84.12 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.026e-05/0.9349, allocations: 27.66 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.9349, allocations: 21.66 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002355/0.9352, allocations: 322.8 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.927e-05/0.9352, allocations: 4 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.971e-05/0.9352, allocations: 12 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.274e-05/0.9353, allocations: 40.78 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.9353, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001273/0.9354, allocations: 69.81 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.9355, allocations: 7.938 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.9355, allocations: 4 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.9355, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.858e-05/0.9356, allocations: 15.94 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.9356, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.9356, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.9356, allocations: 4 kB / 1.021 GB, free: 14.03 MB / 0.7794 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 0.0001432/0.9358, allocations: 109.8 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.9358, allocations: 7.844 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.936, allocations: 77.64 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.936, allocations: 3.938 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.936, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.936, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.9364, allocations: 315.4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.9364, allocations: 3.984 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.911e-05/0.9365, allocations: 15.94 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.9365, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.9365, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.9365, allocations: 8.031 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.9365, allocations: 192 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.9368, allocations: 180.3 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.9369, allocations: 85.56 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.9369, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.638e-05/0.937, allocations: 7.984 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.172e-05/0.937, allocations: 8.062 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.937, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.524e-05/0.9371, allocations: 79.27 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9371, allocations: 3.938 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002717/0.9373, allocations: 24 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * 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 (6): * Single equations (assignments): 6 * 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.0002431/0.9376, allocations: 123.7 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001262/0.9377, allocations: 35.98 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9377, allocations: 3.938 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.575e-05/0.9378, allocations: 19.94 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.938, allocations: 9.969 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005199/0.9386, allocations: 194.1 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.939, allocations: 0.6848 MB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.337e-05/0.939, allocations: 4 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.939, allocations: 11.44 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.939, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of Templates: time 0.003724/0.9428, allocations: 0.6268 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches