Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002055/0.002055, allocations: 192.4 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.882/2.882, allocations: 472.6 MB / 0.7447 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 68.33 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4076, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002775/0.4104, allocations: 1.343 MB / 1.069 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.4116, allocations: 0.6268 MB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.792e-05/0.4116, allocations: 4 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.289e-05/0.4117, allocations: 3.984 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.406e-05/0.4117, allocations: 7.938 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.4122, allocations: 123.2 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.697e-05/0.4123, allocations: 19.92 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.474e-05/0.4123, allocations: 3.938 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.776e-05/0.4124, allocations: 8 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.662e-05/0.4124, allocations: 15.91 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.4125, allocations: 4 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004802/0.4129, allocations: 343.3 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.413, allocations: 0 / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.413, allocations: 11.92 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.4133, allocations: 144 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.4133, allocations: 4 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.4133, allocations: 0 / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.4133, allocations: 0 / 1.07 GB, free: 8.242 MB / 0.8262 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.0004377/0.4138, allocations: 361.1 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.4138, allocations: 8.031 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.4138, allocations: 8.844 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.414, allocations: 172.4 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.414, allocations: 384 / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.414, allocations: 8.375 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.4141, allocations: 42.19 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.4142, allocations: 192 / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.4142, allocations: 3.938 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4142, allocations: 0 / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.692e-05/0.4142, allocations: 15.92 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.4144, allocations: 161.7 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.4146, allocations: 42.61 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.509e-05/0.4147, allocations: 16.94 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.889e-05/0.4147, allocations: 4 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.4147, allocations: 38.5 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.4147, allocations: 0 / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006496/0.4154, allocations: 314.1 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.4154, allocations: 59.39 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.055e-05/0.4155, allocations: 93.86 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.4155, allocations: 29.7 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.4156, allocations: 80.14 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.4156, allocations: 19.7 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.4156, allocations: 21.72 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4158, allocations: 314.8 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.931e-05/0.4158, allocations: 15.98 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.991e-05/0.4158, allocations: 8 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.715e-05/0.4159, allocations: 28.86 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.4159, allocations: 3.938 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001098/0.416, allocations: 69.59 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.416, allocations: 11.88 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.416, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.416, allocations: 4 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.154e-05/0.4161, allocations: 11.98 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4161, allocations: 4 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.4161, allocations: 0 / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.637e-06/0.4162, allocations: 4 kB / 1.072 GB, free: 6.035 MB / 0.8262 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.589e-05/0.4162, allocations: 111.2 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.4163, allocations: 7.938 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.4164, allocations: 73.58 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4164, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4164, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4164, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003515/0.4168, allocations: 327.3 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4168, allocations: 192 / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.309e-05/0.4169, allocations: 15.98 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4169, allocations: 0 / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.4169, allocations: 8 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4169, allocations: 240 / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4169, allocations: 0 / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.4171, allocations: 192.2 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.41e-05/0.4172, allocations: 81.61 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.4172, allocations: 0 / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.4173, allocations: 4 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.4173, allocations: 3.984 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.4173, allocations: 8 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.179e-05/0.4174, allocations: 83.27 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4174, allocations: 64 / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002762/0.4177, allocations: 19.94 kB / 1.073 GB, free: 5.004 MB / 0.8262 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002242/0.4179, allocations: 123.2 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001208/0.418, allocations: 35.92 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4181, allocations: 0 / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.24e-05/0.4181, allocations: 15.98 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.4184, allocations: 7.938 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004783/0.4188, allocations: 214 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.4192, allocations: 0.6848 MB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.574e-05/0.4192, allocations: 7.891 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.885e-05/0.4192, allocations: 11.44 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4193, allocations: 0 / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of Templates: time 0.003223/0.4225, allocations: 0.629 MB / 1.075 GB, free: 3.246 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches