Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.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.0019/0.0019, allocations: 109.5 kB / 18.95 MB, free: 1.18 MB / 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.002108/0.002108, allocations: 212.6 kB / 22.25 MB, free: 3.582 MB / 13.93 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.803/1.803, allocations: 230.6 MB / 256 MB, free: 9.594 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 4.082/4.082, allocations: 0.5707 GB / 0.8759 GB, free: 16.34 MB / 0.6667 GB " [Timeout remaining time 175] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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_inv_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|der_m_flow|der_m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|der_m_flow|der_m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003906/0.003906, allocations: 86.67 kB / 1.276 GB, free: 13.14 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4872/0.4911, allocations: 196.8 MB / 1.468 GB, free: 2.629 MB / 1.135 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2): time 0.002816/0.4939, allocations: 1.337 MB / 1.469 GB, free: 1.273 MB / 1.135 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.4952, allocations: 0.5623 MB / 1.47 GB, free: 0.7109 MB / 1.135 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.4952, allocations: 0 / 1.47 GB, free: 0.7109 MB / 1.135 GB Notification: Performance of NFTyping.typeComponents: time 2.211e-05/0.4952, allocations: 3.984 kB / 1.47 GB, free: 0.707 MB / 1.135 GB Notification: Performance of NFTyping.typeBindings: time 4.42e-05/0.4953, allocations: 7.938 kB / 1.47 GB, free: 0.6992 MB / 1.135 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006373/0.4959, allocations: 159.4 kB / 1.47 GB, free: 0.543 MB / 1.135 GB Notification: Performance of NFFlatten.flatten: time 7.022e-05/0.496, allocations: 23.92 kB / 1.47 GB, free: 0.5195 MB / 1.135 GB Notification: Performance of NFFlatten.resolveConnections: time 4.516e-05/0.496, allocations: 7.984 kB / 1.47 GB, free: 0.5117 MB / 1.135 GB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.496, allocations: 15.92 kB / 1.47 GB, free: 0.4961 MB / 1.135 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.4961, allocations: 15.92 kB / 1.47 GB, free: 492 kB / 1.135 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.4961, allocations: 0 / 1.47 GB, free: 492 kB / 1.135 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005632/0.4967, allocations: 315.4 kB / 1.47 GB, free: 176 kB / 1.135 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.4967, allocations: 8 kB / 1.47 GB, free: 168 kB / 1.135 GB Notification: Performance of NFVerifyModel.verify: time 3.031e-05/0.4967, allocations: 15.92 kB / 1.47 GB, free: 152 kB / 1.135 GB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.4971, allocations: 155.5 kB / 1.47 GB, free: 15.99 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4971, allocations: 0 / 1.47 GB, free: 15.99 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4971, allocations: 0 / 1.47 GB, free: 15.99 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.4971, allocations: 0 / 1.47 GB, free: 15.99 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005346/0.4976, allocations: 294.8 kB / 1.471 GB, free: 15.68 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4976, allocations: 11.98 kB / 1.471 GB, free: 15.66 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.4977, allocations: 4.938 kB / 1.471 GB, free: 15.66 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.4978, allocations: 110.5 kB / 1.471 GB, free: 15.53 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.4978, allocations: 8.375 kB / 1.471 GB, free: 15.52 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.4979, allocations: 384 / 1.471 GB, free: 15.52 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.498, allocations: 101.7 kB / 1.471 GB, free: 15.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.4981, allocations: 4.125 kB / 1.471 GB, free: 15.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.4981, allocations: 3.938 kB / 1.471 GB, free: 15.39 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.4981, allocations: 7.984 kB / 1.471 GB, free: 15.39 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.761e-05/0.4981, allocations: 15.98 kB / 1.471 GB, free: 15.37 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.4984, allocations: 117.3 kB / 1.471 GB, free: 15.23 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.4985, allocations: 54.56 kB / 1.471 GB, free: 15.16 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.148e-05/0.4985, allocations: 24.84 kB / 1.471 GB, free: 15.14 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.4986, allocations: 12 kB / 1.471 GB, free: 15.12 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.4986, allocations: 34.5 kB / 1.471 GB, free: 15.08 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.4986, allocations: 0 / 1.471 GB, free: 15.08 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.001231/0.4998, allocations: 451.7 kB / 1.472 GB, free: 14.59 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4999, allocations: 55.41 kB / 1.472 GB, free: 14.52 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.472e-05/0.5, allocations: 93.86 kB / 1.472 GB, free: 14.42 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.5, allocations: 29.7 kB / 1.472 GB, free: 14.38 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 4.871e-05/0.5001, allocations: 84.27 kB / 1.472 GB, free: 14.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/0.5001, allocations: 39.64 kB / 1.472 GB, free: 14.26 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.5002, allocations: 29.7 kB / 1.472 GB, free: 14.22 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.5003, allocations: 318.8 kB / 1.472 GB, free: 13.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.548e-05/0.5004, allocations: 19.98 kB / 1.472 GB, free: 13.88 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.357e-05/0.5004, allocations: 23.98 kB / 1.472 GB, free: 13.86 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.942e-05/0.5005, allocations: 52.8 kB / 1.472 GB, free: 13.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.5005, allocations: 0 / 1.472 GB, free: 13.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001609/0.5007, allocations: 105.6 kB / 1.472 GB, free: 13.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.5007, allocations: 9.969 kB / 1.472 GB, free: 13.69 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.5007, allocations: 0 / 1.472 GB, free: 13.69 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5007, allocations: 7.984 kB / 1.472 GB, free: 13.68 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.5009, allocations: 20 kB / 1.472 GB, free: 13.66 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.5009, allocations: 4 kB / 1.472 GB, free: 13.66 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.827e-05/0.5009, allocations: 4 kB / 1.472 GB, free: 13.65 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.5009, allocations: 4 kB / 1.472 GB, free: 13.65 MB / 1.151 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 0.000112/0.501, allocations: 123.3 kB / 1.473 GB, free: 13.52 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.501, allocations: 3.938 kB / 1.473 GB, free: 13.52 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.5012, allocations: 101.7 kB / 1.473 GB, free: 13.41 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.5012, allocations: 0 / 1.473 GB, free: 13.41 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5013, allocations: 0 / 1.473 GB, free: 13.41 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.5013, allocations: 4 kB / 1.473 GB, free: 13.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.5017, allocations: 306 kB / 1.473 GB, free: 13.07 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5017, allocations: 0 / 1.473 GB, free: 13.07 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.5018, allocations: 19.98 kB / 1.473 GB, free: 13.05 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5018, allocations: 0 / 1.473 GB, free: 13.05 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.5018, allocations: 8 kB / 1.473 GB, free: 13.04 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.5018, allocations: 0 / 1.473 GB, free: 13.04 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.5018, allocations: 0 / 1.473 GB, free: 13.04 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.5021, allocations: 225.9 kB / 1.473 GB, free: 12.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-06/0.5021, allocations: 3.953 kB / 1.473 GB, free: 12.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.5022, allocations: 12.08 kB / 1.473 GB, free: 12.79 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.242e-05/0.5022, allocations: 0 / 1.473 GB, free: 12.79 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.5023, allocations: 11.98 kB / 1.473 GB, free: 12.78 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.5023, allocations: 4 kB / 1.473 GB, free: 12.77 MB / 1.151 GB Notification: Performance of sorting global known variables: time 5.08e-05/0.5023, allocations: 75.28 kB / 1.473 GB, free: 12.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 9e-08/0.5023, allocations: 0 / 1.473 GB, free: 12.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002971/0.5026, allocations: 55.75 kB / 1.473 GB, free: 12.64 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0003062/0.5029, allocations: 162.9 kB / 1.473 GB, free: 12.48 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001718/0.5031, allocations: 55.86 kB / 1.474 GB, free: 12.42 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5031, allocations: 4.094 kB / 1.474 GB, free: 12.42 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 5.806e-05/0.5032, allocations: 36.36 kB / 1.474 GB, free: 12.38 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.5034, allocations: 12.16 kB / 1.474 GB, free: 12.37 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006254/0.504, allocations: 281.2 kB / 1.474 GB, free: 12.07 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.119e-05/0.5041, allocations: 67.34 kB / 1.474 GB, free: 11.98 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 4.918e-05/0.5042, allocations: 19.86 kB / 1.474 GB, free: 11.96 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.356e-05/0.5042, allocations: 19.44 kB / 1.474 GB, free: 11.95 MB / 1.151 GB Notification: Performance of SimCode: time 2.9e-07/0.5042, allocations: 0 / 1.474 GB, free: 11.95 MB / 1.151 GB Notification: Performance of Templates: time 0.004824/0.509, allocations: 1.244 MB / 1.475 GB, free: 10.75 MB / 1.151 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.541819248115644]