Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 107.6 kB / 16.36 MB, free: 5.824 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.002109/0.002109, allocations: 187.6 kB / 17.29 MB, free: 5.48 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 68.92 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2451, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002718/0.2479, allocations: 1.286 MB / 0.9524 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2489, allocations: 0.6131 MB / 0.953 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.61e-05/0.249, allocations: 0 / 0.953 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.249, allocations: 0 / 0.953 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.131e-05/0.2491, allocations: 11.92 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.2497, allocations: 147.4 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.416e-05/0.2498, allocations: 27.91 kB / 0.9532 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.785e-05/0.2498, allocations: 4 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.144e-05/0.2499, allocations: 19.92 kB / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.316e-05/0.2499, allocations: 11.94 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.2499, allocations: 0 / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005367/0.2505, allocations: 347.3 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.853e-05/0.2505, allocations: 7.984 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.2505, allocations: 11.94 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.2508, allocations: 159.5 kB / 0.9537 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2509, allocations: 0 / 0.9537 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2509, allocations: 4 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.2509, allocations: 0 / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004107/0.2513, allocations: 367.3 kB / 0.954 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2513, allocations: 12.03 kB / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.762e-05/0.2514, allocations: 0.9375 kB / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.2515, allocations: 164.4 kB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.2515, allocations: 8.312 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.2516, allocations: 8.281 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.2517, allocations: 58.23 kB / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2517, allocations: 4.172 kB / 0.9543 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2517, allocations: 3.938 kB / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.2517, allocations: 4 kB / 0.9543 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.59e-05/0.2518, allocations: 19.98 kB / 0.9543 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.252, allocations: 169.6 kB / 0.9545 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.2521, allocations: 58.5 kB / 0.9545 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.639e-05/0.2522, allocations: 32.78 kB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.2522, allocations: 4 kB / 0.9546 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.2522, allocations: 34.56 kB / 0.9546 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.2523, allocations: 0 / 0.9546 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001197/0.2535, allocations: 0.5802 MB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.2535, allocations: 51.41 kB / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.002e-05/0.2536, allocations: 101.8 kB / 0.9553 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2536, allocations: 33.64 kB / 0.9553 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.2537, allocations: 84.14 kB / 0.9554 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.381e-05/0.2537, allocations: 35.41 kB / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.2538, allocations: 29.7 kB / 0.9555 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2539, allocations: 314.8 kB / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.168e-05/0.2539, allocations: 19.98 kB / 0.9558 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.254, allocations: 24.08 kB / 0.9558 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.2541, allocations: 67.73 kB / 0.9559 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.2541, allocations: 0 / 0.9559 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001428/0.2543, allocations: 105.5 kB / 0.956 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2543, allocations: 5.875 kB / 0.956 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.2543, allocations: 0 / 0.956 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2543, allocations: 4 kB / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.2544, allocations: 23.92 kB / 0.956 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2544, allocations: 0 / 0.956 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.591e-05/0.2545, allocations: 4 kB / 0.956 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.2545, allocations: 4 kB / 0.956 GB, free: 2.707 MB / 0.7325 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 7.767e-05/0.2546, allocations: 119.8 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.2546, allocations: 11.84 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.2548, allocations: 101.6 kB / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2548, allocations: 0 / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2548, allocations: 7.922 kB / 0.9563 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2548, allocations: 4 kB / 0.9563 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.2552, allocations: 350.5 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.2552, allocations: 4 kB / 0.9566 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.2553, allocations: 20 kB / 0.9566 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2553, allocations: 4 kB / 0.9566 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.2553, allocations: 3.938 kB / 0.9566 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2553, allocations: 3.984 kB / 0.9566 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2553, allocations: 0 / 0.9566 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.2556, allocations: 219.3 kB / 0.9568 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.2556, allocations: 77.11 kB / 0.9569 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.2557, allocations: 12.02 kB / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.2558, allocations: 4.062 kB / 0.9569 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.2558, allocations: 7.984 kB / 0.9569 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.2558, allocations: 4 kB / 0.9569 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.286e-05/0.2558, allocations: 79.28 kB / 0.957 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2558, allocations: 0 / 0.957 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002653/0.2561, allocations: 31.98 kB / 0.9571 GB, free: 1.555 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0002156/0.2563, allocations: 139.1 kB / 0.9572 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.2565, allocations: 67.94 kB / 0.9572 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2565, allocations: 4 kB / 0.9573 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.099e-05/0.2566, allocations: 35.92 kB / 0.9573 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.2568, allocations: 11.94 kB / 0.9573 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005079/0.2573, allocations: 280.9 kB / 0.9576 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.2575, allocations: 0.6922 MB / 0.9582 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.083e-05/0.2576, allocations: 11.98 kB / 0.9583 GB, free: 268 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.546e-05/0.2576, allocations: 11.44 kB / 0.9583 GB, free: 256 kB / 0.7325 GB Notification: Performance of SimCode: time 4.31e-07/0.2576, allocations: 0 / 0.9583 GB, free: 256 kB / 0.7325 GB Notification: Performance of Templates: time 0.003568/0.2612, allocations: 0.9418 MB / 0.9592 GB, free: 15.34 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time