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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.004926/0.004926, allocations: 104.2 kB / 15.73 MB, free: 5.992 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.001177/0.001177, allocations: 198.5 kB / 16.68 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.624/2.624, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 63.91 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8635/0.865, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003161/0.8682, allocations: 1.478 MB / 1.209 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.8694, allocations: 0.6305 MB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.625e-05/0.8695, allocations: 0 / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.958e-05/0.8695, allocations: 7.875 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.02e-05/0.8696, allocations: 3.938 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007565/0.8704, allocations: 167.4 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.8705, allocations: 51.84 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.393e-05/0.8706, allocations: 4 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.618e-05/0.8707, allocations: 23.91 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.403e-05/0.8707, allocations: 27.91 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.8708, allocations: 4 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005711/0.8713, allocations: 347.3 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.8714, allocations: 11.94 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.8714, allocations: 27.91 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.8718, allocations: 177.2 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.8718, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8718, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.8718, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 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.0006659/0.8725, allocations: 399.3 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.8726, allocations: 11.97 kB / 1.211 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.8726, allocations: 8.844 kB / 1.211 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.8727, allocations: 176.2 kB / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.8728, allocations: 4.375 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.8728, allocations: 12.38 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.8731, allocations: 74.22 kB / 1.211 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.8731, allocations: 4.172 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.8731, allocations: 3.938 kB / 1.211 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.8731, allocations: 4 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.8734, allocations: 55.89 kB / 1.211 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005875/0.874, allocations: 320.7 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.8743, allocations: 78.47 kB / 1.212 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.8744, allocations: 32.84 kB / 1.212 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.8744, allocations: 0 / 1.212 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.8745, allocations: 34.56 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 8.11e-07/0.8745, allocations: 0 / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001789/0.8763, allocations: 0.6462 MB / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.8763, allocations: 51.41 kB / 1.212 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.424e-05/0.8764, allocations: 109.8 kB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.8764, allocations: 25.7 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.019e-05/0.8765, allocations: 91.98 kB / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.8765, allocations: 39.44 kB / 1.213 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.8766, allocations: 33.7 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8767, allocations: 322.8 kB / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.8769, allocations: 31.98 kB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.877, allocations: 31.34 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.8773, allocations: 76.77 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.8773, allocations: 0 / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003296/0.8776, allocations: 117.6 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.8776, allocations: 8 kB / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.8776, allocations: 0 / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.8777, allocations: 0 / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.8778, allocations: 23.98 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.8778, allocations: 96 / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.865e-05/0.8779, allocations: 19.8 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.8779, allocations: 15.94 kB / 1.213 GB, free: 7.539 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.8781, allocations: 115.4 kB / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.8781, allocations: 8 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004103/0.8785, allocations: 121.6 kB / 1.214 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.8785, allocations: 3.984 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.8785, allocations: 4 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.8786, allocations: 3.938 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005826/0.8791, allocations: 378.4 kB / 1.214 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.8792, allocations: 4 kB / 1.214 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.8793, allocations: 27.97 kB / 1.214 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.8793, allocations: 4.188 kB / 1.214 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.8794, allocations: 7.938 kB / 1.214 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.8794, allocations: 0 / 1.214 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8794, allocations: 3.938 kB / 1.214 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.8799, allocations: 259.7 kB / 1.214 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.8799, allocations: 85.05 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.88, allocations: 3.938 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.8801, allocations: 7.984 kB / 1.214 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.8801, allocations: 4 kB / 1.214 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.8801, allocations: 11.98 kB / 1.214 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.851e-05/0.8802, allocations: 79.28 kB / 1.214 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8802, allocations: 0 / 1.214 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002899/0.8805, allocations: 35.94 kB / 1.214 GB, free: 6.281 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002378/0.8807, allocations: 143.2 kB / 1.215 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003366/0.8811, allocations: 79.95 kB / 1.215 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.8811, allocations: 0 / 1.215 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.8812, allocations: 47.91 kB / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.8816, allocations: 8 kB / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006952/0.8823, allocations: 321.5 kB / 1.215 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.8825, allocations: 0.6923 MB / 1.216 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.04e-05/0.8826, allocations: 20.64 kB / 1.216 GB, free: 4.922 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.8826, allocations: 19.44 kB / 1.216 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.8826, allocations: 0 / 1.216 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of Templates: time 0.004319/0.887, allocations: 1.155 MB / 1.217 GB, free: 3.789 MB / 0.9356 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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