Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.375/2.375, allocations: 390.3 MB / 402.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 164.9 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.3 MB / 0.7915 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 95.89 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.707e-05/2.71e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2662, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9559/1.222, allocations: 151.6 MB / 1.367 GB, free: 2.43 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/1.223, allocations: 85.56 kB / 1.367 GB, free: 2.379 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01324/1.236, allocations: 4.319 MB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/1.236, allocations: 0 / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.206e-06/1.236, allocations: 0 / 1.371 GB, free: 14.71 MB / 0.8386 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.000494/1.236, allocations: 373.2 kB / 1.371 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/1.236, allocations: 12.03 kB / 1.371 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/1.236, allocations: 7.859 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/1.237, allocations: 167 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/1.237, allocations: 7.984 kB / 1.372 GB, free: 14.08 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/1.237, allocations: 7.125 kB / 1.372 GB, free: 14.08 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/1.237, allocations: 67.25 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/1.237, allocations: 0 / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/1.237, allocations: 0 / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/1.237, allocations: 8 kB / 1.372 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.758e-05/1.237, allocations: 37.73 kB / 1.372 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/1.238, allocations: 324.5 kB / 1.372 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/1.238, allocations: 72.12 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.48e-05/1.238, allocations: 19.86 kB / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/1.238, allocations: 0 / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/1.238, allocations: 38.52 kB / 1.372 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 9.11e-07/1.238, allocations: 0 / 1.372 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.001029/1.239, allocations: 0.5707 MB / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/1.239, allocations: 51.41 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/1.239, allocations: 100.6 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/1.239, allocations: 28.7 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/1.239, allocations: 88.03 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/1.239, allocations: 33.78 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-06/1.239, allocations: 4 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001239/1.239, allocations: 318 kB / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.247e-05/1.239, allocations: 26.69 kB / 1.373 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.801e-05/1.239, allocations: 18.38 kB / 1.373 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.932e-05/1.239, allocations: 27.67 kB / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/1.239, allocations: 0 / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001471/1.24, allocations: 107.8 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/1.24, allocations: 7.984 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/1.24, allocations: 0 / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/1.24, allocations: 3.938 kB / 1.374 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/1.24, allocations: 30.67 kB / 1.374 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/1.24, allocations: 4 kB / 1.374 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.794e-05/1.24, allocations: 8.094 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/1.24, allocations: 11.42 kB / 1.374 GB, free: 12.05 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.925e-05/1.24, allocations: 112 kB / 1.374 GB, free: 11.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/1.24, allocations: 15.86 kB / 1.374 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/1.24, allocations: 102.6 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/1.24, allocations: 0 / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/1.24, allocations: 4 kB / 1.374 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/1.24, allocations: 0 / 1.374 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/1.241, allocations: 372.9 kB / 1.374 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.241, allocations: 0 / 1.374 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/1.241, allocations: 27.86 kB / 1.374 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.241, allocations: 4 kB / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/1.241, allocations: 0 / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/1.241, allocations: 0 / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.241, allocations: 0 / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002498/1.241, allocations: 232.8 kB / 1.374 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/1.241, allocations: 85.09 kB / 1.374 GB, free: 11.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/1.241, allocations: 0 / 1.374 GB, free: 11.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/1.241, allocations: 6.688 kB / 1.374 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.298e-05/1.241, allocations: 7.984 kB / 1.375 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/1.241, allocations: 4 kB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.444e-05/1.241, allocations: 87.03 kB / 1.375 GB, free: 11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.241, allocations: 0 / 1.375 GB, free: 11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002444/1.242, allocations: 47.05 kB / 1.375 GB, free: 10.96 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002257/1.242, allocations: 139.1 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001434/1.242, allocations: 59.12 kB / 1.375 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.242, allocations: 3.25 kB / 1.375 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.096e-05/1.242, allocations: 39.3 kB / 1.375 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/1.242, allocations: 17.52 kB / 1.375 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/1.243, allocations: 247.5 kB / 1.375 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/1.243, allocations: 0.6965 MB / 1.376 GB, free: 9.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.869e-05/1.243, allocations: 12.66 kB / 1.376 GB, free: 9.738 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/1.243, allocations: 11.44 kB / 1.376 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.243, allocations: 0 / 1.376 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of Templates: time 0.003386/1.247, allocations: 1.032 MB / 1.377 GB, free: 8.738 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches