Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.001139/0.001139, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008301/0.008301, allocations: 173.9 kB / 16.27 MB, free: 6.652 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.375/1.375, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.63/2.63, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 14.69 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 159.6 MB / 1.059 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001482/0.2577, allocations: 1.202 MB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.2588, allocations: 0.6423 MB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.2588, allocations: 0 / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.137e-05/0.2589, allocations: 7.922 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.163e-05/0.2589, allocations: 0 / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.2594, allocations: 143.5 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.868e-05/0.2595, allocations: 39.91 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.318e-05/0.2595, allocations: 4 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.061e-05/0.2596, allocations: 31.91 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.218e-05/0.2597, allocations: 19.86 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.2597, allocations: 4 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.2602, allocations: 351.3 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.937e-05/0.2602, allocations: 11.98 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.424e-05/0.2602, allocations: 57.55 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.2605, allocations: 167.8 kB / 1.061 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2605, allocations: 4 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2605, allocations: 4 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.2605, allocations: 0 / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005353/0.2611, allocations: 387.4 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.2611, allocations: 12.03 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.2612, allocations: 34.75 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.2612, allocations: 4.938 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.2613, allocations: 184.2 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.2614, allocations: 4.375 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.2614, allocations: 8.375 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.2616, allocations: 84.72 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2617, allocations: 3.938 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.2617, allocations: 0 / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.2617, allocations: 4 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.262, allocations: 55.95 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.2625, allocations: 340.5 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000293/0.2628, allocations: 86.53 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2629, allocations: 32.84 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.263, allocations: 4 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.263, allocations: 34.5 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.263, allocations: 0 / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001657/0.2647, allocations: 0.6736 MB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.2647, allocations: 59.33 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.741e-05/0.2648, allocations: 101.8 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2648, allocations: 29.7 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.2649, allocations: 96.03 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.359e-05/0.2649, allocations: 35.45 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.2649, allocations: 21.7 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.95e-05/0.265, allocations: 314.8 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2652, allocations: 39.97 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.2653, allocations: 35.98 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.2656, allocations: 76.83 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.2656, allocations: 0 / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003307/0.2659, allocations: 133.6 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.266, allocations: 11.94 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.266, allocations: 3.984 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.266, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.2662, allocations: 27.98 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2662, allocations: 3.938 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.027e-05/0.2662, allocations: 4 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2663, allocations: 12 kB / 1.064 GB, free: 14.93 MB / 0.8262 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 8.417e-05/0.2664, allocations: 121.8 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.2664, allocations: 3.906 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003896/0.2668, allocations: 137.5 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.2668, allocations: 4.188 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.2668, allocations: 7.938 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2668, allocations: 3.984 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005542/0.2674, allocations: 386.5 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2674, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.2676, allocations: 31.98 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2676, allocations: 7.875 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2676, allocations: 7.984 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2676, allocations: 0 / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2676, allocations: 0 / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.2681, allocations: 271.6 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.491e-05/0.2682, allocations: 85.05 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.2682, allocations: 3.938 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.2683, allocations: 8 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.2684, allocations: 7.984 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.2684, allocations: 4 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.777e-05/0.2684, allocations: 87.33 kB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.643e-06/0.2684, allocations: 0 / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002708/0.2687, allocations: 39.94 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0008421/0.2695, allocations: 0.8295 MB / 1.066 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003195/0.2699, allocations: 91.83 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2699, allocations: 4.062 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.27, allocations: 51.91 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.2704, allocations: 8 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.2724, allocations: 1.678 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.2726, allocations: 0.6926 MB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.122e-05/0.2727, allocations: 16.66 kB / 1.069 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.2727, allocations: 19.44 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2727, allocations: 0 / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01136/0.2841, allocations: 2.1 MB / 1.071 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/0.2843, allocations: 250.8 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.907, allocations: 2.531 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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,der(dp),der(dp_comp),err_dp,err_der_dp Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,der(der(m_flow)),der(der_dp),der(der_dp_comp),der(dp),der(dp_comp),der(m_flow),der_dp,der_dp_comp,dp,dp_comp,err_der_dp,err_dp,k,m_flow,m_flow_turbulent,time