Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_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_latest_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_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001699/0.001699, 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.002088/0.002088, allocations: 193.2 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.754/2.754, allocations: 461.9 MB / 0.7342 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 66.88 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3842, allocations: 157.4 MB / 1.052 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002705/0.387, allocations: 1.533 MB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.3881, allocations: 0.654 MB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.527e-05/0.3882, allocations: 0 / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.513e-05/0.3882, allocations: 3.938 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.758e-05/0.3883, allocations: 4 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.3888, allocations: 138.6 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.617e-05/0.3888, allocations: 47.91 kB / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.969e-05/0.3889, allocations: 11.91 kB / 1.054 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.79e-05/0.389, allocations: 23.91 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.61e-05/0.389, allocations: 27.86 kB / 1.054 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.389, allocations: 4 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004766/0.3895, allocations: 347.3 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.778e-05/0.3895, allocations: 7.984 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.847e-05/0.3896, allocations: 31.78 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.3899, allocations: 175.8 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3899, allocations: 0 / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3899, allocations: 0 / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3899, allocations: 0 / 1.055 GB, free: 5.793 MB / 0.8106 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.0005773/0.3905, allocations: 403.3 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3905, allocations: 12.03 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.3906, allocations: 0.9375 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.3907, allocations: 172.2 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3907, allocations: 8.375 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.3908, allocations: 4.375 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.391, allocations: 78.2 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.391, allocations: 4.188 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3911, allocations: 7.938 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3911, allocations: 4 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.3913, allocations: 47.95 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005471/0.3919, allocations: 324.6 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.3922, allocations: 82.47 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.3923, allocations: 32.83 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3923, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3923, allocations: 34.56 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.3924, allocations: 4 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001674/0.394, allocations: 0.6461 MB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.3941, allocations: 51.41 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/0.3942, allocations: 109.7 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.3942, allocations: 29.7 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.3942, allocations: 88.05 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.3943, allocations: 43.44 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.3943, allocations: 29.7 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3945, allocations: 310.8 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.3946, allocations: 39.97 kB / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.3947, allocations: 32.11 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.395, allocations: 71.95 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.395, allocations: 0 / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003067/0.3953, allocations: 121.5 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3953, allocations: 9.547 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.3953, allocations: 4 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3953, allocations: 0 / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.3955, allocations: 23.98 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.3955, allocations: 4 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.3956, allocations: 7.938 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.3956, allocations: 4 kB / 1.058 GB, free: 2.684 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.806e-05/0.3957, allocations: 121.8 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.3957, allocations: 4 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003643/0.3961, allocations: 129.6 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3961, allocations: 4 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3961, allocations: 0 / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3962, allocations: 7.922 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.3967, allocations: 370.5 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3967, allocations: 4 kB / 1.058 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.3969, allocations: 31.98 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3969, allocations: 0 / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.3969, allocations: 15.86 kB / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3969, allocations: 0 / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3969, allocations: 0 / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.3974, allocations: 251.3 kB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.3975, allocations: 85.08 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.3975, allocations: 3.938 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.3976, allocations: 12.02 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.904e-05/0.3976, allocations: 4 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.3977, allocations: 4 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.311e-05/0.3977, allocations: 87.45 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3977, allocations: 0 / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002798/0.398, allocations: 39.94 kB / 1.059 GB, free: 1.426 MB / 0.8106 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 (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.0002524/0.3983, allocations: 149.5 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003184/0.3986, allocations: 83.89 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3986, allocations: 0 / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.3987, allocations: 47.91 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.3992, allocations: 8.656 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.3999, allocations: 339.4 kB / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.4003, allocations: 0.6926 MB / 1.06 GB, free: 60 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.618e-05/0.4004, allocations: 20.67 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.092e-05/0.4004, allocations: 15.42 kB / 1.06 GB, free: 24 kB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.4004, allocations: 0 / 1.06 GB, free: 24 kB / 0.8106 GB Notification: Performance of Templates: time 0.004104/0.4045, allocations: 1.11 MB / 1.061 GB, free: 14.95 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches