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.501/2.501, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001323/0.001323, allocations: 183.9 kB / 0.4902 GB, free: 2.301 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.797/1.797, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.001153/0.001153, allocations: 100.2 kB / 0.9396 GB, free: 1.801 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004433/0.0004433, allocations: 14.28 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3666, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.208/0.5747, allocations: 151.7 MB / 1.377 GB, free: 1.82 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.575, allocations: 87.92 kB / 1.377 GB, free: 1.734 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01309/0.5881, allocations: 4.306 MB / 1.382 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.884e-06/0.5881, allocations: 0 / 1.382 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.5882, allocations: 4 kB / 1.382 GB, free: 13.42 MB / 0.8855 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.000555/0.5887, allocations: 379 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.5888, allocations: 12.52 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.5888, allocations: 11.95 kB / 1.382 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.589, allocations: 167.1 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.241e-05/0.5891, allocations: 4 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.5891, allocations: 15.89 kB / 1.382 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.5894, allocations: 85.59 kB / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.5894, allocations: 0 / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.5894, allocations: 0 / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.5894, allocations: 3.938 kB / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.5896, allocations: 59.95 kB / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000629/0.5903, allocations: 332.7 kB / 1.383 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.5906, allocations: 86.47 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.5906, allocations: 0 / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.5907, allocations: 34.56 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.5907, allocations: 0 / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.001808/0.5925, allocations: 0.6813 MB / 1.383 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.5926, allocations: 55.41 kB / 1.383 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.109e-05/0.5927, allocations: 92.98 kB / 1.384 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.5927, allocations: 29.7 kB / 1.384 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.356e-05/0.5928, allocations: 84.14 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.354e-05/0.5928, allocations: 51.28 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.5928, allocations: 0 / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.593, allocations: 318.8 kB / 1.384 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.5932, allocations: 35.97 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.5933, allocations: 35.98 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.5934, allocations: 34.36 kB / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.5934, allocations: 0 / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003325/0.5938, allocations: 125.8 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.5938, allocations: 7.953 kB / 1.384 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.5938, allocations: 4 kB / 1.384 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.5938, allocations: 3.984 kB / 1.384 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.594, allocations: 31.92 kB / 1.384 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.594, allocations: 8 kB / 1.384 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.084e-05/0.5941, allocations: 4 kB / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.5941, allocations: 8 kB / 1.384 GB, free: 10.36 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.5942, allocations: 113.8 kB / 1.384 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.5943, allocations: 11.84 kB / 1.384 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/0.5947, allocations: 141.5 kB / 1.385 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.5947, allocations: 8 kB / 1.385 GB, free: 10.08 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5947, allocations: 0 / 1.385 GB, free: 10.08 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.5947, allocations: 0 / 1.385 GB, free: 10.08 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005798/0.5953, allocations: 386.5 kB / 1.385 GB, free: 9.645 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.5953, allocations: 7.953 kB / 1.385 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.5955, allocations: 31.92 kB / 1.385 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5955, allocations: 0 / 1.385 GB, free: 9.605 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.5955, allocations: 4 kB / 1.385 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.329e-06/0.5955, allocations: 3.984 kB / 1.385 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5955, allocations: 0 / 1.385 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.5961, allocations: 267.6 kB / 1.385 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.5961, allocations: 84.97 kB / 1.385 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.5962, allocations: 0 / 1.385 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.5963, allocations: 12.03 kB / 1.385 GB, free: 9.207 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.5963, allocations: 7.984 kB / 1.385 GB, free: 9.199 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.5963, allocations: 4 kB / 1.385 GB, free: 9.195 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.303e-05/0.5964, allocations: 87.33 kB / 1.385 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5964, allocations: 0 / 1.385 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002978/0.5967, allocations: 43.94 kB / 1.385 GB, free: 9.066 MB / 0.8855 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 (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.0002444/0.5969, allocations: 139.9 kB / 1.386 GB, free: 8.918 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003201/0.5973, allocations: 91.95 kB / 1.386 GB, free: 8.828 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5973, allocations: 0 / 1.386 GB, free: 8.828 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.5974, allocations: 55.84 kB / 1.386 GB, free: 8.773 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.5976, allocations: 11.94 kB / 1.386 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007414/0.5984, allocations: 369.5 kB / 1.386 GB, free: 8.367 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.5987, allocations: 0.6965 MB / 1.387 GB, free: 7.645 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.491e-05/0.5988, allocations: 16.61 kB / 1.387 GB, free: 7.629 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.571e-05/0.5988, allocations: 15.42 kB / 1.387 GB, free: 7.613 MB / 0.8855 GB Notification: Performance of SimCode: time 4.11e-07/0.5989, allocations: 4 kB / 1.387 GB, free: 7.609 MB / 0.8855 GB Notification: Performance of Templates: time 0.003609/0.6025, allocations: 1.011 MB / 1.388 GB, free: 6.633 MB / 0.8855 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