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.007639/0.007639, allocations: 108.8 kB / 15.71 MB, free: 5.531 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.001656/0.001656, allocations: 196.5 kB / 16.65 MB, free: 5.473 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.37/1.37, allocations: 222.9 MB / 240.3 MB, free: 15.1 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.365/2.365, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 63.91 kB / 0.9509 GB, free: 7.625 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8356/0.837, allocations: 140.4 MB / 1.088 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00221/0.8393, allocations: 1.278 MB / 1.089 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001004/0.8403, allocations: 0.6188 MB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.366e-05/0.8403, allocations: 0 / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.138e-05/0.8403, allocations: 0 / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.022e-05/0.8404, allocations: 5.891 kB / 1.09 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000527/0.8409, allocations: 152.6 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.676e-05/0.841, allocations: 19.62 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.8411, allocations: 3.5 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.638e-05/0.8411, allocations: 5.484 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.415e-05/0.8412, allocations: 13.86 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.8412, allocations: 0 / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005504/0.8417, allocations: 346.2 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.8418, allocations: 2.109 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.633e-05/0.8418, allocations: 12.16 kB / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.8421, allocations: 151 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.8421, allocations: 4 kB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8421, allocations: 0 / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.8421, allocations: 0 / 1.091 GB, free: 3.902 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.0003652/0.8425, allocations: 356.4 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.8425, allocations: 9.312 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.8425, allocations: 10.58 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.854e-05/0.8426, allocations: 171.1 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.8426, allocations: 1.5 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.8427, allocations: 6.781 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.8428, allocations: 39.48 kB / 1.091 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.8428, allocations: 192 / 1.091 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.8428, allocations: 5.875 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.8428, allocations: 0 / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.49e-05/0.8429, allocations: 23.55 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.843, allocations: 155.4 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.8432, allocations: 48.3 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.148e-05/0.8433, allocations: 17.61 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.8433, allocations: 0.7188 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.8433, allocations: 32.8 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 2.074e-06/0.8433, allocations: 0 / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005514/0.8439, allocations: 308.8 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.8439, allocations: 53.58 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.245e-05/0.844, allocations: 103.8 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.844, allocations: 26.33 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.462e-05/0.844, allocations: 81.66 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.844, allocations: 26.94 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/0.8441, allocations: 20.23 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.331e-05/0.8441, allocations: 314 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.658e-05/0.8441, allocations: 11.72 kB / 1.092 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.349e-05/0.8442, allocations: 12.7 kB / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.613e-05/0.8442, allocations: 32.66 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.8442, allocations: 0.6875 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.158e-05/0.8443, allocations: 67.3 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.8444, allocations: 10.05 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.8444, allocations: 0.7188 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.8444, allocations: 0.5625 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.299e-05/0.8444, allocations: 11.94 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.8445, allocations: 0 / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.732e-05/0.8445, allocations: 0.6875 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.8445, allocations: 2.984 kB / 1.092 GB, free: 1.98 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 4.279e-05/0.8445, allocations: 115.4 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.8446, allocations: 14.8 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.8447, allocations: 80.75 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.8447, allocations: 1.469 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.8447, allocations: 0 / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.8447, allocations: 1.266 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.8449, allocations: 320.9 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.845, allocations: 4.688 kB / 1.093 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.845, allocations: 11.28 kB / 1.093 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.845, allocations: 4.906 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.845, allocations: 6.984 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.8451, allocations: 0.7188 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8451, allocations: 0.6875 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.8452, allocations: 180.4 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.8453, allocations: 88.89 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.8453, allocations: 2.422 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.228e-05/0.8454, allocations: 5.562 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.255e-05/0.8454, allocations: 4.281 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.8454, allocations: 2.312 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.01e-05/0.8454, allocations: 79.58 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8454, allocations: 0 / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002429/0.8457, allocations: 23.53 kB / 1.093 GB, free: 1.094 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.0001501/0.8458, allocations: 125.6 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001061/0.8459, allocations: 35.77 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.846, allocations: 0 / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.846, allocations: 17.19 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.8462, allocations: 8.719 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000349/0.8466, allocations: 191.1 kB / 1.094 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.739e-05/0.8467, allocations: 0.6799 MB / 1.094 GB, free: 116 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.867e-05/0.8467, allocations: 4.625 kB / 1.094 GB, free: 116 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.845e-05/0.8467, allocations: 15.3 kB / 1.094 GB, free: 104 kB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.8467, allocations: 0 / 1.094 GB, free: 104 kB / 0.8575 GB Notification: Performance of Templates: time 0.002846/0.8496, allocations: 0.6589 MB / 1.095 GB, free: 28 kB / 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