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") [: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.905/1.905, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001141/0.001141, allocations: 185.2 kB / 487 MB, free: 5.375 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.333/1.333, allocations: 221.3 MB / 0.7819 GB, free: 1.355 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.001096/0.001096, allocations: 99.34 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.074e-06/7.104e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2284, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6883/0.9168, allocations: 149.3 MB / 1.351 GB, free: 16.22 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.917, allocations: 73.36 kB / 1.351 GB, free: 16.22 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01139/0.9284, allocations: 3.685 MB / 1.355 GB, free: 16 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.004e-06/0.9284, allocations: 0 / 1.355 GB, free: 16 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.0002575/0.9287, allocations: 346.2 kB / 1.355 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.9288, allocations: 8.625 kB / 1.355 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.9288, allocations: 14.16 kB / 1.355 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.021e-05/0.9289, allocations: 161.7 kB / 1.355 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.9289, allocations: 0.875 kB / 1.355 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.929, allocations: 1.594 kB / 1.355 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.323e-05/0.929, allocations: 12.27 kB / 1.355 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.785e-05/0.9291, allocations: 33.36 kB / 1.355 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.9291, allocations: 0 / 1.355 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.9291, allocations: 3.906 kB / 1.355 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.9291, allocations: 0.625 kB / 1.355 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.9293, allocations: 138.5 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.9295, allocations: 36.03 kB / 1.355 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.426e-05/0.9295, allocations: 17.23 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.9295, allocations: 1.031 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/0.9295, allocations: 31.69 kB / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.9296, allocations: 0 / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0004978/0.9301, allocations: 287.8 kB / 1.356 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.749e-05/0.9301, allocations: 52.2 kB / 1.356 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.152e-05/0.9301, allocations: 98.03 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.9302, allocations: 25.7 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.406e-05/0.9302, allocations: 81.17 kB / 1.356 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.9302, allocations: 22.92 kB / 1.356 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-06/0.9302, allocations: 0 / 1.356 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.913e-05/0.9303, allocations: 313.2 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.963e-05/0.9303, allocations: 8.75 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.804e-05/0.9303, allocations: 14.53 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.011e-05/0.9303, allocations: 15.3 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-07/0.9304, allocations: 0 / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.977e-05/0.9304, allocations: 57.92 kB / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.9305, allocations: 5.984 kB / 1.356 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.9305, allocations: 3.906 kB / 1.356 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.9305, allocations: 1.938 kB / 1.356 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.752e-05/0.9306, allocations: 15.14 kB / 1.356 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.9306, allocations: 0.7969 kB / 1.356 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.763e-05/0.9306, allocations: 1.219 kB / 1.356 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.9306, allocations: 5.344 kB / 1.356 GB, free: 14.26 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.919e-05/0.9307, allocations: 102.8 kB / 1.356 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.11e-05/0.9307, allocations: 9.562 kB / 1.356 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.9308, allocations: 71 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.9308, allocations: 2.406 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.9308, allocations: 0 / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.9309, allocations: 0.6562 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.9311, allocations: 285.1 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.9311, allocations: 1.656 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-05/0.9312, allocations: 14.95 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.9312, allocations: 0.9688 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.9312, allocations: 1.844 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.9312, allocations: 0.875 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.9313, allocations: 2.922 kB / 1.357 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001647/0.9314, allocations: 183.6 kB / 1.357 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.9315, allocations: 89.62 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.9315, allocations: 6.547 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.94e-05/0.9316, allocations: 0.5625 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.9316, allocations: 3.859 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.9316, allocations: 3.156 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.908e-05/0.9316, allocations: 78.09 kB / 1.357 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002565/0.9319, allocations: 21.61 kB / 1.357 GB, free: 13.48 MB / 0.8073 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.0001884/0.9321, allocations: 140.9 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.517e-05/0.9322, allocations: 24.7 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.9322, allocations: 0.7188 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.652e-05/0.9322, allocations: 20.05 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.9324, allocations: 1.594 kB / 1.357 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002835/0.9326, allocations: 138.6 kB / 1.358 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.9329, allocations: 0.6942 MB / 1.358 GB, free: 28.56 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.9329, allocations: 0 / 1.358 GB, free: 28.56 MB / 0.823 GB Notification: Performance of Templates: time 0.002612/0.9355, allocations: 0.6528 MB / 1.359 GB, free: 28.49 MB / 0.823 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