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.0009381/0.0009382, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006944/0.006945, allocations: 171.4 kB / 16.27 MB, free: 6.652 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.69/1.69, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.855/2.855, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000564/0.000564, allocations: 8 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8007/0.8013, allocations: 153.8 MB / 1.023 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001412/0.8027, allocations: 1.008 MB / 1.024 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.8038, allocations: 0.6113 MB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.998e-05/0.8038, allocations: 0 / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.8038, allocations: 3.984 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.023e-05/0.8039, allocations: 3.938 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006085/0.8045, allocations: 119.2 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.973e-05/0.8046, allocations: 23.91 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.074e-05/0.8046, allocations: 4 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.443e-05/0.8047, allocations: 11.94 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.588e-05/0.8047, allocations: 7.984 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.8047, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004944/0.8052, allocations: 347.3 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.8053, allocations: 3.938 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.709e-05/0.8053, allocations: 33.7 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.8056, allocations: 153.7 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.8056, allocations: 0 / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8056, allocations: 0 / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.8056, allocations: 4 kB / 1.025 GB, free: 13.64 MB / 0.7794 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.0003807/0.806, allocations: 359.4 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.806, allocations: 8.031 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.8061, allocations: 0.9375 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.8062, allocations: 172.3 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.8062, allocations: 4.312 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.8062, allocations: 4.359 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.826e-05/0.8063, allocations: 46.19 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.8064, allocations: 192 / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.8064, allocations: 7.938 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.8064, allocations: 0 / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.401e-05/0.8064, allocations: 12 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.8066, allocations: 157.6 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.8068, allocations: 42.61 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.685e-05/0.8069, allocations: 20.88 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.8069, allocations: 4 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.8069, allocations: 42.56 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 9.91e-07/0.8069, allocations: 0 / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005896/0.8075, allocations: 302.2 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.8076, allocations: 51.41 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.233e-05/0.8076, allocations: 101.8 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.8077, allocations: 29.7 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.949e-05/0.8077, allocations: 84.14 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.8077, allocations: 19.66 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.8078, allocations: 17.7 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.8079, allocations: 314.8 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.62e-05/0.8079, allocations: 12 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.869e-05/0.8079, allocations: 7.984 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.867e-05/0.808, allocations: 40.78 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-07/0.808, allocations: 0 / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000126/0.8081, allocations: 61.69 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.8082, allocations: 11.94 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.8082, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.8082, allocations: 4 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.015e-05/0.8082, allocations: 8.062 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.8083, allocations: 4 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.947e-05/0.8083, allocations: 7.938 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.8083, allocations: 7.984 kB / 1.027 GB, free: 11.45 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 6.652e-05/0.8084, allocations: 110.3 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.8084, allocations: 8.453 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001323/0.8085, allocations: 77.59 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.8085, allocations: 0 / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.8085, allocations: 0 / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.8085, allocations: 3.984 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.8089, allocations: 323.2 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8089, allocations: 0 / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.992e-05/0.8089, allocations: 8 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.809, allocations: 4 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.809, allocations: 0 / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.809, allocations: 4.031 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.809, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.8092, allocations: 184.3 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.8092, allocations: 81.09 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.8092, allocations: 8 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.8093, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.8093, allocations: 4.062 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.8093, allocations: 4 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.527e-05/0.8094, allocations: 83.27 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8094, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002435/0.8096, allocations: 20 kB / 1.028 GB, free: 10.43 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.0001756/0.8098, allocations: 127.2 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001003/0.8099, allocations: 36.11 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8099, allocations: 0 / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.815e-05/0.81, allocations: 24 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.8102, allocations: 11.88 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/0.8106, allocations: 233.7 kB / 1.028 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.8108, allocations: 0.6809 MB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.952e-05/0.8109, allocations: 4.391 kB / 1.029 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.948e-05/0.8109, allocations: 11.44 kB / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.8109, allocations: 0 / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of Templates: time 0.002939/0.8138, allocations: 0.6333 MB / 1.03 GB, free: 8.645 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