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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002426/0.002426, allocations: 89.48 kB / 19.44 MB, free: 332 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002816/0.002816, allocations: 169.2 kB / 22.76 MB, free: 1.66 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.623/1.623, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.433/3.433, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.888e-06/3.888e-06, allocations: 3.984 kB / 0.8775 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.066e-05/2.455e-05, allocations: 3.297 kB / 0.8775 GB, free: 6.637 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002457/0.002482, allocations: 1.331 MB / 0.8788 GB, free: 5.316 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003656, allocations: 0.5721 MB / 0.8793 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.385e-05/0.00368, allocations: 1.031 kB / 0.8793 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.673e-05/0.003707, allocations: 3.984 kB / 0.8793 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.307e-05/0.00375, allocations: 4 kB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006199/0.00437, allocations: 156.6 kB / 0.8795 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.052e-05/0.004431, allocations: 19.08 kB / 0.8795 GB, free: 4.574 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.334e-05/0.004464, allocations: 4 kB / 0.8795 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.891e-05/0.004523, allocations: 11.94 kB / 0.8795 GB, free: 4.559 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.528e-05/0.004568, allocations: 7.984 kB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.004582, allocations: 0 / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005097/0.005092, allocations: 279.3 kB / 0.8798 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.005104, allocations: 0 / 0.8798 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.034e-05/0.005125, allocations: 4 kB / 0.8798 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.00545, allocations: 160.1 kB / 0.88 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.005452, allocations: 0 / 0.88 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.51e-07/0.005453, allocations: 1.656 kB / 0.88 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.005456, allocations: 0 / 0.88 GB, free: 4.117 MB / 0.8386 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.0006829/0.006139, allocations: 387.9 kB / 0.8803 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.006175, allocations: 12.03 kB / 0.8803 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.098e-05/0.006216, allocations: 1.438 kB / 0.8803 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.00634, allocations: 108.6 kB / 0.8804 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.006351, allocations: 1.719 kB / 0.8804 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.006374, allocations: 8.375 kB / 0.8805 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.006502, allocations: 63.89 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.00651, allocations: 1.75 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.006518, allocations: 4.375 kB / 0.8805 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.006522, allocations: 4.312 kB / 0.8805 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.869e-05/0.006571, allocations: 15.92 kB / 0.8805 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001875/0.006758, allocations: 124.6 kB / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.006959, allocations: 47.09 kB / 0.8807 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.007007, allocations: 23.77 kB / 0.8807 GB, free: 3.207 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.007023, allocations: 3.938 kB / 0.8807 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.007058, allocations: 37.39 kB / 0.8808 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.007059, allocations: 4 kB / 0.8808 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0006614/0.007721, allocations: 237.7 kB / 0.881 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.007768, allocations: 55.34 kB / 0.881 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.007894, allocations: 158.4 kB / 0.8812 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.007918, allocations: 33.7 kB / 0.8812 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.007994, allocations: 130.9 kB / 0.8814 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.008026, allocations: 19.8 kB / 0.8814 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.008078, allocations: 27.38 kB / 0.8814 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002808/0.008358, allocations: 496.1 kB / 0.8819 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.00839, allocations: 12 kB / 0.8819 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.588e-05/0.008416, allocations: 16.05 kB / 0.8819 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.425e-05/0.0085, allocations: 39.77 kB / 0.8819 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.008501, allocations: 0 / 0.8819 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001216/0.008622, allocations: 69.67 kB / 0.882 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.008636, allocations: 4 kB / 0.882 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.008642, allocations: 8.047 kB / 0.882 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.008656, allocations: 3.984 kB / 0.882 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.821e-05/0.008714, allocations: 8 kB / 0.882 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.008722, allocations: 3.938 kB / 0.882 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.008739, allocations: 0 / 0.882 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.008747, allocations: 4 kB / 0.882 GB, free: 1.746 MB / 0.8386 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 0.0001202/0.008867, allocations: 164.5 kB / 0.8822 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.008884, allocations: 7.953 kB / 0.8822 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.009035, allocations: 69.81 kB / 0.8823 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.009037, allocations: 0 / 0.8823 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.009043, allocations: 7.938 kB / 0.8823 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.009046, allocations: 0 / 0.8823 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004/0.009446, allocations: 321.1 kB / 0.8826 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.009448, allocations: 0 / 0.8826 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-05/0.009514, allocations: 11.94 kB / 0.8826 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.009519, allocations: 4 kB / 0.8826 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.009529, allocations: 3.938 kB / 0.8826 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.009531, allocations: 0 / 0.8826 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.009534, allocations: 3.984 kB / 0.8826 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.009799, allocations: 239.7 kB / 0.8828 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.009821, allocations: 8.047 kB / 0.8828 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.00984, allocations: 11.94 kB / 0.8829 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.009904, allocations: 0 / 0.8829 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.481e-05/0.009929, allocations: 8 kB / 0.8829 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.009934, allocations: 0 / 0.8829 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.684e-05/0.01001, allocations: 127.2 kB / 0.883 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01001, allocations: 0 / 0.883 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002428/0.01025, allocations: 19.94 kB / 0.883 GB, free: 0.6758 MB / 0.8386 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.0002119/0.01047, allocations: 119.2 kB / 0.8831 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001241/0.01059, allocations: 47.61 kB / 0.8832 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01059, allocations: 0 / 0.8832 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.01064, allocations: 31.61 kB / 0.8832 GB, free: 472 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.01085, allocations: 5.875 kB / 0.8832 GB, free: 468 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.01126, allocations: 182.1 kB / 0.8834 GB, free: 252 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.127e-05/0.01135, allocations: 70.58 kB / 0.8834 GB, free: 164 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.176e-05/0.01138, allocations: 8.188 kB / 0.8834 GB, free: 156 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.441e-05/0.0114, allocations: 12.5 kB / 0.8835 GB, free: 144 kB / 0.8386 GB Notification: Performance of SimCode: time 4.41e-07/0.0114, allocations: 0 / 0.8835 GB, free: 144 kB / 0.8386 GB Notification: Performance of Templates: time 0.00364/0.01504, allocations: 0.6679 MB / 0.8841 GB, free: 15.52 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) [Timeout 240] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.498981200973503]