Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008852/0.008852, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00188/0.001881, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.608/2.608, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.91 kB / 1.018 GB, free: 9.957 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.934/0.9354, allocations: 151.6 MB / 1.166 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.0025/0.938, allocations: 1.288 MB / 1.167 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.9391, allocations: 0.6134 MB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.203e-05/0.9391, allocations: 0 / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.106e-05/0.9392, allocations: 0 / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.254e-05/0.9392, allocations: 3.938 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006356/0.9399, allocations: 157 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.696e-05/0.94, allocations: 11.94 kB / 1.168 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.94, allocations: 4 kB / 1.168 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.738e-05/0.9401, allocations: 15.92 kB / 1.168 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.353e-05/0.9401, allocations: 7.984 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.9401, allocations: 4 kB / 1.168 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005332/0.9407, allocations: 339.3 kB / 1.169 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.492e-05/0.9407, allocations: 4 kB / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.9407, allocations: 11.92 kB / 1.169 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.941, allocations: 153.9 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.941, allocations: 0 / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9411, allocations: 0 / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.9411, allocations: 0 / 1.169 GB, free: 1.23 MB / 0.8887 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.0004777/0.9415, allocations: 359.4 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.9416, allocations: 12.02 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.9417, allocations: 38.75 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.9417, allocations: 0.9375 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.9418, allocations: 164.3 kB / 1.169 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.9418, allocations: 4.375 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.9419, allocations: 8.25 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.942, allocations: 42.25 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.942, allocations: 3.938 kB / 1.169 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.942, allocations: 7.938 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.942, allocations: 0 / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.244e-05/0.9421, allocations: 15.98 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001758/0.9422, allocations: 153.7 kB / 1.169 GB, free: 292 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.9425, allocations: 42.5 kB / 1.17 GB, free: 240 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.656e-05/0.9425, allocations: 16.86 kB / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.9425, allocations: 0 / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.9426, allocations: 46.56 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.9426, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.000739/0.9433, allocations: 314.5 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.9434, allocations: 51.41 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.858e-05/0.9434, allocations: 97.86 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.9435, allocations: 25.7 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/0.9435, allocations: 80.14 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.9435, allocations: 27.73 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.9436, allocations: 17.72 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.9437, allocations: 318.8 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.731e-05/0.9437, allocations: 8 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.653e-05/0.9438, allocations: 15.98 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.029e-05/0.9438, allocations: 36.78 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.9439, allocations: 0 / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001041/0.944, allocations: 69.55 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.944, allocations: 8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.944, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.944, allocations: 3.984 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.723e-05/0.9441, allocations: 12 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.9441, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.9441, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.9441, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 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 7.751e-05/0.9442, allocations: 117.8 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.9442, allocations: 3.938 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.9444, allocations: 77.64 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.9444, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.9444, allocations: 7.875 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.9444, allocations: 0 / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.9447, allocations: 315.3 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.9448, allocations: 0 / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.46e-05/0.9448, allocations: 19.98 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.9448, allocations: 0 / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.9448, allocations: 0 / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.9449, allocations: 8.219 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.9449, allocations: 3.938 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.9451, allocations: 184.2 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.9451, allocations: 81.14 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.9451, allocations: 0 / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.914e-05/0.9452, allocations: 0 / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.859e-05/0.9452, allocations: 11.98 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.9452, allocations: 8.062 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.25e-05/0.9453, allocations: 75.28 kB / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9453, allocations: 0 / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002508/0.9456, allocations: 20 kB / 1.171 GB, free: 13.95 MB / 0.9044 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.0005017/0.9461, allocations: 0.7404 MB / 1.172 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001179/0.9462, allocations: 39.92 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.9462, allocations: 0 / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.789e-05/0.9462, allocations: 16 kB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.9465, allocations: 7.984 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.9477, allocations: 1.323 MB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.948, allocations: 0.6807 MB / 1.174 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.275e-05/0.948, allocations: 16.39 kB / 1.174 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.9481, allocations: 11.44 kB / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of SimCode: time 3.31e-07/0.9481, allocations: 0 / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.9688, allocations: 1.626 MB / 1.176 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/9.025, allocations: 8.391 kB / 1.176 GB, free: 9.531 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " Variables in the reference:time,dp,dp_comp Variables in the result:der(dp),der(dp_comp),der(m_flow),dp,dp_comp,err,k,m_flow,m_flow_turbulent,time