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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.008537/0.008537, allocations: 108.3 kB / 15.74 MB, free: 6.441 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.001607/0.001607, allocations: 194.2 kB / 16.67 MB, free: 6.355 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.5/2.5, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 66.45 kB / 0.9508 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2808, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002246/0.2831, allocations: 1.276 MB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2843, allocations: 0.6128 MB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.04e-05/0.2843, allocations: 4 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.955e-05/0.2843, allocations: 7.922 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.737e-05/0.2844, allocations: 3.984 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005749/0.285, allocations: 145.4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.058e-05/0.2851, allocations: 19.92 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.834e-05/0.2851, allocations: 7.938 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.946e-05/0.2851, allocations: 11.92 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.89e-05/0.2852, allocations: 11.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.2852, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.2857, allocations: 339.4 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.2857, allocations: 11.97 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.347e-05/0.2858, allocations: 7.938 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.286, allocations: 139.7 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.286, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.286, allocations: 4 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.2861, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 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.0004645/0.2865, allocations: 363.4 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.2866, allocations: 8.031 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.2866, allocations: 8.844 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2867, allocations: 168.3 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.2867, allocations: 4.375 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.2868, allocations: 384 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.2869, allocations: 46.19 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.2869, allocations: 192 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.2869, allocations: 3.938 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2869, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.308e-05/0.287, allocations: 15.97 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.2872, allocations: 161.7 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.2874, allocations: 46.5 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.124e-05/0.2874, allocations: 12.86 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.2874, allocations: 7.984 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.2875, allocations: 34.64 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.2875, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.000605/0.2881, allocations: 314.2 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.2881, allocations: 51.41 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.209e-05/0.2882, allocations: 97.84 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.2882, allocations: 33.7 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.2883, allocations: 80.14 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.2883, allocations: 15.72 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.2883, allocations: 21.72 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.2885, allocations: 318.8 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.633e-05/0.2885, allocations: 15.94 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.959e-05/0.2885, allocations: 8 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.68e-05/0.2886, allocations: 32.84 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.2886, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.793e-05/0.2887, allocations: 69.67 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2887, allocations: 11.88 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.2887, allocations: 0 / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2887, allocations: 4.062 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.363e-05/0.2888, allocations: 15.94 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2888, allocations: 4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.2888, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.2888, allocations: 4 kB / 1.092 GB, free: 12.69 MB / 0.8575 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 9.944e-05/0.2889, allocations: 113.8 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.289, allocations: 11.84 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.2891, allocations: 73.53 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2891, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2891, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2891, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.2895, allocations: 323.3 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2895, allocations: 0 / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.223e-05/0.2895, allocations: 8 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2895, allocations: 3.938 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.2896, allocations: 4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2896, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2896, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.2897, allocations: 184.9 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.2898, allocations: 85.02 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.2898, allocations: 3.984 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.989e-05/0.2899, allocations: 4 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.262e-05/0.2899, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.2899, allocations: 4.188 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.044e-05/0.29, allocations: 87.27 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.29, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002457/0.2902, allocations: 24.05 kB / 1.093 GB, free: 11.66 MB / 0.8575 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.0001881/0.2904, allocations: 127.2 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001079/0.2905, allocations: 35.98 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2905, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.857e-05/0.2906, allocations: 19.94 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.2908, allocations: 12.95 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003834/0.2912, allocations: 188.3 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2915, allocations: 0.6845 MB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.813e-05/0.2915, allocations: 8.391 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.864e-05/0.2916, allocations: 11.44 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.2916, allocations: 0 / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of Templates: time 0.002942/0.2945, allocations: 0.6632 MB / 1.095 GB, free: 9.895 MB / 0.8575 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 -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/jenkins/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