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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_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_10_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.001444/0.001444, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001793/0.001793, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.422/1.422, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.718/2.718, allocations: 437 MB / 0.7099 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 0.8685 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6475/0.6489, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002753/0.6517, allocations: 1.347 MB / 1.018 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.6527, allocations: 0.6268 MB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.6528, allocations: 0 / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.92e-05/0.6528, allocations: 0 / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.996e-05/0.6529, allocations: 11.91 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.6533, allocations: 111.6 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.342e-05/0.6534, allocations: 27.86 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.439e-05/0.6535, allocations: 4 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.414e-05/0.6535, allocations: 4 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.647e-05/0.6536, allocations: 19.91 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.6536, allocations: 0 / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004693/0.654, allocations: 343.3 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.6541, allocations: 3.984 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.997e-05/0.6541, allocations: 7.938 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002918/0.6544, allocations: 149.6 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6544, allocations: 0 / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6544, allocations: 0 / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.6544, allocations: 0 / 1.019 GB, free: 128 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.0004642/0.6549, allocations: 359.5 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.6549, allocations: 12.03 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.655, allocations: 8.938 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.6551, allocations: 172.2 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.6551, allocations: 8.359 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.6552, allocations: 384 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.6553, allocations: 46.19 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.6553, allocations: 192 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.6553, allocations: 3.938 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.6553, allocations: 7.938 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.748e-05/0.6554, allocations: 4 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002071/0.6556, allocations: 161.7 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.6558, allocations: 42.55 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.594e-05/0.6558, allocations: 20.94 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.6558, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.6559, allocations: 38.56 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.6559, allocations: 4 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006881/0.6566, allocations: 306.2 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.6566, allocations: 51.41 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.559e-05/0.6567, allocations: 101.8 kB / 1.02 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.6567, allocations: 25.7 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.6568, allocations: 80.14 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.6568, allocations: 27.66 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.6569, allocations: 21.7 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.657, allocations: 314.8 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.791e-05/0.657, allocations: 8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.337e-05/0.657, allocations: 19.92 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.681e-05/0.6571, allocations: 32.8 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.6571, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.5e-05/0.6572, allocations: 65.69 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.6572, allocations: 7.938 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.6572, allocations: 4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.6573, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.306e-05/0.6573, allocations: 8 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.6573, allocations: 7.984 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.6573, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.6574, allocations: 0 / 1.021 GB, free: 13.92 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 8.351e-05/0.6574, allocations: 118.3 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.439e-05/0.6575, allocations: 8.359 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.6576, allocations: 73.88 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.6576, allocations: 4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.6576, allocations: 3.984 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.6577, allocations: 7.922 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003235/0.658, allocations: 315.5 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.658, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.8e-05/0.6581, allocations: 16 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.6581, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.6581, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.6581, allocations: 4.031 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.6581, allocations: 7.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.6583, allocations: 180.3 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.6583, allocations: 89.03 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.6584, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.843e-05/0.6584, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.23e-05/0.6585, allocations: 8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.6585, allocations: 4.062 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.074e-05/0.6585, allocations: 83.27 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6585, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002431/0.6588, allocations: 20 kB / 1.022 GB, free: 12.89 MB / 0.7794 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.0001855/0.659, allocations: 123.2 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.662e-05/0.6591, allocations: 39.86 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6591, allocations: 4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.768e-05/0.6591, allocations: 15.94 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.6593, allocations: 13.97 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005123/0.6599, allocations: 205.5 kB / 1.022 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.6602, allocations: 0.6809 MB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.081e-05/0.6603, allocations: 4 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.054e-05/0.6603, allocations: 15.42 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.6603, allocations: 0 / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of Templates: time 0.002708/0.663, allocations: 0.6287 MB / 1.024 GB, free: 11.13 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (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 & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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) Reference file matches