Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.001205/0.001205, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.318/2.318, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 61.72 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.313, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002739/0.3157, allocations: 1.287 MB / 0.9524 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3168, allocations: 0.6169 MB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.603e-05/0.3169, allocations: 4 kB / 0.953 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.3169, allocations: 3.938 kB / 0.953 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.471e-05/0.3169, allocations: 3.984 kB / 0.953 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000622/0.3176, allocations: 147.4 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.31e-05/0.3177, allocations: 31.84 kB / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.3177, allocations: 7.984 kB / 0.9532 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.486e-05/0.3177, allocations: 7.938 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.487e-05/0.3178, allocations: 19.92 kB / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.3178, allocations: 0 / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005841/0.3184, allocations: 351.3 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.378e-05/0.3184, allocations: 4 kB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.668e-05/0.3185, allocations: 7.938 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.3187, allocations: 151.7 kB / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3187, allocations: 0 / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3187, allocations: 0 / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.3187, allocations: 0 / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004853/0.3192, allocations: 371.3 kB / 0.954 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3193, allocations: 12.03 kB / 0.954 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.3193, allocations: 8.875 kB / 0.9541 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.3194, allocations: 164.4 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3195, allocations: 8.375 kB / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.3195, allocations: 8.281 kB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.3196, allocations: 42.25 kB / 0.9543 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3196, allocations: 8.188 kB / 0.9543 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.3196, allocations: 7.922 kB / 0.9543 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3197, allocations: 3.938 kB / 0.9543 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.13e-05/0.3197, allocations: 19.98 kB / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.3199, allocations: 173.6 kB / 0.9545 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.32, allocations: 62.48 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.402e-05/0.3201, allocations: 28.84 kB / 0.9546 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.3201, allocations: 7.938 kB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.3201, allocations: 30.56 kB / 0.9546 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.3201, allocations: 0 / 0.9546 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001363/0.3215, allocations: 0.5841 MB / 0.9552 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.3215, allocations: 51.41 kB / 0.9552 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.3217, allocations: 97.84 kB / 0.9553 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3217, allocations: 33.64 kB / 0.9553 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.217e-05/0.3218, allocations: 88.2 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.309e-05/0.3218, allocations: 39.39 kB / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.3219, allocations: 29.72 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.322, allocations: 318.8 kB / 0.9558 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.991e-05/0.322, allocations: 16 kB / 0.9558 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.857e-05/0.3221, allocations: 23.98 kB / 0.9558 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.03e-05/0.3222, allocations: 56.72 kB / 0.9559 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3222, allocations: 0 / 0.9559 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001768/0.3224, allocations: 109.5 kB / 0.956 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3224, allocations: 4 kB / 0.956 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3224, allocations: 0 / 0.956 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3224, allocations: 0 / 0.956 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.3225, allocations: 27.92 kB / 0.956 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3225, allocations: 0 / 0.956 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.604e-05/0.3226, allocations: 4 kB / 0.956 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.3226, allocations: 4 kB / 0.956 GB, free: 2.727 MB / 0.7325 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 9.4e-05/0.3227, allocations: 115.8 kB / 0.9561 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.3227, allocations: 11.84 kB / 0.9562 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.323, allocations: 117.6 kB / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.323, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.323, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.323, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005047/0.3235, allocations: 354.5 kB / 0.9566 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3235, allocations: 0 / 0.9566 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3237, allocations: 23.92 kB / 0.9566 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3237, allocations: 4 kB / 0.9566 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3237, allocations: 0 / 0.9566 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3237, allocations: 4 kB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3237, allocations: 0 / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002437/0.3239, allocations: 219.3 kB / 0.9568 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.324, allocations: 81.09 kB / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.324, allocations: 0 / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.3241, allocations: 8.031 kB / 0.9569 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.3241, allocations: 11.92 kB / 0.9569 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.3241, allocations: 7.984 kB / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.987e-05/0.3242, allocations: 83.34 kB / 0.957 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3242, allocations: 0 / 0.957 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002651/0.3245, allocations: 32 kB / 0.9571 GB, free: 1.566 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0002206/0.3247, allocations: 139.2 kB / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003252/0.325, allocations: 63.8 kB / 0.9572 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.325, allocations: 4 kB / 0.9573 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.955e-05/0.3251, allocations: 31.98 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.3253, allocations: 12.09 kB / 0.9573 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005607/0.3259, allocations: 272.9 kB / 0.9576 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.3263, allocations: 0.6883 MB / 0.9582 GB, free: 312 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.823e-05/0.3263, allocations: 15.97 kB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.3264, allocations: 15.44 kB / 0.9583 GB, free: 280 kB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.3264, allocations: 0 / 0.9583 GB, free: 280 kB / 0.7325 GB Notification: Performance of Templates: time 0.003581/0.33, allocations: 0.9526 MB / 0.9592 GB, free: 15.36 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time