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.001957/0.001957, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 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.002501/0.002501, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 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.534/1.534, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 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 2.856/2.856, allocations: 0.5003 GB / 0.8026 GB, free: 6.707 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.91 kB / 1.165 GB, free: 468 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8672/0.8692, allocations: 178.9 MB / 1.34 GB, free: 16.22 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00211/0.8713, allocations: 1.304 MB / 1.341 GB, free: 15.3 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008711/0.8722, allocations: 0.6028 MB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.886e-05/0.8722, allocations: 0 / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.054e-05/0.8722, allocations: 8.688 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.717e-05/0.8722, allocations: 5.875 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.8728, allocations: 145.3 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.191e-05/0.8729, allocations: 23.12 kB / 1.342 GB, free: 14.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.689e-05/0.8729, allocations: 3.016 kB / 1.342 GB, free: 14.8 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.649e-05/0.8729, allocations: 13.28 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.873, allocations: 9.078 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.873, allocations: 1.031 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005089/0.8735, allocations: 349.8 kB / 1.343 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.8735, allocations: 9.906 kB / 1.343 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.928e-05/0.8735, allocations: 8.953 kB / 1.343 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.8738, allocations: 145.9 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.8738, allocations: 0.7031 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.092e-06/0.8738, allocations: 1.844 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.8738, allocations: 3.938 kB / 1.343 GB, free: 14.62 MB / 1.061 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.0003345/0.8741, allocations: 360.5 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.8742, allocations: 11.02 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.19e-05/0.8742, allocations: 4.188 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.681e-05/0.8742, allocations: 32.78 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.581e-05/0.8742, allocations: 7.578 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.66e-05/0.8743, allocations: 165.1 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.8743, allocations: 2.812 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.8744, allocations: 2.188 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.796e-05/0.8745, allocations: 44.09 kB / 1.343 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.8745, allocations: 0 / 1.343 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.8745, allocations: 1.219 kB / 1.343 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.8745, allocations: 4 kB / 1.343 GB, free: 13.95 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.822e-05/0.8745, allocations: 12.61 kB / 1.343 GB, free: 13.94 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.8746, allocations: 163 kB / 1.343 GB, free: 13.74 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.8748, allocations: 39.08 kB / 1.344 GB, free: 13.71 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.286e-05/0.8748, allocations: 17.67 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.8748, allocations: 0 / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.8749, allocations: 42.02 kB / 1.344 GB, free: 13.66 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.8749, allocations: 0 / 1.344 GB, free: 13.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0005357/0.8754, allocations: 308.4 kB / 1.344 GB, free: 13.37 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.926e-05/0.8754, allocations: 53.12 kB / 1.344 GB, free: 13.31 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.023e-05/0.8755, allocations: 98.66 kB / 1.344 GB, free: 13.21 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.8755, allocations: 26.5 kB / 1.344 GB, free: 13.18 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.325e-05/0.8755, allocations: 81.61 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.8755, allocations: 20.11 kB / 1.344 GB, free: 13.08 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.8755, allocations: 28.47 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.53e-05/0.8756, allocations: 313.6 kB / 1.344 GB, free: 12.74 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.648e-05/0.8756, allocations: 11.36 kB / 1.344 GB, free: 12.73 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.07e-05/0.8756, allocations: 16.34 kB / 1.344 GB, free: 12.73 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.817e-05/0.8757, allocations: 34.17 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-07/0.8757, allocations: 0 / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.57e-05/0.8758, allocations: 84.73 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.8758, allocations: 5.375 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.8758, allocations: 4.188 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.8758, allocations: 0.7969 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.033e-05/0.8758, allocations: 10.88 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.8758, allocations: 2.281 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.8759, allocations: 3.984 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.8759, allocations: 2.219 kB / 1.345 GB, free: 12.64 MB / 1.061 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.069e-05/0.8759, allocations: 112.3 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.8759, allocations: 6.297 kB / 1.345 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.876, allocations: 76.23 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.876, allocations: 6.5 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.876, allocations: 0.5156 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.876, allocations: 0 / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.8763, allocations: 312.2 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.8763, allocations: 1.375 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.8763, allocations: 10.94 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8763, allocations: 0.6094 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.8763, allocations: 5.375 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.8763, allocations: 1.984 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.8763, allocations: 5.406 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.8765, allocations: 183.1 kB / 1.345 GB, free: 11.95 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.8765, allocations: 82.31 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.8765, allocations: 6.031 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.922e-05/0.8766, allocations: 2.031 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.959e-05/0.8766, allocations: 4.062 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.8766, allocations: 10.23 kB / 1.345 GB, free: 11.85 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.807e-05/0.8766, allocations: 79.53 kB / 1.345 GB, free: 11.77 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.8766, allocations: 0 / 1.345 GB, free: 11.77 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002454/0.8769, allocations: 19.06 kB / 1.346 GB, free: 11.77 MB / 1.061 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.0003427/0.8772, allocations: 0.7416 MB / 1.346 GB, free: 11.07 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001064/0.8773, allocations: 34.52 kB / 1.346 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.8773, allocations: 0 / 1.346 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.736e-05/0.8774, allocations: 16.67 kB / 1.346 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.8776, allocations: 10.69 kB / 1.346 GB, free: 11.04 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008997/0.8785, allocations: 1.314 MB / 1.348 GB, free: 9.785 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.737e-05/0.8786, allocations: 0.6805 MB / 1.348 GB, free: 9.09 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.759e-05/0.8786, allocations: 7.578 kB / 1.348 GB, free: 9.086 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.8786, allocations: 20.05 kB / 1.348 GB, free: 9.074 MB / 1.061 GB Notification: Performance of SimCode: time 7.12e-07/0.8786, allocations: 0 / 1.348 GB, free: 9.074 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.8992, allocations: 1.699 MB / 1.35 GB, free: 8.699 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/9.032, allocations: 6.969 kB / 1.35 GB, free: 8.695 MB / 1.061 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 15.29644757101778]