Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.322/2.322, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001173/0.001173, allocations: 178.9 kB / 0.4902 GB, free: 2.25 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.764/1.764, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001069/0.001068, allocations: 98.84 kB / 0.9396 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004499/0.0004499, allocations: 10.56 kB / 1.09 GB, free: 213.1 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.396, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2439/0.64, allocations: 150.9 MB / 1.377 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.6404, allocations: 75.95 kB / 1.377 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01267/0.6531, allocations: 4.055 MB / 1.381 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.817e-06/0.6532, allocations: 0 / 1.381 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.6532, allocations: 0 / 1.381 GB, free: 10.28 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005404/0.6538, allocations: 347.3 kB / 1.381 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.096e-05/0.6539, allocations: 12.5 kB / 1.381 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.27e-05/0.6539, allocations: 11.86 kB / 1.381 GB, free: 9.867 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.6541, allocations: 159.1 kB / 1.381 GB, free: 9.672 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.6542, allocations: 4 kB / 1.381 GB, free: 9.668 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.197e-05/0.6542, allocations: 4 kB / 1.381 GB, free: 9.664 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.6544, allocations: 45.62 kB / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.6544, allocations: 0 / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.6544, allocations: 4 kB / 1.381 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.6544, allocations: 0 / 1.381 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.893e-05/0.6545, allocations: 7.984 kB / 1.381 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002909/0.6548, allocations: 169.7 kB / 1.381 GB, free: 9.387 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.6551, allocations: 42.55 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.6551, allocations: 4 kB / 1.381 GB, free: 9.332 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.6552, allocations: 34.5 kB / 1.381 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.363e-06/0.6552, allocations: 0 / 1.381 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0009443/0.6561, allocations: 314.3 kB / 1.382 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.6562, allocations: 55.39 kB / 1.382 GB, free: 8.863 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.6563, allocations: 96.94 kB / 1.382 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.6563, allocations: 29.7 kB / 1.382 GB, free: 8.727 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.6564, allocations: 80.14 kB / 1.382 GB, free: 8.645 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.6564, allocations: 23.7 kB / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.388e-06/0.6565, allocations: 0 / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.6566, allocations: 314.8 kB / 1.382 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.074e-05/0.6566, allocations: 12 kB / 1.382 GB, free: 8.293 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/0.6567, allocations: 11.98 kB / 1.382 GB, free: 8.281 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.861e-05/0.6567, allocations: 12 kB / 1.382 GB, free: 8.27 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.6567, allocations: 0 / 1.382 GB, free: 8.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001196/0.6568, allocations: 73.62 kB / 1.382 GB, free: 8.191 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.6569, allocations: 4 kB / 1.382 GB, free: 8.188 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.6569, allocations: 0 / 1.382 GB, free: 8.188 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.6569, allocations: 0 / 1.382 GB, free: 8.188 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.025e-05/0.657, allocations: 12 kB / 1.382 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.657, allocations: 0 / 1.382 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.051e-05/0.657, allocations: 0 / 1.382 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.657, allocations: 0 / 1.382 GB, free: 8.176 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 (7): * Single equations (assignments): 7 * 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.0001264/0.6572, allocations: 117.8 kB / 1.382 GB, free: 8.051 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.6572, allocations: 11.83 kB / 1.382 GB, free: 8.039 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.6574, allocations: 77.59 kB / 1.383 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.6574, allocations: 0 / 1.383 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.6574, allocations: 0 / 1.383 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.6574, allocations: 0 / 1.383 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004418/0.6579, allocations: 315.4 kB / 1.383 GB, free: 7.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6579, allocations: 3.984 kB / 1.383 GB, free: 7.586 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.658, allocations: 12.19 kB / 1.383 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.658, allocations: 0 / 1.383 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.658, allocations: 12.03 kB / 1.383 GB, free: 7.562 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.658, allocations: 4 kB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.658, allocations: 0 / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.6583, allocations: 190 kB / 1.383 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.6583, allocations: 85.05 kB / 1.383 GB, free: 7.246 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.6584, allocations: 0 / 1.383 GB, free: 7.246 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.79e-05/0.6584, allocations: 8.047 kB / 1.383 GB, free: 7.238 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.6585, allocations: 11.95 kB / 1.383 GB, free: 7.227 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.6585, allocations: 0 / 1.383 GB, free: 7.227 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.705e-05/0.6586, allocations: 83.73 kB / 1.383 GB, free: 7.145 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6586, allocations: 0 / 1.383 GB, free: 7.145 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002946/0.6589, allocations: 31.92 kB / 1.383 GB, free: 7.113 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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 (6): * Single equations (assignments): 6 * 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.0003029/0.6592, allocations: 124 kB / 1.383 GB, free: 6.98 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001244/0.6593, allocations: 39.92 kB / 1.383 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6593, allocations: 0 / 1.383 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.981e-05/0.6594, allocations: 16 kB / 1.383 GB, free: 6.926 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.6595, allocations: 5.625 kB / 1.383 GB, free: 6.922 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005492/0.6601, allocations: 229.6 kB / 1.384 GB, free: 6.668 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.6604, allocations: 0.6809 MB / 1.384 GB, free: 5.961 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.121e-05/0.6605, allocations: 4.391 kB / 1.384 GB, free: 5.957 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.6605, allocations: 15.42 kB / 1.384 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of SimCode: time 8.91e-07/0.6605, allocations: 0 / 1.384 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of Templates: time 0.00346/0.664, allocations: 0.5724 MB / 1.385 GB, free: 5.402 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches