Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.008474/0.008474, allocations: 102 kB / 15.73 MB, free: 6.039 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.002009/0.00201, allocations: 193 kB / 16.67 MB, free: 5.961 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.311/2.311, allocations: 390.3 MB / 0.6648 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 55.91 kB / 0.9504 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8455/0.8471, allocations: 140.4 MB / 1.087 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002378/0.8495, allocations: 1.472 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009704/0.8505, allocations: 0.6291 MB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.887e-05/0.8506, allocations: 4 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.04e-05/0.8506, allocations: 6.172 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.35e-05/0.8507, allocations: 5.203 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.8513, allocations: 166.7 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.8515, allocations: 48.84 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.921e-05/0.8515, allocations: 3.891 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.643e-05/0.8516, allocations: 33.5 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.483e-05/0.8516, allocations: 21.09 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.8517, allocations: 4.25 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005618/0.8522, allocations: 348.1 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.8523, allocations: 16.61 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.948e-05/0.8523, allocations: 26.28 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.8526, allocations: 180.3 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.8527, allocations: 1.312 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.303e-06/0.8527, allocations: 0 / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.8527, allocations: 0 / 1.09 GB, free: 3.445 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005318/0.8532, allocations: 397.7 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.8533, allocations: 9.844 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.148e-05/0.8533, allocations: 42.25 kB / 1.091 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.8533, allocations: 8.125 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.801e-05/0.8534, allocations: 168 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.8534, allocations: 11.56 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.8535, allocations: 9.062 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.8537, allocations: 79.94 kB / 1.091 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.8537, allocations: 5.562 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.8538, allocations: 1.219 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.8538, allocations: 1.344 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.854, allocations: 51.16 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.8545, allocations: 317.2 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.8549, allocations: 84.42 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.855, allocations: 31.97 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.855, allocations: 0.9062 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.88e-05/0.855, allocations: 36.14 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.8551, allocations: 0.9375 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001609/0.8567, allocations: 0.6481 MB / 1.092 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.8567, allocations: 56.84 kB / 1.092 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.509e-05/0.8568, allocations: 105.2 kB / 1.092 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.8568, allocations: 27.03 kB / 1.092 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/0.8568, allocations: 95.73 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.8569, allocations: 38.86 kB / 1.092 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.8569, allocations: 29.34 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.063e-05/0.857, allocations: 319.2 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.8571, allocations: 28.3 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.8573, allocations: 36.55 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.8575, allocations: 79.42 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.8575, allocations: 0 / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003262/0.8579, allocations: 115.6 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.8579, allocations: 5.125 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.8579, allocations: 4.734 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.8579, allocations: 5.219 kB / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.8581, allocations: 33.95 kB / 1.093 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.8581, allocations: 3.938 kB / 1.093 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.736e-05/0.8582, allocations: 6.078 kB / 1.093 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.8582, allocations: 7.594 kB / 1.093 GB, free: 1.012 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 (13): * Single equations (assignments): 13 * 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 6.062e-05/0.8583, allocations: 112.8 kB / 1.093 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.8583, allocations: 7.719 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003911/0.8587, allocations: 121.3 kB / 1.093 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.8587, allocations: 6.219 kB / 1.093 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.8587, allocations: 7.938 kB / 1.093 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.8587, allocations: 1.078 kB / 1.093 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005388/0.8593, allocations: 383.9 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.8593, allocations: 0 / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.8594, allocations: 25.77 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.8595, allocations: 8.75 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.8595, allocations: 5.406 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.8595, allocations: 0.875 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8595, allocations: 1.359 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.86, allocations: 247.9 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.101e-05/0.86, allocations: 82.94 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.86, allocations: 10.3 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.8602, allocations: 10.17 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.8602, allocations: 6.328 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.8602, allocations: 3.656 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.478e-05/0.8602, allocations: 83.81 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8603, allocations: 0 / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003366/0.8606, allocations: 43.94 kB / 1.094 GB, free: 96 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (11): * Single equations (assignments): 11 * 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.0009561/0.8616, allocations: 0.8208 MB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003634/0.8619, allocations: 84.25 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.862, allocations: 0.9375 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.8621, allocations: 42.48 kB / 1.095 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.8624, allocations: 16.47 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.8647, allocations: 1.597 MB / 1.097 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.8649, allocations: 0.6949 MB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.291e-05/0.865, allocations: 9.141 kB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.8651, allocations: 23.38 kB / 1.097 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of SimCode: time 8.12e-07/0.8651, allocations: 0 / 1.097 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.8862, allocations: 2.359 MB / 1.1 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/9.308, allocations: 14.59 kB / 1.1 GB, free: 12.84 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " Variables in the reference:time,dp,dp_comp,der(dp),der(dp_comp),err_dp,err_der_dp Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,der(der(m_flow)),der(der_dp),der(der_dp_comp),der(dp),der(dp_comp),der(m_flow),der_dp,der_dp_comp,dp,dp_comp,err_der_dp,err_dp,k,m_flow,m_flow_turbulent,time