Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.92/1.92, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001003/0.001003, allocations: 189.2 kB / 487 MB, free: 5.352 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.244/1.244, allocations: 221.3 MB / 0.7819 GB, free: 1.43 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.0009084/0.0009085, allocations: 99.23 kB / 0.9213 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.434e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2481, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6432/0.8913, allocations: 149.2 MB / 1.351 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.8916, allocations: 81.39 kB / 1.351 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.008078/0.8997, allocations: 2.528 MB / 1.353 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.8997, allocations: 1.25 kB / 1.353 GB, free: 15.75 MB / 0.8073 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.0002574/0.9, allocations: 345.9 kB / 1.354 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.9, allocations: 10.25 kB / 1.354 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.9001, allocations: 5.031 kB / 1.354 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.782e-05/0.9002, allocations: 162 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.9002, allocations: 0.7812 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.9002, allocations: 2.156 kB / 1.354 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.633e-05/0.9003, allocations: 17.61 kB / 1.354 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.526e-05/0.9004, allocations: 34.94 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.9004, allocations: 3.984 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.9004, allocations: 4.781 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.9004, allocations: 0.9688 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001204/0.9005, allocations: 137.2 kB / 1.354 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.9007, allocations: 28.81 kB / 1.354 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.444e-05/0.9007, allocations: 20.98 kB / 1.354 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.9007, allocations: 0.5625 kB / 1.354 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.9008, allocations: 33.14 kB / 1.354 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.9008, allocations: 3.938 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0004539/0.9012, allocations: 284.9 kB / 1.354 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.76e-05/0.9013, allocations: 52.47 kB / 1.355 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.189e-05/0.9013, allocations: 89.42 kB / 1.355 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.874e-06/0.9013, allocations: 30.55 kB / 1.355 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.457e-05/0.9013, allocations: 84.27 kB / 1.355 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.9014, allocations: 16.58 kB / 1.355 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.9014, allocations: 0 / 1.355 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.589e-05/0.9014, allocations: 316.6 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.9015, allocations: 12.97 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.762e-05/0.9015, allocations: 10.17 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.725e-05/0.9015, allocations: 8.219 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.9015, allocations: 1.094 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.674e-05/0.9016, allocations: 65.61 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.9016, allocations: 4.344 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.9016, allocations: 5.062 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.9017, allocations: 0.9375 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.537e-05/0.9017, allocations: 11.14 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.9017, allocations: 5.281 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.91e-05/0.9018, allocations: 0.7969 kB / 1.355 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.9018, allocations: 1.188 kB / 1.355 GB, free: 14.01 MB / 0.8073 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 4.28e-05/0.9018, allocations: 109.6 kB / 1.355 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.9018, allocations: 10.78 kB / 1.355 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.902, allocations: 63.14 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.902, allocations: 0.8438 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.902, allocations: 0 / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.902, allocations: 1.781 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.9022, allocations: 288.1 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9022, allocations: 0.9062 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.446e-05/0.9023, allocations: 11.17 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.9023, allocations: 5.031 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.9023, allocations: 4.859 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.9023, allocations: 0.9688 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.9023, allocations: 1 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001398/0.9025, allocations: 183 kB / 1.356 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.9025, allocations: 93.7 kB / 1.356 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.9025, allocations: 6.438 kB / 1.356 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.255e-05/0.9026, allocations: 5.5 kB / 1.356 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.469e-05/0.9026, allocations: 3.328 kB / 1.356 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.9027, allocations: 3.109 kB / 1.356 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.811e-05/0.9027, allocations: 81.58 kB / 1.356 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002474/0.9029, allocations: 25.39 kB / 1.356 GB, free: 13.23 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.000176/0.9031, allocations: 126.3 kB / 1.356 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.669e-05/0.9032, allocations: 35.19 kB / 1.356 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.9032, allocations: 1.094 kB / 1.356 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.348e-05/0.9033, allocations: 11.16 kB / 1.356 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.9034, allocations: 6.219 kB / 1.356 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002807/0.9037, allocations: 133.6 kB / 1.356 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.9039, allocations: 0.7017 MB / 1.357 GB, free: 28.3 MB / 0.823 GB Notification: Performance of SimCode: time 3.1e-07/0.9039, allocations: 0 / 1.357 GB, free: 28.3 MB / 0.823 GB Notification: Performance of Templates: time 0.002575/0.9065, allocations: 0.6676 MB / 1.358 GB, free: 28.24 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches