Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.005392/0.005392, allocations: 108.3 kB / 19.72 MB, free: 412 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.003473/0.003473, allocations: 216.6 kB / 23.03 MB, free: 2.934 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.687/1.687, allocations: 230.6 MB / 256.8 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 3.394/3.394, allocations: 0.4898 GB / 0.7957 GB, free: 2.312 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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_12_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_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.004191/0.004191, allocations: 75.88 kB / 1.155 GB, free: 180 kB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9552/0.9594, allocations: 176.2 MB / 1.327 GB, free: 9.406 MB / 1.01 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2): time 0.003045/0.9624, allocations: 1.315 MB / 1.329 GB, free: 8.086 MB / 1.01 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.9638, allocations: 0.5694 MB / 1.329 GB, free: 7.516 MB / 1.01 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.504e-05/0.9638, allocations: 0 / 1.329 GB, free: 7.516 MB / 1.01 GB Notification: Performance of NFTyping.typeComponents: time 2.009e-05/0.9638, allocations: 0 / 1.329 GB, free: 7.516 MB / 1.01 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.9639, allocations: 3.938 kB / 1.329 GB, free: 7.512 MB / 1.01 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.9646, allocations: 159.4 kB / 1.329 GB, free: 7.355 MB / 1.01 GB Notification: Performance of NFFlatten.flatten: time 9.492e-05/0.9647, allocations: 23.92 kB / 1.329 GB, free: 7.332 MB / 1.01 GB Notification: Performance of NFFlatten.resolveConnections: time 5.328e-05/0.9647, allocations: 4 kB / 1.329 GB, free: 7.328 MB / 1.01 GB Notification: Performance of NFEvalConstants.evaluate: time 2.659e-05/0.9648, allocations: 15.94 kB / 1.329 GB, free: 7.312 MB / 1.01 GB Notification: Performance of NFSimplifyModel.simplify: time 8.242e-05/0.9648, allocations: 19.91 kB / 1.329 GB, free: 7.293 MB / 1.01 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.9649, allocations: 4 kB / 1.329 GB, free: 7.289 MB / 1.01 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005866/0.9654, allocations: 319.4 kB / 1.33 GB, free: 6.977 MB / 1.01 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.9655, allocations: 0 / 1.33 GB, free: 6.977 MB / 1.01 GB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.9655, allocations: 15.92 kB / 1.33 GB, free: 6.961 MB / 1.01 GB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.9659, allocations: 146.3 kB / 1.33 GB, free: 6.82 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.9659, allocations: 0 / 1.33 GB, free: 6.82 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.644e-06/0.9659, allocations: 0 / 1.33 GB, free: 6.82 MB / 1.01 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.9659, allocations: 0 / 1.33 GB, free: 6.82 MB / 1.01 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.0007522/0.9666, allocations: 297.9 kB / 1.33 GB, free: 6.496 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 6.577e-05/0.9667, allocations: 16.03 kB / 1.33 GB, free: 6.48 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.66e-05/0.9668, allocations: 0.9375 kB / 1.33 GB, free: 6.48 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.967, allocations: 110.5 kB / 1.33 GB, free: 6.348 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.967, allocations: 384 / 1.33 GB, free: 6.348 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.967, allocations: 12.36 kB / 1.33 GB, free: 6.336 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.9673, allocations: 97.66 kB / 1.33 GB, free: 6.223 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.9673, allocations: 192 / 1.33 GB, free: 6.223 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.9673, allocations: 7.938 kB / 1.33 GB, free: 6.215 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.9673, allocations: 0 / 1.33 GB, free: 6.215 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.337e-05/0.9674, allocations: 23.92 kB / 1.33 GB, free: 6.191 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.9679, allocations: 113.3 kB / 1.33 GB, free: 6.051 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.9681, allocations: 58.55 kB / 1.33 GB, free: 5.984 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.9681, allocations: 28.84 kB / 1.331 GB, free: 5.953 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.9681, allocations: 3.938 kB / 1.331 GB, free: 5.949 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.474e-05/0.9682, allocations: 38.55 kB / 1.331 GB, free: 5.902 MB / 1.01 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.9682, allocations: 0 / 1.331 GB, free: 5.902 MB / 1.01 GB Notification: Performance of matching and sorting (n=11): time 0.001517/0.9697, allocations: 451.7 kB / 1.331 GB, free: 5.406 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.9698, allocations: 55.41 kB / 1.331 GB, free: 5.34 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.9699, allocations: 101.8 kB / 1.331 GB, free: 5.23 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.9699, allocations: 25.7 kB / 1.331 GB, free: 5.199 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.97, allocations: 84.14 kB / 1.331 GB, free: 5.113 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 7.324e-05/0.9701, allocations: 39.69 kB / 1.331 GB, free: 5.074 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.9701, allocations: 25.72 kB / 1.331 GB, free: 5.043 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0002448/0.9704, allocations: 314.8 kB / 1.332 GB, free: 4.727 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.977e-05/0.9704, allocations: 20 kB / 1.332 GB, free: 4.707 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.943e-05/0.9705, allocations: 27.92 kB / 1.332 GB, free: 4.68 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.9706, allocations: 58.84 kB / 1.332 GB, free: 4.621 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.9706, allocations: 4.125 kB / 1.332 GB, free: 4.617 MB / 1.01 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001626/0.9708, allocations: 97.58 kB / 1.332 GB, free: 4.516 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.9708, allocations: 11.94 kB / 1.332 GB, free: 4.504 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.9708, allocations: 0 / 1.332 GB, free: 4.504 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.9708, allocations: 0 / 1.332 GB, free: 4.504 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.971, allocations: 23.98 kB / 1.332 GB, free: 4.48 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.971, allocations: 4 kB / 1.332 GB, free: 4.477 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.442e-05/0.971, allocations: 0 / 1.332 GB, free: 4.477 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.971, allocations: 8 kB / 1.332 GB, free: 4.469 MB / 1.01 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.0001209/0.9711, allocations: 111.9 kB / 1.332 GB, free: 4.352 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.9711, allocations: 11.94 kB / 1.332 GB, free: 4.34 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.9714, allocations: 121.6 kB / 1.332 GB, free: 4.211 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.9714, allocations: 7.938 kB / 1.332 GB, free: 4.203 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.9714, allocations: 0 / 1.332 GB, free: 4.203 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.9714, allocations: 0 / 1.332 GB, free: 4.203 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005419/0.972, allocations: 294.1 kB / 1.332 GB, free: 3.879 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.972, allocations: 0 / 1.332 GB, free: 3.879 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.9721, allocations: 23.98 kB / 1.332 GB, free: 3.855 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.9721, allocations: 0 / 1.332 GB, free: 3.855 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.9721, allocations: 0 / 1.332 GB, free: 3.855 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.9721, allocations: 0 / 1.332 GB, free: 3.855 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9721, allocations: 4 kB / 1.332 GB, free: 3.852 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/0.9725, allocations: 229.3 kB / 1.333 GB, free: 3.613 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 1.216e-05/0.9725, allocations: 4.031 kB / 1.333 GB, free: 3.609 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.9725, allocations: 4 kB / 1.333 GB, free: 3.605 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-05/0.9726, allocations: 4 kB / 1.333 GB, free: 3.602 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.9727, allocations: 3.984 kB / 1.333 GB, free: 3.598 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.9727, allocations: 4 kB / 1.333 GB, free: 3.594 MB / 1.01 GB Notification: Performance of sorting global known variables: time 7.224e-05/0.9727, allocations: 83.28 kB / 1.333 GB, free: 3.512 MB / 1.01 GB Notification: Performance of sort global known variables: time 6e-08/0.9727, allocations: 0 / 1.333 GB, free: 3.512 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0003841/0.9731, allocations: 47.8 kB / 1.333 GB, free: 3.465 MB / 1.01 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.0003821/0.9735, allocations: 159.1 kB / 1.333 GB, free: 3.301 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0002063/0.9737, allocations: 63.84 kB / 1.333 GB, free: 3.238 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.9737, allocations: 4 kB / 1.333 GB, free: 3.234 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 6.067e-05/0.9738, allocations: 31.98 kB / 1.333 GB, free: 3.203 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.974, allocations: 6.188 kB / 1.333 GB, free: 3.199 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008882/0.9749, allocations: 289.3 kB / 1.333 GB, free: 2.891 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.975, allocations: 71.34 kB / 1.333 GB, free: 2.801 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 6.627e-05/0.9751, allocations: 7.938 kB / 1.333 GB, free: 2.793 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.9752, allocations: 15.42 kB / 1.333 GB, free: 2.777 MB / 1.01 GB Notification: Performance of SimCode: time 6.01e-07/0.9752, allocations: 0 / 1.333 GB, free: 2.777 MB / 1.01 GB Notification: Performance of Templates: time 0.00574/0.9809, allocations: 1.253 MB / 1.335 GB, free: 1.57 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2/Buildings_12_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: 10.391408409923315]