Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, 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.001714/0.001714, allocations: 201.4 kB / 16.14 MB, free: 6.648 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.51/1.51, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.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.657/2.657, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.89 kB / 0.8686 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9377/0.939, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002348/0.9414, allocations: 1.335 MB / 1.018 GB, free: 1.438 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.9424, allocations: 0.6268 MB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.574e-05/0.9424, allocations: 0 / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.898e-05/0.9425, allocations: 3.984 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.184e-05/0.9425, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.943, allocations: 119.6 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.619e-05/0.9431, allocations: 19.92 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.9431, allocations: 3.984 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.54e-05/0.9432, allocations: 15.88 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.772e-05/0.9432, allocations: 7.984 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.9433, allocations: 0 / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004813/0.9437, allocations: 343.4 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.9438, allocations: 3.938 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.9438, allocations: 11.94 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.9441, allocations: 149.7 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.9441, allocations: 0 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9441, allocations: 0 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.9441, allocations: 0 / 1.019 GB, free: 148 kB / 0.7637 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.0004011/0.9445, allocations: 363.3 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.9445, allocations: 8.031 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.9446, allocations: 4.938 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.9447, allocations: 176.2 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.9447, allocations: 4.375 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.9447, allocations: 12.38 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.742e-05/0.9448, allocations: 38.25 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.9449, allocations: 192 / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.9449, allocations: 3.938 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.9449, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.767e-05/0.9449, allocations: 8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.9451, allocations: 161.7 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.9453, allocations: 50.55 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.635e-05/0.9453, allocations: 20.94 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.9453, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.9454, allocations: 30.56 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 2.355e-06/0.9454, allocations: 3.984 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006088/0.946, allocations: 306.2 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.9461, allocations: 51.41 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.004e-05/0.9461, allocations: 101.8 kB / 1.02 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.9462, allocations: 29.7 kB / 1.02 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.092e-05/0.9462, allocations: 80.14 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/0.9462, allocations: 19.66 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.9463, allocations: 21.7 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.9464, allocations: 322.8 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.51e-05/0.9465, allocations: 8 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.334e-05/0.9465, allocations: 11.98 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.942e-05/0.9465, allocations: 36.86 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.9466, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001177/0.9467, allocations: 69.81 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.9467, allocations: 9.188 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.9467, allocations: 0 / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.9467, allocations: 0 / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.332e-05/0.9468, allocations: 19.92 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.9468, allocations: 7.938 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.9468, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.9468, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 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.507e-05/0.9469, allocations: 118.4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.9469, allocations: 7.844 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.9471, allocations: 65.66 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.9471, allocations: 12.05 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.9471, allocations: 4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.9471, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.9474, allocations: 311.4 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.9475, allocations: 4.031 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.593e-05/0.9475, allocations: 15.94 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.9475, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.9475, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.9476, allocations: 7.984 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.9476, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.9477, allocations: 172.3 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.9478, allocations: 97.09 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.9478, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.268e-05/0.9479, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/0.9479, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.9479, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.897e-05/0.948, allocations: 87.27 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.633e-06/0.948, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002477/0.9483, allocations: 23.94 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001854/0.9484, allocations: 123.2 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001397/0.9486, allocations: 35.97 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.9486, allocations: 4 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.834e-05/0.9486, allocations: 15.94 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.9489, allocations: 15.92 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004085/0.9493, allocations: 199 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.9496, allocations: 0.6809 MB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.9496, allocations: 15.92 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.823e-05/0.9496, allocations: 11.44 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.9496, allocations: 0 / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of Templates: time 0.002721/0.9524, allocations: 0.6192 MB / 1.024 GB, free: 11.16 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches