Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_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_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.479/2.479, allocations: 387.1 MB / 399.7 MB, free: 9.562 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.001471/0.001471, allocations: 180.8 kB / 492.3 MB, free: 0.6445 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.364/1.364, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008539/0.0008539, allocations: 92.77 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.825e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2557, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8498/1.106, allocations: 150 MB / 1.359 GB, free: 19.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/1.106, allocations: 82.28 kB / 1.359 GB, free: 19.16 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.011/1.117, allocations: 4.048 MB / 1.363 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.433e-06/1.117, allocations: 0 / 1.363 GB, free: 34.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.402e-06/1.117, allocations: 0 / 1.363 GB, free: 34.62 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000234/1.117, allocations: 339.4 kB / 1.363 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/1.117, allocations: 11.72 kB / 1.363 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/1.117, allocations: 0.625 kB / 1.363 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.977e-05/1.117, allocations: 184.5 kB / 1.363 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/1.117, allocations: 3.438 kB / 1.363 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/1.117, allocations: 7.844 kB / 1.363 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.963e-05/1.117, allocations: 40.22 kB / 1.363 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/1.117, allocations: 0 / 1.363 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/1.117, allocations: 0 / 1.363 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/1.117, allocations: 0 / 1.363 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.677e-05/1.117, allocations: 16.17 kB / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/1.118, allocations: 168.1 kB / 1.364 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/1.118, allocations: 43.58 kB / 1.364 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.894e-05/1.118, allocations: 15.89 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/1.118, allocations: 1.453 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/1.118, allocations: 37.88 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 1.893e-06/1.118, allocations: 0 / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0005061/1.118, allocations: 303.1 kB / 1.364 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.805e-05/1.118, allocations: 51.41 kB / 1.364 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.592e-05/1.118, allocations: 90.31 kB / 1.364 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/1.118, allocations: 28.58 kB / 1.364 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.619e-05/1.118, allocations: 80.14 kB / 1.364 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/1.119, allocations: 24.88 kB / 1.364 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/1.119, allocations: 0 / 1.364 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.5e-05/1.119, allocations: 319.2 kB / 1.365 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.206e-05/1.119, allocations: 14.97 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.748e-05/1.119, allocations: 7.688 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.831e-05/1.119, allocations: 12.61 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/1.119, allocations: 0 / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.936e-05/1.119, allocations: 65.66 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/1.119, allocations: 5.219 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/1.119, allocations: 3.938 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/1.119, allocations: 4.219 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.719e-05/1.119, allocations: 9.703 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/1.119, allocations: 0 / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/1.119, allocations: 4 kB / 1.365 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-06/1.119, allocations: 3.969 kB / 1.365 GB, free: 32.83 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 (7): * Single equations (assignments): 7 * 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 3.877e-05/1.119, allocations: 108.6 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/1.119, allocations: 5.344 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/1.119, allocations: 85.22 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/1.119, allocations: 0 / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/1.119, allocations: 3.875 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/1.119, allocations: 0 / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/1.119, allocations: 316.8 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.119, allocations: 0 / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/1.119, allocations: 15.53 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/1.119, allocations: 1.969 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/1.119, allocations: 3.719 kB / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.119, allocations: 0 / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.119, allocations: 0 / 1.365 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/1.12, allocations: 189.7 kB / 1.365 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.786e-05/1.12, allocations: 86.67 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/1.12, allocations: 1.5 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.228e-05/1.12, allocations: 6.969 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.607e-05/1.12, allocations: 9.156 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/1.12, allocations: 3.875 kB / 1.366 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.686e-05/1.12, allocations: 80.75 kB / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.12, allocations: 64 / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002389/1.12, allocations: 28.41 kB / 1.366 GB, free: 32 MB / 0.8386 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 () * 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 (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.0001611/1.12, allocations: 128.1 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.811e-05/1.12, allocations: 35.25 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.12, allocations: 0 / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.271e-05/1.12, allocations: 14.56 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/1.121, allocations: 10.78 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002572/1.121, allocations: 146.9 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/1.121, allocations: 0.6889 MB / 1.367 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.151e-05/1.121, allocations: 2.328 kB / 1.367 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.619e-05/1.121, allocations: 11.25 kB / 1.367 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.121, allocations: 0 / 1.367 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.002282/1.123, allocations: 0.5907 MB / 1.367 GB, free: 31.01 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches