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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.659/2.659, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.00121/0.001209, allocations: 173.1 kB / 498.1 MB, free: 5.75 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.571/1.571, allocations: 223.2 MB / 0.7949 GB, free: 17.88 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.0009293/0.0009292, allocations: 106 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005617, allocations: 9.344 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3756, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.577, allocations: 150.9 MB / 1.37 GB, free: 11.19 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.5773, allocations: 83.89 kB / 1.37 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01324/0.5906, allocations: 4.319 MB / 1.374 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.757e-06/0.5907, allocations: 0 / 1.374 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.5907, allocations: 0 / 1.374 GB, free: 6.777 MB / 0.8698 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.0006577/0.5914, allocations: 383.1 kB / 1.375 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.342e-05/0.5915, allocations: 12.03 kB / 1.375 GB, free: 6.344 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.5915, allocations: 11.86 kB / 1.375 GB, free: 6.332 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.5918, allocations: 167 kB / 1.375 GB, free: 6.129 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.5919, allocations: 7.938 kB / 1.375 GB, free: 6.121 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.5919, allocations: 8 kB / 1.375 GB, free: 6.113 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.5922, allocations: 81.66 kB / 1.375 GB, free: 6.027 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.5922, allocations: 3.984 kB / 1.375 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.5923, allocations: 0 / 1.375 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.5923, allocations: 4 kB / 1.375 GB, free: 6.02 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.5925, allocations: 55.97 kB / 1.375 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006582/0.5932, allocations: 332.6 kB / 1.376 GB, free: 5.59 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.5935, allocations: 90.52 kB / 1.376 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.5935, allocations: 3.938 kB / 1.376 GB, free: 5.488 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.5936, allocations: 38.56 kB / 1.376 GB, free: 5.441 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.5936, allocations: 0 / 1.376 GB, free: 5.441 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.001903/0.5955, allocations: 0.6734 MB / 1.376 GB, free: 4.676 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.5956, allocations: 51.41 kB / 1.376 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.036e-05/0.5956, allocations: 93 kB / 1.376 GB, free: 4.516 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.5957, allocations: 29.7 kB / 1.376 GB, free: 4.48 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.417e-05/0.5958, allocations: 95.97 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.5958, allocations: 43.44 kB / 1.377 GB, free: 4.34 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.5958, allocations: 0 / 1.377 GB, free: 4.34 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.596, allocations: 318.8 kB / 1.377 GB, free: 4.02 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.5961, allocations: 35.97 kB / 1.377 GB, free: 3.984 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.5963, allocations: 35.48 kB / 1.377 GB, free: 3.953 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.5964, allocations: 39.98 kB / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.5964, allocations: 0 / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003171/0.5967, allocations: 121.6 kB / 1.377 GB, free: 3.789 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.5968, allocations: 11.95 kB / 1.377 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.5968, allocations: 3.938 kB / 1.377 GB, free: 3.773 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.5968, allocations: 4 kB / 1.377 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.597, allocations: 31.98 kB / 1.377 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.597, allocations: 3.984 kB / 1.377 GB, free: 3.734 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.597, allocations: 4 kB / 1.377 GB, free: 3.73 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.5971, allocations: 8 kB / 1.377 GB, free: 3.723 MB / 0.8698 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 9.452e-05/0.5972, allocations: 121.8 kB / 1.377 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.5972, allocations: 0 / 1.377 GB, free: 3.594 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003749/0.5976, allocations: 153.6 kB / 1.377 GB, free: 3.438 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5976, allocations: 0 / 1.377 GB, free: 3.438 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5976, allocations: 0 / 1.377 GB, free: 3.438 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.5976, allocations: 0 / 1.377 GB, free: 3.438 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005955/0.5982, allocations: 398.3 kB / 1.378 GB, free: 2.992 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.5982, allocations: 3.953 kB / 1.378 GB, free: 2.988 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.5984, allocations: 23.98 kB / 1.378 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5984, allocations: 0 / 1.378 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.5984, allocations: 4 kB / 1.378 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.5984, allocations: 0 / 1.378 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5984, allocations: 0 / 1.378 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.5989, allocations: 263.4 kB / 1.378 GB, free: 2.688 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.599, allocations: 84.97 kB / 1.378 GB, free: 2.586 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.599, allocations: 16.08 kB / 1.378 GB, free: 2.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.5991, allocations: 4 kB / 1.378 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.368e-05/0.5992, allocations: 7.984 kB / 1.378 GB, free: 2.559 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.5992, allocations: 8 kB / 1.378 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.5992, allocations: 83.45 kB / 1.378 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5992, allocations: 0 / 1.378 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000301/0.5996, allocations: 47.92 kB / 1.378 GB, free: 2.422 MB / 0.8698 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.0002678/0.5998, allocations: 138.9 kB / 1.378 GB, free: 2.273 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000334/0.6002, allocations: 99.81 kB / 1.379 GB, free: 2.176 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6002, allocations: 0 / 1.379 GB, free: 2.176 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.6003, allocations: 47.92 kB / 1.379 GB, free: 2.129 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.6006, allocations: 18.22 kB / 1.379 GB, free: 2.113 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000718/0.6013, allocations: 365.4 kB / 1.379 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.6016, allocations: 0.7004 MB / 1.38 GB, free: 1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.503e-05/0.6017, allocations: 4.672 kB / 1.38 GB, free: 0.9922 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.6017, allocations: 23.44 kB / 1.38 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of SimCode: time 2.91e-07/0.6017, allocations: 3.938 kB / 1.38 GB, free: 0.9688 MB / 0.8698 GB Notification: Performance of Templates: time 0.003572/0.6053, allocations: 1.023 MB / 1.381 GB, free: 15.98 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (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 & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches