Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.007396/0.007396, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.00216/0.00216, allocations: 195.3 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.21/1.21, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.178/2.178, allocations: 437.1 MB / 0.7105 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 67.83 kB / 1.018 GB, free: 9.859 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5873/0.589, allocations: 151.6 MB / 1.166 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001928/0.5909, allocations: 1.276 MB / 1.167 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.5919, allocations: 0.6135 MB / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.44e-05/0.5919, allocations: 0 / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.467e-05/0.5919, allocations: 3.938 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.52e-05/0.592, allocations: 3.984 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.5924, allocations: 148.8 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.5925, allocations: 15.94 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.028e-05/0.5925, allocations: 3.984 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.5925, allocations: 7.938 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.149e-05/0.5926, allocations: 15.98 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.5926, allocations: 4 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004783/0.5931, allocations: 339.3 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.5931, allocations: 7.922 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.5931, allocations: 11.98 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.5934, allocations: 143.2 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5934, allocations: 4 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5934, allocations: 0 / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.5934, allocations: 0 / 1.169 GB, free: 1.137 MB / 0.8887 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.0003762/0.5938, allocations: 371 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.5938, allocations: 8.031 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.5938, allocations: 30.75 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.13e-05/0.5939, allocations: 8.875 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.594, allocations: 168.3 kB / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.594, allocations: 384 / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.594, allocations: 8.375 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.954e-05/0.5941, allocations: 34.25 kB / 1.169 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.5941, allocations: 7.938 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.5941, allocations: 0 / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.5941, allocations: 4 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.509e-05/0.5942, allocations: 11.98 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.5943, allocations: 161.7 kB / 1.169 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.5945, allocations: 46.5 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.025e-05/0.5945, allocations: 16.86 kB / 1.17 GB, free: 116 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.5946, allocations: 0 / 1.17 GB, free: 116 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.5946, allocations: 38.56 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.5946, allocations: 0 / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.000545/0.5952, allocations: 318.7 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.5952, allocations: 51.41 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.058e-05/0.5953, allocations: 93.86 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.5953, allocations: 29.7 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.5953, allocations: 80.14 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/0.5954, allocations: 27.78 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.5954, allocations: 17.72 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.5955, allocations: 318.8 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.293e-05/0.5956, allocations: 12 kB / 1.17 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.002e-05/0.5956, allocations: 11.94 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.481e-05/0.5956, allocations: 40.98 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.5957, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.089e-05/0.5957, allocations: 65.58 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.5958, allocations: 11.98 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.5958, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/0.5958, allocations: 0 / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.77e-05/0.5958, allocations: 12 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.5959, allocations: 7.938 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.5959, allocations: 3.938 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.5959, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 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 7.425e-05/0.596, allocations: 116 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.596, allocations: 3.938 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.5961, allocations: 69.64 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.5961, allocations: 8 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.5961, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.5961, allocations: 3.938 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.5964, allocations: 311.5 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.5964, allocations: 4 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.5965, allocations: 15.98 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5965, allocations: 0 / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-06/0.5965, allocations: 0 / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.5965, allocations: 3.938 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5965, allocations: 8.031 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001726/0.5967, allocations: 180.3 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.5968, allocations: 85.14 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.5968, allocations: 0 / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.284e-05/0.5968, allocations: 3.984 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.225e-05/0.5969, allocations: 4 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.5969, allocations: 4.062 kB / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.7e-05/0.5969, allocations: 83.28 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5969, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002126/0.5971, allocations: 19.94 kB / 1.172 GB, free: 13.85 MB / 0.9044 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.0004956/0.5976, allocations: 0.7467 MB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 8.622e-05/0.5977, allocations: 31.92 kB / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5977, allocations: 0 / 1.172 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.733e-05/0.5978, allocations: 19.98 kB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.598, allocations: 4 kB / 1.172 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.5991, allocations: 1.327 MB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.5993, allocations: 0.6845 MB / 1.174 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.569e-05/0.5994, allocations: 8.547 kB / 1.174 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.5994, allocations: 15.44 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of SimCode: time 2.6e-07/0.5994, allocations: 4 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.382/1.981, allocations: 1.607 MB / 1.176 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.395/10.38, allocations: 8.453 kB / 1.176 GB, free: 9.445 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches