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.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001774/0.001774, allocations: 188 kB / 16.13 MB, free: 6.645 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.413/1.413, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.902/2.902, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 65.42 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3899, allocations: 157.4 MB / 1.052 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00338/0.3933, allocations: 1.349 MB / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001589/0.3949, allocations: 0.6345 MB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.395, allocations: 0 / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.939e-05/0.395, allocations: 0 / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.23e-05/0.3952, allocations: 7.938 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.3962, allocations: 126.7 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.967e-05/0.3963, allocations: 19.92 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.069e-05/0.3964, allocations: 0 / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.3964, allocations: 11.92 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.3e-05/0.3965, allocations: 11.94 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.3965, allocations: 4 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007145/0.3973, allocations: 343.3 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.3973, allocations: 0 / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.916e-05/0.3973, allocations: 15.92 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.3978, allocations: 140 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3978, allocations: 0 / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3978, allocations: 8 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.3978, allocations: 0 / 1.055 GB, free: 6.203 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006441/0.3985, allocations: 367.3 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.3985, allocations: 8.031 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.231e-05/0.3986, allocations: 0.9375 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.3988, allocations: 168.3 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.3989, allocations: 4.359 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.3989, allocations: 384 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002041/0.3991, allocations: 46.19 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.3992, allocations: 4.188 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.3992, allocations: 3.938 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3992, allocations: 0 / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.294e-05/0.3993, allocations: 15.98 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.3997, allocations: 153.7 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003483/0.4001, allocations: 46.56 kB / 1.055 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.296e-05/0.4001, allocations: 12.86 kB / 1.055 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.513e-05/0.4002, allocations: 11.94 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.4002, allocations: 30.56 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.4003, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0009837/0.4013, allocations: 314.2 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.4013, allocations: 51.41 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.4014, allocations: 97.86 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.4014, allocations: 33.7 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.4015, allocations: 80.14 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.4015, allocations: 19.7 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.4016, allocations: 21.72 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4017, allocations: 318.8 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.611e-05/0.4017, allocations: 8 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.194e-05/0.4018, allocations: 8 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.829e-05/0.4018, allocations: 44.77 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.4019, allocations: 0 / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.879e-05/0.402, allocations: 61.7 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.402, allocations: 9.656 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.402, allocations: 7.922 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.402, allocations: 0 / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.401e-05/0.4021, allocations: 12 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.4021, allocations: 0 / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.4021, allocations: 0 / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.4021, allocations: 8 kB / 1.057 GB, free: 4.004 MB / 0.8106 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.164e-05/0.4022, allocations: 109.8 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.4022, allocations: 16.36 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.4024, allocations: 73.64 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4024, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4024, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.4024, allocations: 3.984 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003154/0.4027, allocations: 315.5 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4027, allocations: 4 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.057e-05/0.4028, allocations: 11.98 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4028, allocations: 4.031 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.4028, allocations: 4 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4028, allocations: 0 / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4028, allocations: 0 / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001837/0.403, allocations: 184.2 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.212e-05/0.4031, allocations: 85.05 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.4031, allocations: 0 / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.529e-05/0.4032, allocations: 12.06 kB / 1.057 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.4032, allocations: 3.984 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-06/0.4032, allocations: 4 kB / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.553e-05/0.4033, allocations: 75.28 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4033, allocations: 4 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002489/0.4035, allocations: 23.94 kB / 1.057 GB, free: 2.977 MB / 0.8106 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.0002457/0.4038, allocations: 127.2 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000134/0.4039, allocations: 36.17 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4039, allocations: 0 / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.153e-05/0.404, allocations: 19.98 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.4043, allocations: 6 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005253/0.4048, allocations: 221 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.4052, allocations: 0.677 MB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.561e-05/0.4052, allocations: 8.141 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.522e-05/0.4053, allocations: 15.44 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.4053, allocations: 4 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of Templates: time 0.003302/0.4086, allocations: 0.6202 MB / 1.059 GB, free: 1.223 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) 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/jenkins/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) Reference file matches