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") [: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.927/1.927, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001022/0.001022, allocations: 184.6 kB / 487 MB, free: 5.383 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.276/1.276, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.001073/0.001073, allocations: 94.02 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.725e-06/7.755e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2544, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.671/0.9254, allocations: 149.4 MB / 1.351 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.9257, allocations: 78.23 kB / 1.351 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01255/0.9383, allocations: 4.187 MB / 1.355 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.9383, allocations: 0.8125 kB / 1.355 GB, free: 15.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002702/0.9386, allocations: 349.2 kB / 1.356 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.9386, allocations: 10.22 kB / 1.356 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.525e-05/0.9387, allocations: 10.19 kB / 1.356 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.033e-05/0.9388, allocations: 165.5 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.9388, allocations: 2.172 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.9388, allocations: 2.031 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.362e-05/0.9389, allocations: 24.42 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.413e-05/0.939, allocations: 42.31 kB / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.939, allocations: 4.875 kB / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.939, allocations: 0 / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.939, allocations: 0.75 kB / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.9391, allocations: 147.6 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.031e-05/0.9392, allocations: 36.59 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.756e-05/0.9393, allocations: 25.36 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.9393, allocations: 2.875 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.9393, allocations: 32.31 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.9393, allocations: 0 / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0007003/0.94, allocations: 0.5197 MB / 1.357 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.622e-05/0.94, allocations: 52.41 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.804e-05/0.9401, allocations: 89.41 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.9401, allocations: 25.7 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.427e-05/0.9401, allocations: 81.17 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.9402, allocations: 45.92 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.9402, allocations: 4.125 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.9402, allocations: 316.9 kB / 1.357 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.275e-05/0.9403, allocations: 16.8 kB / 1.357 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.159e-05/0.9403, allocations: 19.06 kB / 1.357 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.466e-05/0.9403, allocations: 21.91 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-07/0.9403, allocations: 0 / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001275/0.9405, allocations: 88.56 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.9405, allocations: 4.812 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.9405, allocations: 0 / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.9405, allocations: 0.8438 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.9406, allocations: 29.17 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.9406, allocations: 0.875 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.437e-05/0.9407, allocations: 1.594 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.9407, allocations: 6.969 kB / 1.357 GB, free: 13.55 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 (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 4.383e-05/0.9407, allocations: 102 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.9408, allocations: 10.67 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.9409, allocations: 102.2 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.941, allocations: 1.781 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.941, allocations: 8 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.941, allocations: 2.359 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.9413, allocations: 316.6 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.9413, allocations: 0 / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.9414, allocations: 24.8 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.9414, allocations: 0.8125 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.9414, allocations: 0.7812 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9414, allocations: 0.625 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.9414, allocations: 5.859 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001993/0.9416, allocations: 208.3 kB / 1.358 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.9417, allocations: 80.2 kB / 1.358 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.9417, allocations: 0.9375 kB / 1.358 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.9418, allocations: 3.562 kB / 1.358 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.709e-05/0.9418, allocations: 8.484 kB / 1.358 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.9418, allocations: 3.219 kB / 1.358 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.686e-05/0.9418, allocations: 84.34 kB / 1.358 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002841/0.9421, allocations: 39.94 kB / 1.358 GB, free: 12.78 MB / 0.8073 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.0002114/0.9424, allocations: 144.4 kB / 1.358 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001254/0.9425, allocations: 52.86 kB / 1.359 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.9425, allocations: 0.9062 kB / 1.359 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.597e-05/0.9425, allocations: 33.75 kB / 1.359 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.9427, allocations: 1.531 kB / 1.359 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004046/0.9431, allocations: 207.5 kB / 1.359 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.9432, allocations: 0.7108 MB / 1.359 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/0.9432, allocations: 0 / 1.359 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of Templates: time 0.003347/0.9466, allocations: 1.056 MB / 1.36 GB, free: 11.72 MB / 0.8073 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