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.001546/0.001546, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001867/0.001867, allocations: 188.3 kB / 16.25 MB, free: 6.633 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.304/1.304, allocations: 222.9 MB / 239.9 MB, free: 4.496 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.319/2.319, allocations: 390.3 MB / 0.6644 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 71.88 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5455/0.5468, allocations: 140.4 MB / 0.9492 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002225/0.5491, allocations: 1.524 MB / 0.9507 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008214/0.5499, allocations: 0.6324 MB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.55, allocations: 1.062 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.172e-05/0.55, allocations: 3.938 kB / 0.9514 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.861e-05/0.5501, allocations: 5.031 kB / 0.9514 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.5505, allocations: 148.4 kB / 0.9515 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.686e-05/0.5506, allocations: 45.48 kB / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.5507, allocations: 4.031 kB / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.903e-05/0.5507, allocations: 24.44 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.088e-05/0.5508, allocations: 29.19 kB / 0.9516 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.5508, allocations: 2.656 kB / 0.9516 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003938/0.5512, allocations: 349.1 kB / 0.9519 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.409e-05/0.5512, allocations: 10.41 kB / 0.9519 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.5512, allocations: 32.22 kB / 0.952 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.5515, allocations: 177.1 kB / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.5515, allocations: 0 / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/0.5515, allocations: 0 / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.5515, allocations: 5.188 kB / 0.9521 GB, free: 6.914 MB / 0.7169 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.0004823/0.552, allocations: 395.4 kB / 0.9525 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.552, allocations: 9.562 kB / 0.9525 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.81e-05/0.5521, allocations: 40.27 kB / 0.9526 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.5521, allocations: 7.906 kB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.943e-05/0.5522, allocations: 178.9 kB / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.5522, allocations: 2.906 kB / 0.9528 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.5522, allocations: 12.88 kB / 0.9528 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.5524, allocations: 75.38 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.5525, allocations: 3.938 kB / 0.9528 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.5525, allocations: 9.578 kB / 0.9528 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.5525, allocations: 1.75 kB / 0.9529 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.5527, allocations: 44.03 kB / 0.9529 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.5532, allocations: 328.6 kB / 0.9532 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.5534, allocations: 76.56 kB / 0.9533 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.5536, allocations: 39.44 kB / 0.9533 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.5536, allocations: 0 / 0.9533 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.5536, allocations: 32.66 kB / 0.9533 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.5536, allocations: 0 / 0.9533 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001457/0.5551, allocations: 0.6518 MB / 0.954 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.788e-05/0.5551, allocations: 52.94 kB / 0.954 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.388e-05/0.5552, allocations: 106.5 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.5552, allocations: 30.89 kB / 0.9542 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.322e-05/0.5552, allocations: 90.48 kB / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.5552, allocations: 44.03 kB / 0.9543 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.5553, allocations: 30.02 kB / 0.9543 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.727e-05/0.5553, allocations: 317.3 kB / 0.9546 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.5555, allocations: 37.47 kB / 0.9547 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.5556, allocations: 30.95 kB / 0.9547 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.5558, allocations: 82.95 kB / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.5558, allocations: 0 / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003082/0.5562, allocations: 111.1 kB / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.5562, allocations: 4.969 kB / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.5562, allocations: 1.406 kB / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.5562, allocations: 0 / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.5563, allocations: 29.41 kB / 0.9549 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.5564, allocations: 3.938 kB / 0.9549 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.5564, allocations: 12.09 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.5564, allocations: 2.75 kB / 0.9549 GB, free: 4.297 MB / 0.7169 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 5.226e-05/0.5565, allocations: 117.5 kB / 0.955 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.5565, allocations: 6.656 kB / 0.955 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003463/0.5569, allocations: 126.9 kB / 0.9552 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.5569, allocations: 1.406 kB / 0.9552 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.5569, allocations: 5.125 kB / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5569, allocations: 4 kB / 0.9552 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004563/0.5574, allocations: 382.3 kB / 0.9555 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5574, allocations: 0 / 0.9555 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.5575, allocations: 23.45 kB / 0.9556 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.5575, allocations: 4.875 kB / 0.9556 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.5576, allocations: 4.938 kB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.5576, allocations: 0.9688 kB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.5576, allocations: 4 kB / 0.9556 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004347/0.558, allocations: 257.9 kB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.558, allocations: 85 kB / 0.9559 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.5581, allocations: 7.469 kB / 0.9559 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.5582, allocations: 3.5 kB / 0.9559 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.5582, allocations: 11.61 kB / 0.9559 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.5582, allocations: 7.5 kB / 0.9559 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.883e-05/0.5582, allocations: 79.12 kB / 0.956 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5583, allocations: 0 / 0.956 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002613/0.5585, allocations: 40.39 kB / 0.956 GB, free: 3.297 MB / 0.7169 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.0006509/0.5592, allocations: 0.8212 MB / 0.9568 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003063/0.5595, allocations: 83.64 kB / 0.9569 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5595, allocations: 1.219 kB / 0.9569 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.5596, allocations: 43.88 kB / 0.957 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.5599, allocations: 12.62 kB / 0.957 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.5615, allocations: 1.611 MB / 0.9586 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.829e-05/0.5617, allocations: 0.6988 MB / 0.9592 GB, free: 340 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.843e-05/0.5617, allocations: 15.12 kB / 0.9593 GB, free: 328 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.5618, allocations: 21.62 kB / 0.9593 GB, free: 316 kB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.5618, allocations: 0 / 0.9593 GB, free: 316 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3497/0.9114, allocations: 2.227 MB / 0.9614 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000261/0.9117, allocations: 253 kB / 0.9617 GB, free: 15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.702, allocations: 3.234 kB / 0.9617 GB, free: 15 MB / 0.7325 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