Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.183/1.183, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009718/0.000972, allocations: 185.2 kB / 316 MB, free: 3.523 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.025/1.025, allocations: 205.2 MB / 0.5667 GB, free: 15.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008025/0.0008025, allocations: 93.41 kB / 0.671 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.781e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1332, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3861/0.5194, allocations: 132.6 MB / 1.014 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.5196, allocations: 72.77 kB / 1.014 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.007688/0.5273, allocations: 2.491 MB / 1.017 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.5273, allocations: 0 / 1.017 GB, free: 3.941 MB / 0.6355 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.0002779/0.5276, allocations: 350.3 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.5276, allocations: 8.031 kB / 1.017 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.5277, allocations: 4 kB / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.5278, allocations: 166.4 kB / 1.017 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.5278, allocations: 0 / 1.017 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.5278, allocations: 11.94 kB / 1.017 GB, free: 3.332 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.486e-05/0.5279, allocations: 4 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.342e-05/0.5279, allocations: 41.25 kB / 1.017 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.528, allocations: 0 / 1.017 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.528, allocations: 4 kB / 1.017 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.528, allocations: 0 / 1.017 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.5281, allocations: 137.3 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.5283, allocations: 29 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.5283, allocations: 16.45 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.5283, allocations: 0 / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.5284, allocations: 42.5 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.5284, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0004424/0.5288, allocations: 275.3 kB / 1.018 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.5289, allocations: 51.41 kB / 1.018 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.226e-05/0.5289, allocations: 89 kB / 1.018 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.5289, allocations: 29.64 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.529, allocations: 87.38 kB / 1.018 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.529, allocations: 19.66 kB / 1.018 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.529, allocations: 7.938 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.5291, allocations: 313.8 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.009e-05/0.5291, allocations: 11.75 kB / 1.018 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.522e-05/0.5291, allocations: 7.875 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.362e-05/0.5292, allocations: 15.67 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.81e-07/0.5292, allocations: 0 / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.382e-05/0.5293, allocations: 61.02 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.597e-06/0.5293, allocations: 4 kB / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.5293, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.5293, allocations: 8 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.969e-05/0.5294, allocations: 8 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-06/0.5294, allocations: 0 / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.5294, allocations: 3.188 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.5294, allocations: 7.938 kB / 1.018 GB, free: 1.98 MB / 0.6355 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 6.272e-05/0.5295, allocations: 112 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.5295, allocations: 384 / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.5296, allocations: 67 kB / 1.018 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5296, allocations: 3.984 kB / 1.018 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5296, allocations: 7.906 kB / 1.018 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.5296, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002468/0.5299, allocations: 278.2 kB / 1.019 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5299, allocations: 7.938 kB / 1.019 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.53, allocations: 11.98 kB / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.53, allocations: 0 / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.53, allocations: 4.188 kB / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.53, allocations: 7.906 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.53, allocations: 0 / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001552/0.5302, allocations: 190.5 kB / 1.019 GB, free: 1.254 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.5302, allocations: 85.09 kB / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.5302, allocations: 0 / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.567e-05/0.5303, allocations: 0 / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.5303, allocations: 7.906 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.5303, allocations: 4.047 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.941e-05/0.5304, allocations: 86.72 kB / 1.019 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002191/0.5306, allocations: 23.94 kB / 1.019 GB, free: 1.035 MB / 0.6355 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.0001598/0.5308, allocations: 127.1 kB / 1.019 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.809e-05/0.5308, allocations: 26.81 kB / 1.019 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5308, allocations: 4 kB / 1.019 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.949e-05/0.5309, allocations: 14.92 kB / 1.019 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.531, allocations: 4 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.5313, allocations: 140.7 kB / 1.019 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.5315, allocations: 0.6958 MB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of SimCode: time 1.012e-06/0.5315, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of Templates: time 0.002132/0.5337, allocations: 0.6636 MB / 1.021 GB, free: 15.37 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches