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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 387.4 MB / 394.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 176.8 kB / 487.4 MB, free: 5.047 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009046/0.0009045, allocations: 91.8 kB / 0.9219 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.006e-05/2.01e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2685, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8635/1.132, allocations: 149.5 MB / 1.352 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/1.132, allocations: 84.52 kB / 1.352 GB, free: 18.47 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0123/1.145, allocations: 4.533 MB / 1.356 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.313e-06/1.145, allocations: 0 / 1.356 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.46e-06/1.145, allocations: 0 / 1.356 GB, free: 33.91 MB / 0.8386 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.0002685/1.145, allocations: 351.7 kB / 1.357 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/1.145, allocations: 7.812 kB / 1.357 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.409e-05/1.145, allocations: 8.938 kB / 1.357 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.018e-05/1.145, allocations: 168.2 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/1.145, allocations: 0 / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/1.145, allocations: 3.844 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.2e-05/1.145, allocations: 20.64 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.46e-05/1.145, allocations: 48.5 kB / 1.357 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/1.145, allocations: 11.81 kB / 1.357 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/1.145, allocations: 0 / 1.357 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/1.145, allocations: 0 / 1.357 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/1.146, allocations: 141.5 kB / 1.357 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.74e-05/1.146, allocations: 55.8 kB / 1.357 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.296e-05/1.146, allocations: 24.88 kB / 1.357 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/1.146, allocations: 0 / 1.357 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/1.146, allocations: 39.09 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/1.146, allocations: 3.984 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0007178/1.146, allocations: 0.509 MB / 1.358 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.632e-05/1.147, allocations: 55.25 kB / 1.358 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.695e-05/1.147, allocations: 85.66 kB / 1.358 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/1.147, allocations: 30.62 kB / 1.358 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/1.147, allocations: 83.95 kB / 1.358 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/1.147, allocations: 45.19 kB / 1.358 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/1.147, allocations: 0 / 1.358 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.147, allocations: 319.5 kB / 1.358 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.757e-05/1.147, allocations: 18.69 kB / 1.358 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.492e-05/1.147, allocations: 16.41 kB / 1.358 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.995e-05/1.147, allocations: 30.83 kB / 1.358 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/1.147, allocations: 0 / 1.358 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001032/1.147, allocations: 84.06 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/1.147, allocations: 4.469 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.147, allocations: 0 / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/1.147, allocations: 3.875 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.632e-05/1.147, allocations: 21.02 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/1.147, allocations: 4.484 kB / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.276e-05/1.147, allocations: 0 / 1.359 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/1.147, allocations: 0.5156 kB / 1.359 GB, free: 31.95 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/1.147, allocations: 112.7 kB / 1.359 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.237e-05/1.147, allocations: 8.75 kB / 1.359 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/1.147, allocations: 100.6 kB / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/1.147, allocations: 3.781 kB / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/1.147, allocations: 0 / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/1.147, allocations: 0 / 1.359 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/1.148, allocations: 319 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.148, allocations: 0 / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.817e-05/1.148, allocations: 18.19 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/1.148, allocations: 7.812 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/1.148, allocations: 4 kB / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.148, allocations: 0 / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.148, allocations: 0 / 1.359 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/1.148, allocations: 218.2 kB / 1.359 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.735e-05/1.148, allocations: 77.11 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/1.148, allocations: 0 / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.576e-05/1.148, allocations: 3.875 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.436e-05/1.148, allocations: 3.203 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/1.148, allocations: 7.812 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.055e-05/1.148, allocations: 79.16 kB / 1.359 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.022e-06/1.148, allocations: 0 / 1.359 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002491/1.149, allocations: 45.73 kB / 1.36 GB, free: 31.18 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001889/1.149, allocations: 141 kB / 1.36 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001073/1.149, allocations: 55.45 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/1.149, allocations: 0 / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.531e-05/1.149, allocations: 40.89 kB / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/1.149, allocations: 4.969 kB / 1.36 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003593/1.149, allocations: 221.5 kB / 1.36 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/1.15, allocations: 0.6905 MB / 1.361 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.577e-05/1.15, allocations: 18.62 kB / 1.361 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.122e-05/1.15, allocations: 18.97 kB / 1.361 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.15, allocations: 0 / 1.361 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of Templates: time 0.002489/1.152, allocations: 0.8396 MB / 1.361 GB, free: 30.09 MB / 0.8386 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 -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","../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