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_DerivativeCheck2.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.35/1.35, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 186.3 kB / 326.5 MB, free: 2.234 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.757/1.757, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0008805/0.0008805, allocations: 90.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003074, allocations: 8.656 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1777, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1598/0.3375, allocations: 133.3 MB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.3378, allocations: 79.95 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01243/0.3503, allocations: 4.271 MB / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3503, allocations: 0 / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.3503, allocations: 0 / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004568/0.3508, allocations: 375.1 kB / 1.035 GB, free: 5.723 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3509, allocations: 12.03 kB / 1.035 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.3509, allocations: 3.906 kB / 1.035 GB, free: 5.707 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3511, allocations: 171 kB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.3511, allocations: 12 kB / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.3511, allocations: 4 kB / 1.035 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.3514, allocations: 81.59 kB / 1.035 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3514, allocations: 0 / 1.035 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3514, allocations: 4 kB / 1.035 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3515, allocations: 4 kB / 1.035 GB, free: 5.391 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002405/0.3517, allocations: 59.95 kB / 1.035 GB, free: 5.332 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005985/0.3523, allocations: 336.6 kB / 1.036 GB, free: 4.953 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.3526, allocations: 90.52 kB / 1.036 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.3526, allocations: 0 / 1.036 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3527, allocations: 34.56 kB / 1.036 GB, free: 4.812 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.3527, allocations: 4 kB / 1.036 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.001659/0.3543, allocations: 0.6697 MB / 1.036 GB, free: 4.047 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.3544, allocations: 55.34 kB / 1.036 GB, free: 3.98 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.565e-05/0.3545, allocations: 101 kB / 1.036 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.3545, allocations: 25.7 kB / 1.036 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.57e-05/0.3546, allocations: 95.98 kB / 1.037 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.3546, allocations: 35.45 kB / 1.037 GB, free: 3.711 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/0.3546, allocations: 4 kB / 1.037 GB, free: 3.707 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3547, allocations: 318.8 kB / 1.037 GB, free: 3.387 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.3549, allocations: 35.98 kB / 1.037 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.355, allocations: 39.97 kB / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.3551, allocations: 34.98 kB / 1.037 GB, free: 3.281 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.3551, allocations: 0 / 1.037 GB, free: 3.281 MB / 0.6823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003116/0.3555, allocations: 129.7 kB / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3555, allocations: 10.66 kB / 1.037 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3555, allocations: 3.953 kB / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3555, allocations: 0 / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3557, allocations: 31.92 kB / 1.037 GB, free: 3.105 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3557, allocations: 0 / 1.037 GB, free: 3.105 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.32e-05/0.3558, allocations: 7.984 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.3558, allocations: 12 kB / 1.037 GB, free: 3.086 MB / 0.6823 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 () * Number of clocked 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 0.0001035/0.3559, allocations: 113.8 kB / 1.037 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.3559, allocations: 3.906 kB / 1.037 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003882/0.3563, allocations: 145.4 kB / 1.037 GB, free: 2.816 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3563, allocations: 7.953 kB / 1.037 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3564, allocations: 0 / 1.037 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3564, allocations: 0 / 1.037 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.3569, allocations: 386.5 kB / 1.038 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3569, allocations: 0 / 1.038 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.3571, allocations: 39.84 kB / 1.038 GB, free: 2.336 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3571, allocations: 3.953 kB / 1.038 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.3571, allocations: 8 kB / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3571, allocations: 0 / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3571, allocations: 0 / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004688/0.3576, allocations: 267.6 kB / 1.038 GB, free: 2.047 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.3577, allocations: 77.11 kB / 1.038 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.3577, allocations: 7.953 kB / 1.038 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3578, allocations: 12.02 kB / 1.038 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.088e-05/0.3578, allocations: 8 kB / 1.038 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.3578, allocations: 7.984 kB / 1.038 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.46e-05/0.3579, allocations: 79.53 kB / 1.038 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3579, allocations: 4 kB / 1.038 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002862/0.3582, allocations: 43.94 kB / 1.038 GB, free: 1.793 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0002363/0.3584, allocations: 139.3 kB / 1.038 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.3587, allocations: 83.95 kB / 1.039 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3588, allocations: 0 / 1.039 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.3589, allocations: 55.84 kB / 1.039 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.3591, allocations: 15.98 kB / 1.039 GB, free: 1.496 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.3598, allocations: 381.1 kB / 1.039 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.36, allocations: 0.6926 MB / 1.04 GB, free: 376 kB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.711e-05/0.3601, allocations: 20.59 kB / 1.04 GB, free: 356 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.3601, allocations: 15.44 kB / 1.04 GB, free: 340 kB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.3602, allocations: 0 / 1.04 GB, free: 340 kB / 0.6823 GB Notification: Performance of Templates: time 0.003076/0.3632, allocations: 1.016 MB / 1.041 GB, free: 15.36 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches