Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005242/0.005242, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.001186/0.001186, allocations: 190.2 kB / 16.67 MB, free: 5.91 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.705/2.705, allocations: 469.8 MB / 0.7425 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.89 kB / 1.065 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8083/0.8097, allocations: 159.1 MB / 1.221 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002356/0.812, allocations: 1.479 MB / 1.222 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009728/0.813, allocations: 0.6344 MB / 1.223 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.905e-05/0.813, allocations: 3.938 kB / 1.223 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.958e-05/0.8131, allocations: 3.938 kB / 1.223 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.363e-05/0.8131, allocations: 11.92 kB / 1.223 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.8136, allocations: 160.6 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.43e-05/0.8137, allocations: 47.91 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.8137, allocations: 4 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.577e-05/0.8138, allocations: 27.83 kB / 1.223 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.234e-05/0.8138, allocations: 23.86 kB / 1.223 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.8139, allocations: 7.938 kB / 1.223 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004537/0.8143, allocations: 343.4 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.8143, allocations: 15.98 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.8144, allocations: 19.88 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.8146, allocations: 180.4 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.8146, allocations: 0 / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.173e-06/0.8146, allocations: 0 / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5e-06/0.8146, allocations: 4 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005433/0.8152, allocations: 402.9 kB / 1.224 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.8152, allocations: 12.03 kB / 1.224 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.8152, allocations: 4.938 kB / 1.224 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.8153, allocations: 180.2 kB / 1.224 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.8154, allocations: 4.375 kB / 1.224 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.8154, allocations: 12.31 kB / 1.224 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.8156, allocations: 82.22 kB / 1.224 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.8156, allocations: 192 / 1.224 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.8156, allocations: 3.938 kB / 1.224 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.8156, allocations: 4 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.8159, allocations: 51.89 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/0.8164, allocations: 316.8 kB / 1.225 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.8166, allocations: 86.41 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.8168, allocations: 28.83 kB / 1.225 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.8168, allocations: 7.984 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.8168, allocations: 34.56 kB / 1.225 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.274e-06/0.8168, allocations: 4 kB / 1.225 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001596/0.8184, allocations: 0.6347 MB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.8184, allocations: 59.41 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.355e-05/0.8185, allocations: 109.7 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.8185, allocations: 25.7 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.8186, allocations: 96.03 kB / 1.226 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.769e-05/0.8186, allocations: 39.64 kB / 1.226 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.8187, allocations: 25.72 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.8188, allocations: 318.8 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.8189, allocations: 35.97 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.819, allocations: 32.98 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.8192, allocations: 76.27 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.8192, allocations: 0 / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003065/0.8196, allocations: 117.7 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.8196, allocations: 4 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.8196, allocations: 0 / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.8196, allocations: 8 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.8198, allocations: 27.98 kB / 1.226 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.8198, allocations: 7.922 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.098e-05/0.8198, allocations: 7.938 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.8198, allocations: 4 kB / 1.226 GB, free: 12.2 MB / 0.9512 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 (13): * Single equations (assignments): 13 * 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 8.16e-05/0.8199, allocations: 110.4 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/0.8199, allocations: 4 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.8203, allocations: 137.6 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.8203, allocations: 0 / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.8203, allocations: 4 kB / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.8203, allocations: 7.875 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.8209, allocations: 386.5 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.8209, allocations: 96 / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.821, allocations: 27.92 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.821, allocations: 4 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.821, allocations: 7.938 kB / 1.227 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.821, allocations: 7.875 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.821, allocations: 0 / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004665/0.8215, allocations: 243.4 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.8215, allocations: 77.11 kB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.8216, allocations: 20.02 kB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.8217, allocations: 4 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.8217, allocations: 7.984 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.8217, allocations: 0 / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.886e-05/0.8217, allocations: 83.47 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.8217, allocations: 0 / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002761/0.822, allocations: 43.86 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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 (11): * Single equations (assignments): 11 * 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.0002334/0.8222, allocations: 143 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002965/0.8225, allocations: 83.94 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8225, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.8227, allocations: 35.92 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.8229, allocations: 15.97 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006611/0.8236, allocations: 318.1 kB / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.8239, allocations: 0.6929 MB / 1.229 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.129e-05/0.8239, allocations: 12.67 kB / 1.229 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.824, allocations: 15.44 kB / 1.229 GB, free: 9.566 MB / 0.9512 GB Notification: Performance of SimCode: time 3.1e-07/0.824, allocations: 0 / 1.229 GB, free: 9.566 MB / 0.9512 GB Notification: Performance of Templates: time 0.003479/0.8274, allocations: 1.156 MB / 1.23 GB, free: 8.453 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches