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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008135/0.008136, allocations: 172.9 kB / 16.26 MB, free: 6.676 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.439/1.439, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.394/2.394, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003631, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6893/0.6897, allocations: 142.4 MB / 0.955 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001265/0.691, allocations: 0.9958 MB / 0.956 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009149/0.692, allocations: 0.6108 MB / 0.9566 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.692, allocations: 0 / 0.9566 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.692, allocations: 3.984 kB / 0.9566 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.123e-05/0.6921, allocations: 8.922 kB / 0.9566 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.6925, allocations: 115.7 kB / 0.9567 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.826e-05/0.6925, allocations: 24.58 kB / 0.9568 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.544e-05/0.6926, allocations: 2.281 kB / 0.9568 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.583e-05/0.6926, allocations: 3.219 kB / 0.9568 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.823e-05/0.6927, allocations: 19.22 kB / 0.9568 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.6927, allocations: 1.031 kB / 0.9568 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.6932, allocations: 341.4 kB / 0.9571 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.6932, allocations: 4.891 kB / 0.9571 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.6932, allocations: 33.02 kB / 0.9571 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.6935, allocations: 150.3 kB / 0.9573 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.6935, allocations: 0 / 0.9573 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.302e-06/0.6935, allocations: 5.125 kB / 0.9573 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.6935, allocations: 0 / 0.9573 GB, free: 6.223 MB / 0.7169 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.0003592/0.6938, allocations: 352.1 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.6939, allocations: 9.75 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.6939, allocations: 2.094 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.949e-05/0.694, allocations: 169.7 kB / 0.9578 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.6941, allocations: 1.531 kB / 0.9578 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.6941, allocations: 6.844 kB / 0.9578 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.6942, allocations: 44.14 kB / 0.9579 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.6942, allocations: 4.188 kB / 0.9579 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.6942, allocations: 9.25 kB / 0.9579 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.6942, allocations: 0 / 0.9579 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.936e-05/0.6943, allocations: 11.12 kB / 0.9579 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.6944, allocations: 154 kB / 0.958 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.6946, allocations: 43.77 kB / 0.9581 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.18e-05/0.6947, allocations: 24.72 kB / 0.9581 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.6947, allocations: 9.75 kB / 0.9581 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.6947, allocations: 34.56 kB / 0.9581 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.6947, allocations: 0 / 0.9581 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005779/0.6953, allocations: 320.1 kB / 0.9584 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.6953, allocations: 51.41 kB / 0.9585 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.49e-05/0.6954, allocations: 98.53 kB / 0.9586 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.6954, allocations: 33.7 kB / 0.9586 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.65e-05/0.6954, allocations: 81.86 kB / 0.9587 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.6955, allocations: 21.22 kB / 0.9587 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.6955, allocations: 16.36 kB / 0.9587 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.086e-05/0.6955, allocations: 316.7 kB / 0.959 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.6956, allocations: 5.625 kB / 0.959 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.021e-05/0.6956, allocations: 14.33 kB / 0.959 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.515e-05/0.6956, allocations: 36.7 kB / 0.9591 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.6956, allocations: 0 / 0.9591 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.07e-05/0.6957, allocations: 64.94 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.6958, allocations: 8.656 kB / 0.9591 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.6958, allocations: 0 / 0.9591 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.6958, allocations: 1.281 kB / 0.9591 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.673e-05/0.6958, allocations: 9.344 kB / 0.9592 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.6958, allocations: 1.5 kB / 0.9592 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.662e-05/0.6959, allocations: 0 / 0.9592 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.6959, allocations: 5.375 kB / 0.9592 GB, free: 4.238 MB / 0.7169 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 4.777e-05/0.6959, allocations: 116.8 kB / 0.9593 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.696, allocations: 9.531 kB / 0.9593 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.6961, allocations: 70.2 kB / 0.9594 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.6961, allocations: 1.875 kB / 0.9594 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6961, allocations: 0 / 0.9594 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6961, allocations: 0 / 0.9594 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.6963, allocations: 319.9 kB / 0.9597 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6963, allocations: 1.812 kB / 0.9597 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.943e-05/0.6964, allocations: 10.12 kB / 0.9597 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.6964, allocations: 8.016 kB / 0.9597 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.6964, allocations: 1.594 kB / 0.9597 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.6964, allocations: 1.719 kB / 0.9597 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6964, allocations: 8.172 kB / 0.9597 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.6966, allocations: 189.5 kB / 0.9599 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.803e-05/0.6966, allocations: 83.84 kB / 0.96 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.6967, allocations: 1.375 kB / 0.96 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.997e-05/0.6967, allocations: 9.438 kB / 0.96 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.6968, allocations: 1.375 kB / 0.96 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.6968, allocations: 2.75 kB / 0.96 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.791e-05/0.6968, allocations: 82.02 kB / 0.96 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6968, allocations: 0 / 0.96 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002407/0.697, allocations: 23.12 kB / 0.9601 GB, free: 3.324 MB / 0.7169 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.0001672/0.6972, allocations: 121.5 kB / 0.9602 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.602e-05/0.6973, allocations: 40.53 kB / 0.9602 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6973, allocations: 4 kB / 0.9602 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.82e-05/0.6974, allocations: 16.38 kB / 0.9602 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.6976, allocations: 6.688 kB / 0.9602 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.6979, allocations: 231 kB / 0.9605 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.6981, allocations: 0.6812 MB / 0.9611 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.65e-05/0.6981, allocations: 2.75 kB / 0.9611 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.621e-05/0.6981, allocations: 11.56 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6981, allocations: 0 / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of Templates: time 0.00281/0.7009, allocations: 0.6124 MB / 0.9617 GB, free: 1.977 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches