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.001556/0.001556, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002255/0.002255, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.467/2.467, allocations: 390.2 MB / 0.6646 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 59.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7168/0.7183, allocations: 140.4 MB / 0.9496 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002976/0.7213, allocations: 1.275 MB / 0.9508 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009562/0.7223, allocations: 0.6125 MB / 0.9514 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.897e-05/0.7224, allocations: 0 / 0.9514 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.292e-05/0.7224, allocations: 3.938 kB / 0.9514 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.985e-05/0.7225, allocations: 1.469 kB / 0.9514 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000655/0.7232, allocations: 164 kB / 0.9516 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.388e-05/0.7232, allocations: 17.64 kB / 0.9516 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.226e-05/0.7233, allocations: 5.188 kB / 0.9516 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.08e-05/0.7233, allocations: 4.938 kB / 0.9516 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.941e-05/0.7234, allocations: 10.73 kB / 0.9516 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.7234, allocations: 1.312 kB / 0.9516 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005559/0.724, allocations: 346.7 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.724, allocations: 5 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.518e-05/0.724, allocations: 7.031 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.7244, allocations: 154.9 kB / 0.9521 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7244, allocations: 1.219 kB / 0.9521 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7244, allocations: 4 kB / 0.9521 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.7244, allocations: 0 / 0.9521 GB, free: 7.113 MB / 0.7169 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.0003875/0.7248, allocations: 355 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.7248, allocations: 9.5 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.085e-05/0.7249, allocations: 7.375 kB / 0.9525 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.206e-05/0.725, allocations: 169.1 kB / 0.9526 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.725, allocations: 5.875 kB / 0.9526 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.725, allocations: 1.938 kB / 0.9526 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.7251, allocations: 40.91 kB / 0.9527 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.7251, allocations: 4.188 kB / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.7252, allocations: 3.938 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.7252, allocations: 2.031 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.205e-05/0.7252, allocations: 9.094 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.7254, allocations: 166.8 kB / 0.9529 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.7256, allocations: 39.42 kB / 0.9529 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.404e-05/0.7256, allocations: 21.09 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.7256, allocations: 4 kB / 0.9529 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/0.7256, allocations: 32.69 kB / 0.953 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.7257, allocations: 3.938 kB / 0.953 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005964/0.7263, allocations: 307.6 kB / 0.9532 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.7263, allocations: 51.41 kB / 0.9533 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.805e-05/0.7264, allocations: 98.89 kB / 0.9534 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.7264, allocations: 33.7 kB / 0.9534 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.938e-05/0.7264, allocations: 85.47 kB / 0.9535 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.7264, allocations: 22.31 kB / 0.9535 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.7265, allocations: 22.14 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.375e-05/0.7265, allocations: 311.8 kB / 0.9538 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.528e-05/0.7265, allocations: 10.25 kB / 0.9539 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.22e-05/0.7266, allocations: 15.14 kB / 0.9539 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.937e-05/0.7266, allocations: 32.62 kB / 0.9539 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.7266, allocations: 4 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.307e-05/0.7267, allocations: 69.41 kB / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.7268, allocations: 9.469 kB / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.7268, allocations: 1.312 kB / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.7268, allocations: 0 / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.519e-05/0.7269, allocations: 17.53 kB / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.7269, allocations: 1.219 kB / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.7269, allocations: 0 / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.7269, allocations: 2.281 kB / 0.954 GB, free: 5.129 MB / 0.7169 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 5.346e-05/0.727, allocations: 115.1 kB / 0.9541 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.727, allocations: 6.5 kB / 0.9541 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.7271, allocations: 70.75 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.7271, allocations: 5.547 kB / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7271, allocations: 0 / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.7271, allocations: 0 / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.7274, allocations: 324.1 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.7274, allocations: 0 / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.7275, allocations: 13.94 kB / 0.9545 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.7275, allocations: 1.094 kB / 0.9545 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.7275, allocations: 5.031 kB / 0.9545 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.7275, allocations: 5.172 kB / 0.9545 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7275, allocations: 4.844 kB / 0.9545 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.7277, allocations: 174.5 kB / 0.9547 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.7277, allocations: 90.31 kB / 0.9548 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.7277, allocations: 6.625 kB / 0.9548 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-05/0.7278, allocations: 1.125 kB / 0.9548 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.7278, allocations: 2.594 kB / 0.9548 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.7278, allocations: 1.281 kB / 0.9548 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.467e-05/0.7279, allocations: 85.8 kB / 0.9549 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7279, allocations: 0 / 0.9549 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002676/0.7281, allocations: 19.09 kB / 0.9549 GB, free: 4.223 MB / 0.7169 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.000159/0.7283, allocations: 125.4 kB / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001022/0.7284, allocations: 41.02 kB / 0.9551 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.7284, allocations: 0 / 0.9551 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.481e-05/0.7285, allocations: 10.91 kB / 0.9551 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.7287, allocations: 14.8 kB / 0.9551 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003863/0.7291, allocations: 195.4 kB / 0.9553 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.7292, allocations: 0.6848 MB / 0.9559 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.031e-05/0.7292, allocations: 6.391 kB / 0.9559 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.7293, allocations: 14.53 kB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of SimCode: time 7.82e-07/0.7293, allocations: 1.625 kB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of Templates: time 0.002941/0.7322, allocations: 0.6491 MB / 0.9566 GB, free: 2.883 MB / 0.7169 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