Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.843/2.843, allocations: 472.7 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 71.11 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3128, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002399/0.3152, allocations: 1.265 MB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009635/0.3162, allocations: 0.6171 MB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.3162, allocations: 0 / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.916e-05/0.3163, allocations: 0 / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.3163, allocations: 7.922 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005731/0.3169, allocations: 143.4 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.075e-05/0.317, allocations: 19.94 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.317, allocations: 7.984 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.355e-05/0.3171, allocations: 7.938 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.612e-05/0.3171, allocations: 11.94 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.3171, allocations: 0 / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00049/0.3176, allocations: 343.3 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.442e-05/0.3176, allocations: 7.984 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.3177, allocations: 7.938 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.318, allocations: 144 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.318, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.833e-06/0.318, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.318, allocations: 0 / 1.071 GB, free: 7.824 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.00051/0.3185, allocations: 371.4 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3186, allocations: 12.03 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.3186, allocations: 4.844 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3188, allocations: 160.4 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.3188, allocations: 12.38 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.3188, allocations: 384 / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.3189, allocations: 42.25 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.3189, allocations: 4.125 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.319, allocations: 7.875 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.319, allocations: 4 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.949e-05/0.319, allocations: 11.98 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.3192, allocations: 157.7 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.3194, allocations: 38.56 kB / 1.072 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.3194, allocations: 20.84 kB / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.3194, allocations: 0 / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.3195, allocations: 42.5 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 9.71e-07/0.3195, allocations: 0 / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006043/0.3201, allocations: 314.2 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3201, allocations: 51.41 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.27e-05/0.3202, allocations: 97.86 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.3202, allocations: 25.7 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.817e-05/0.3202, allocations: 84.14 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.3203, allocations: 27.69 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.3203, allocations: 21.72 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.3204, allocations: 314.8 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.587e-05/0.3204, allocations: 8 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.122e-05/0.3205, allocations: 12 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.506e-05/0.3205, allocations: 32.84 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.3205, allocations: 0 / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001012/0.3206, allocations: 69.55 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.3207, allocations: 13.64 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3207, allocations: 7.938 kB / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3207, allocations: 0 / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.314e-05/0.3207, allocations: 12 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3208, allocations: 0 / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.3208, allocations: 0 / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.3208, allocations: 4 kB / 1.073 GB, free: 5.609 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 6.921e-05/0.3209, allocations: 111.4 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.3209, allocations: 7.938 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.321, allocations: 77.58 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.321, allocations: 128 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.321, allocations: 4 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.321, allocations: 0 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.3214, allocations: 315.3 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3214, allocations: 4 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.441e-05/0.3214, allocations: 15.98 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3214, allocations: 0 / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3215, allocations: 4 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3215, allocations: 7.969 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3215, allocations: 0 / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001716/0.3216, allocations: 184.2 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.3217, allocations: 81.14 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.3217, allocations: 0 / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.3218, allocations: 4 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.264e-05/0.3218, allocations: 12.05 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.3218, allocations: 4 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.047e-05/0.3219, allocations: 75.8 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3219, allocations: 0 / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002613/0.3222, allocations: 23.94 kB / 1.074 GB, free: 4.582 MB / 0.8262 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 () * 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.0001802/0.3223, allocations: 119.8 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001066/0.3225, allocations: 43.92 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3225, allocations: 0 / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.882e-05/0.3225, allocations: 20 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.3227, allocations: 8.438 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.3231, allocations: 196.4 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.3234, allocations: 0.6883 MB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.099e-05/0.3234, allocations: 8.375 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.065e-05/0.3234, allocations: 11.44 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3235, allocations: 0 / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.002761/0.3262, allocations: 0.6364 MB / 1.075 GB, free: 2.828 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches