Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00938/0.00938, allocations: 114.3 kB / 15.71 MB, free: 6.047 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.00161/0.00161, allocations: 190.7 kB / 16.64 MB, free: 5.98 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.371/1.371, allocations: 222.9 MB / 240.3 MB, free: 15.15 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.343/2.343, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 67.89 kB / 0.9509 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9162/0.9186, allocations: 140.4 MB / 1.088 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00196/0.9206, allocations: 1.271 MB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008718/0.9215, allocations: 0.6174 MB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.468e-05/0.9215, allocations: 0 / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.9216, allocations: 5.734 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.552e-05/0.9216, allocations: 4.5 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004983/0.9221, allocations: 148.9 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.77e-05/0.9222, allocations: 19.45 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.9222, allocations: 2.984 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.9222, allocations: 5.609 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.814e-05/0.9223, allocations: 13.08 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.9223, allocations: 0.9688 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005278/0.9228, allocations: 345.2 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.9229, allocations: 6.109 kB / 1.09 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.9229, allocations: 12.53 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.9231, allocations: 145.5 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.9232, allocations: 0 / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.903e-06/0.9232, allocations: 0 / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.9232, allocations: 1.828 kB / 1.091 GB, free: 3.914 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.0003168/0.9235, allocations: 355.3 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.9235, allocations: 8.969 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.9236, allocations: 10.47 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.244e-05/0.9236, allocations: 171.9 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.9237, allocations: 1.375 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.9237, allocations: 1.406 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.577e-05/0.9238, allocations: 41.3 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.9238, allocations: 192 / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.9238, allocations: 4.844 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.9238, allocations: 0.6094 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.81e-05/0.9239, allocations: 16.05 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.924, allocations: 155.1 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.9242, allocations: 52.05 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.037e-05/0.9242, allocations: 17.48 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.9242, allocations: 1.5 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.9243, allocations: 36.16 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.9243, allocations: 0 / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005278/0.9248, allocations: 313.8 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.9248, allocations: 52.12 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.066e-05/0.9249, allocations: 103.5 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.9249, allocations: 26.52 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.327e-05/0.9249, allocations: 80.86 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.9249, allocations: 24.92 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.925, allocations: 19.94 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.657e-05/0.925, allocations: 313.4 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.676e-05/0.925, allocations: 15.48 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.23e-05/0.9251, allocations: 12.28 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.085e-05/0.9251, allocations: 33.02 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.9252, allocations: 0.75 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000131/0.9253, allocations: 67.58 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.9253, allocations: 12.28 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.9253, allocations: 0.7812 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.9253, allocations: 0 / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.744e-05/0.9254, allocations: 12.14 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.9254, allocations: 0.8906 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.359e-05/0.9255, allocations: 4 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.9255, allocations: 6.875 kB / 1.092 GB, free: 1.984 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 5.181e-05/0.9255, allocations: 112 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.9256, allocations: 10.89 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.9257, allocations: 72.34 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.9257, allocations: 1.312 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.9257, allocations: 0 / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.9258, allocations: 1.891 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.9261, allocations: 324 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.9261, allocations: 1.828 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.108e-05/0.9261, allocations: 10.97 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.9261, allocations: 0.7188 kB / 1.093 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.9262, allocations: 5.469 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.9262, allocations: 5.109 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9262, allocations: 0.7188 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.9263, allocations: 184.3 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.104e-05/0.9264, allocations: 86.33 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.9264, allocations: 1.609 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.923e-05/0.9265, allocations: 5.594 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.9265, allocations: 4.734 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.9265, allocations: 2.344 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.026e-05/0.9265, allocations: 82.84 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9265, allocations: 0.9062 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002424/0.9268, allocations: 27.83 kB / 1.093 GB, free: 1.105 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0001494/0.9269, allocations: 121.2 kB / 1.093 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.906e-05/0.927, allocations: 35.59 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.927, allocations: 0 / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.654e-05/0.9271, allocations: 17.66 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.9273, allocations: 8.953 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003257/0.9276, allocations: 186.2 kB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.85e-05/0.9277, allocations: 0.6807 MB / 1.094 GB, free: 136 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.783e-05/0.9277, allocations: 8.703 kB / 1.094 GB, free: 132 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.648e-05/0.9278, allocations: 10.8 kB / 1.094 GB, free: 124 kB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.9278, allocations: 3.938 kB / 1.094 GB, free: 120 kB / 0.8575 GB Notification: Performance of Templates: time 0.002814/0.9306, allocations: 0.6373 MB / 1.095 GB, free: 44 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches