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.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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006953/0.006953, allocations: 98.09 kB / 15.73 MB, free: 6.051 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.001644/0.001644, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.39/2.39, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 62.72 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2112, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002046/0.2133, allocations: 1.262 MB / 1.089 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008617/0.2142, allocations: 0.6167 MB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.971e-05/0.2142, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.329e-05/0.2142, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.684e-05/0.2143, allocations: 7.922 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.2148, allocations: 147.4 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.774e-05/0.2148, allocations: 15.94 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.182e-05/0.2149, allocations: 4 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.043e-05/0.2149, allocations: 15.91 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.12e-05/0.215, allocations: 11.94 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.956e-06/0.215, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004254/0.2154, allocations: 339.3 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.2154, allocations: 7.984 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.774e-05/0.2154, allocations: 7.938 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.2157, allocations: 143.2 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.2157, allocations: 3.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2157, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.476e-06/0.2157, allocations: 0 / 1.09 GB, free: 15.41 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.0003344/0.216, allocations: 359.7 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2161, allocations: 19.95 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.2161, allocations: 34.75 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.2161, allocations: 4.844 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.621e-05/0.2162, allocations: 164.4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.2162, allocations: 4.375 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.2163, allocations: 384 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.963e-05/0.2164, allocations: 42.25 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.2164, allocations: 3.938 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.2164, allocations: 4 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2164, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.669e-05/0.2164, allocations: 19.92 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.2166, allocations: 153.7 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.2167, allocations: 54.55 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.813e-05/0.2168, allocations: 12.86 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2168, allocations: 7.984 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.2168, allocations: 30.56 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 9.71e-07/0.2168, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.000507/0.2173, allocations: 310.2 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.2174, allocations: 59.41 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.161e-05/0.2174, allocations: 93.86 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.2175, allocations: 29.7 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.412e-05/0.2175, allocations: 80.14 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.2175, allocations: 23.64 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.2176, allocations: 21.72 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.218e-05/0.2176, allocations: 314.8 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.371e-05/0.2177, allocations: 11.98 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.477e-05/0.2177, allocations: 15.98 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.163e-05/0.2178, allocations: 32.86 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2178, allocations: 3.984 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.208e-05/0.2179, allocations: 73.47 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.2179, allocations: 7.938 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-06/0.2179, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.2179, allocations: 7.984 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.685e-05/0.218, allocations: 8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.218, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.218, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-06/0.218, allocations: 12 kB / 1.092 GB, free: 13.14 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.752e-05/0.2181, allocations: 105.8 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.2181, allocations: 7.938 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.2182, allocations: 77.58 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2182, allocations: 3.938 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2182, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2182, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.2185, allocations: 323.5 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2185, allocations: 0 / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.878e-05/0.2186, allocations: 11.98 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2186, allocations: 0 / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.2186, allocations: 4 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2186, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2186, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.2188, allocations: 196.2 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.2188, allocations: 77.11 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2188, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.686e-05/0.2189, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.314e-05/0.2189, allocations: 3.984 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-06/0.2189, allocations: 4 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.821e-05/0.219, allocations: 79.8 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.219, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002331/0.2192, allocations: 20 kB / 1.093 GB, free: 12.12 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.0004035/0.2196, allocations: 0.7328 MB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.794e-05/0.2197, allocations: 31.98 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2197, allocations: 0 / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.598e-05/0.2198, allocations: 19.94 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.22, allocations: 13.53 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009923/0.221, allocations: 1.32 MB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.2212, allocations: 0.6846 MB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.021e-05/0.2212, allocations: 12.05 kB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.591e-05/0.2212, allocations: 19.47 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2212, allocations: 3.938 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.903/3.124, allocations: 1.595 MB / 1.097 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/14.95, allocations: 19.84 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > 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/jenkins1/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