Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_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_9_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.001349/0.001349, allocations: 113.7 kB / 16.37 MB, free: 6.012 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.00133/0.00133, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.19 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.235/2.235, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 62.55 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2726, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002611/0.2753, allocations: 1.283 MB / 0.9524 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.2764, allocations: 0.617 MB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.675e-05/0.2764, allocations: 0 / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.2764, allocations: 4 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.056e-05/0.2765, allocations: 7.922 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005977/0.2771, allocations: 147.2 kB / 0.9531 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.755e-05/0.2772, allocations: 19.94 kB / 0.9532 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.673e-05/0.2772, allocations: 3.984 kB / 0.9532 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.805e-05/0.2773, allocations: 7.938 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.257e-05/0.2773, allocations: 15.92 kB / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.2774, allocations: 0 / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005087/0.2779, allocations: 343.3 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.2779, allocations: 4 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.562e-05/0.2779, allocations: 15.91 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.2782, allocations: 143.7 kB / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2782, allocations: 0 / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2782, allocations: 0 / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.2782, allocations: 3.938 kB / 0.9537 GB, free: 5.426 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004889/0.2787, allocations: 371.3 kB / 0.954 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2788, allocations: 8.031 kB / 0.954 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.2788, allocations: 4.938 kB / 0.954 GB, free: 5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.279, allocations: 168.3 kB / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2791, allocations: 384 / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.2791, allocations: 4.375 kB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.2792, allocations: 42.19 kB / 0.9542 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2792, allocations: 192 / 0.9542 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.2792, allocations: 3.938 kB / 0.9542 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2792, allocations: 4 kB / 0.9542 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.739e-05/0.2793, allocations: 11.98 kB / 0.9543 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001898/0.2795, allocations: 153.7 kB / 0.9544 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.2797, allocations: 50.5 kB / 0.9545 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.556e-05/0.2797, allocations: 16.86 kB / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.2798, allocations: 0 / 0.9545 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.2798, allocations: 38.55 kB / 0.9545 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.2798, allocations: 0 / 0.9545 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0007079/0.2805, allocations: 314.2 kB / 0.9548 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.2806, allocations: 55.41 kB / 0.9549 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.462e-05/0.2806, allocations: 97.86 kB / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.2807, allocations: 25.7 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.968e-05/0.2807, allocations: 80.14 kB / 0.9551 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.2808, allocations: 23.7 kB / 0.9551 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.2808, allocations: 17.72 kB / 0.9551 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2809, allocations: 314.8 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.747e-05/0.281, allocations: 16 kB / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.469e-05/0.281, allocations: 12 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.711e-05/0.2811, allocations: 36.92 kB / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.2811, allocations: 0 / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.928e-05/0.2812, allocations: 61.7 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.2812, allocations: 7.938 kB / 0.9555 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2812, allocations: 11.92 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2812, allocations: 0 / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.929e-05/0.2813, allocations: 8 kB / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2813, allocations: 64 / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.2813, allocations: 8 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.2813, allocations: 4 kB / 0.9555 GB, free: 3.223 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 (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.712e-05/0.2814, allocations: 119.7 kB / 0.9557 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.2814, allocations: 11.84 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.2816, allocations: 69.64 kB / 0.9557 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2816, allocations: 0 / 0.9557 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2816, allocations: 4 kB / 0.9557 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2816, allocations: 0 / 0.9557 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003059/0.2819, allocations: 323.3 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2819, allocations: 0 / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.129e-05/0.282, allocations: 11.98 kB / 0.9561 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.282, allocations: 4 kB / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.282, allocations: 0 / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.282, allocations: 0 / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.282, allocations: 0 / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001777/0.2822, allocations: 188.3 kB / 0.9562 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.2823, allocations: 81.02 kB / 0.9563 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.2823, allocations: 4.031 kB / 0.9563 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.146e-05/0.2824, allocations: 4 kB / 0.9563 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.2824, allocations: 7.984 kB / 0.9563 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/0.2824, allocations: 0 / 0.9563 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.541e-05/0.2824, allocations: 79.28 kB / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2825, allocations: 0 / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002439/0.2827, allocations: 27.94 kB / 0.9564 GB, free: 2.191 MB / 0.7325 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.0001938/0.2829, allocations: 121.1 kB / 0.9566 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001077/0.283, allocations: 32.12 kB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.283, allocations: 0 / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.101e-05/0.2831, allocations: 27.92 kB / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.2833, allocations: 9.562 kB / 0.9566 GB, free: 2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/0.2838, allocations: 196.8 kB / 0.9568 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.2841, allocations: 0.6844 MB / 0.9575 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.227e-05/0.2841, allocations: 8 kB / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.2841, allocations: 15.38 kB / 0.9575 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.2841, allocations: 0 / 0.9575 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of Templates: time 0.003173/0.2873, allocations: 0.6567 MB / 0.9581 GB, free: 432 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches