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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009582/0.0009583, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.52/2.52, allocations: 436.5 MB / 0.7104 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 8 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6507/0.6511, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00159/0.6527, allocations: 1.169 MB / 1.022 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006356/0.6534, allocations: 339.2 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.857e-05/0.6534, allocations: 4 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2e-05/0.6535, allocations: 3.938 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.68e-05/0.6535, allocations: 4 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.654, allocations: 79.77 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.408e-05/0.6541, allocations: 31.95 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.6542, allocations: 3.984 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.081e-05/0.6542, allocations: 23.92 kB / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.817e-05/0.6543, allocations: 27.89 kB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.6543, allocations: 7.938 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.6546, allocations: 179.7 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.728e-05/0.6546, allocations: 11.94 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.827e-05/0.6547, allocations: 33.7 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.6548, allocations: 73.81 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.6548, allocations: 0 / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6548, allocations: 0 / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.6549, allocations: 0 / 1.023 GB, free: 15.09 MB / 0.7794 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.0005787/0.6554, allocations: 371.2 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.6555, allocations: 8.031 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.6555, allocations: 11.91 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.6557, allocations: 178.9 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.755e-05/0.6557, allocations: 8 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.6557, allocations: 4 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.656, allocations: 81.61 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.656, allocations: 0 / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.656, allocations: 7.938 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.656, allocations: 0 / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.6563, allocations: 59.95 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/0.6569, allocations: 332.6 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.6572, allocations: 90.53 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.6572, allocations: 0 / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.6572, allocations: 38.5 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.6572, allocations: 0 / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.00161/0.6589, allocations: 0.6697 MB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.6589, allocations: 55.41 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.14e-05/0.659, allocations: 101.8 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.659, allocations: 29.7 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/0.659, allocations: 91.98 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.152e-05/0.6591, allocations: 35.45 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.713e-06/0.6591, allocations: 4 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.224e-05/0.6592, allocations: 322.8 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.6593, allocations: 35.98 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.6595, allocations: 39.97 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.6596, allocations: 42.92 kB / 1.025 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.6596, allocations: 0 / 1.025 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003107/0.6599, allocations: 129.5 kB / 1.025 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.6599, allocations: 8 kB / 1.025 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.66, allocations: 0 / 1.025 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.66, allocations: 0 / 1.025 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.6601, allocations: 27.98 kB / 1.025 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.6602, allocations: 3.984 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.148e-05/0.6602, allocations: 15.98 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.6602, allocations: 4 kB / 1.025 GB, free: 12.02 MB / 0.7794 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 7.652e-05/0.6603, allocations: 121.7 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.6604, allocations: 7.906 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000392/0.6608, allocations: 137.6 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.6608, allocations: 192 / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6608, allocations: 0 / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.6608, allocations: 3.984 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005285/0.6613, allocations: 398.4 kB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.6613, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.6615, allocations: 31.98 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.6615, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.6615, allocations: 4 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6615, allocations: 0 / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6615, allocations: 3.938 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004889/0.662, allocations: 275.5 kB / 1.026 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.6621, allocations: 77.11 kB / 1.026 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.6621, allocations: 0 / 1.026 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.6622, allocations: 16.02 kB / 1.026 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.6623, allocations: 7.984 kB / 1.026 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.6623, allocations: 8.062 kB / 1.026 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.615e-05/0.6623, allocations: 79.28 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6623, allocations: 0 / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002775/0.6626, allocations: 43.89 kB / 1.027 GB, free: 10.73 MB / 0.7794 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.0001945/0.6628, allocations: 135.2 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000313/0.6631, allocations: 95.83 kB / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.6631, allocations: 0 / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.6633, allocations: 51.91 kB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.6635, allocations: 4 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006061/0.6641, allocations: 377.2 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.6643, allocations: 0.6926 MB / 1.028 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.698e-05/0.6644, allocations: 16.66 kB / 1.028 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.929e-05/0.6644, allocations: 15.44 kB / 1.028 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6644, allocations: 0 / 1.028 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of Templates: time 0.003188/0.6676, allocations: 1.06 MB / 1.029 GB, free: 8.266 MB / 0.7794 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