Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_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_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00135/0.00135, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.418/2.418, allocations: 390.2 MB / 0.6643 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 59.91 kB / 0.812 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7562/0.758, allocations: 140.4 MB / 0.9491 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002311/0.7604, allocations: 1.338 MB / 0.9504 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009064/0.7613, allocations: 0.605 MB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.7613, allocations: 0 / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.7614, allocations: 1.375 kB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.144e-05/0.7614, allocations: 11.91 kB / 0.951 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000519/0.762, allocations: 121 kB / 0.9511 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.4e-05/0.762, allocations: 21.55 kB / 0.9511 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.793e-05/0.7621, allocations: 5.375 kB / 0.9511 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.021e-05/0.7621, allocations: 12.11 kB / 0.9512 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.327e-05/0.7622, allocations: 10.67 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.7622, allocations: 1.375 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.7627, allocations: 346.3 kB / 0.9515 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.7627, allocations: 1.344 kB / 0.9515 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.7627, allocations: 10.81 kB / 0.9515 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.7629, allocations: 146.7 kB / 0.9517 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.763, allocations: 0 / 0.9517 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.763, allocations: 1.219 kB / 0.9517 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.763, allocations: 0 / 0.9517 GB, free: 7.328 MB / 0.7169 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.0003776/0.7634, allocations: 360.1 kB / 0.952 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.7634, allocations: 9.188 kB / 0.952 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.7634, allocations: 2.469 kB / 0.952 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.649e-05/0.7635, allocations: 169.7 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.7635, allocations: 1.688 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.7636, allocations: 1.75 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.967e-05/0.7637, allocations: 40.88 kB / 0.9522 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.7637, allocations: 4.172 kB / 0.9522 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.7637, allocations: 5 kB / 0.9522 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.7637, allocations: 4 kB / 0.9522 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.119e-05/0.7638, allocations: 14.62 kB / 0.9522 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.7639, allocations: 163.3 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.7641, allocations: 43.39 kB / 0.9524 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/0.7641, allocations: 23.75 kB / 0.9525 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.7642, allocations: 0.75 kB / 0.9525 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.7642, allocations: 39.62 kB / 0.9525 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.7642, allocations: 0.8438 kB / 0.9525 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005855/0.7648, allocations: 310.9 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.7648, allocations: 52.66 kB / 0.9528 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.239e-05/0.7649, allocations: 97.44 kB / 0.9529 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.7649, allocations: 26.89 kB / 0.953 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.904e-05/0.7649, allocations: 84.14 kB / 0.953 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.7649, allocations: 22.34 kB / 0.9531 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.765, allocations: 27.02 kB / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.765, allocations: 316.2 kB / 0.9534 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.692e-05/0.7651, allocations: 14.2 kB / 0.9534 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.054e-05/0.7651, allocations: 6.562 kB / 0.9534 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.269e-05/0.7651, allocations: 36.56 kB / 0.9534 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.7651, allocations: 0 / 0.9534 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.591e-05/0.7652, allocations: 68.45 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.7653, allocations: 13.25 kB / 0.9535 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.7653, allocations: 4.875 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.7653, allocations: 1.125 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.067e-05/0.7653, allocations: 12.67 kB / 0.9535 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.7654, allocations: 1.438 kB / 0.9535 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.857e-05/0.7654, allocations: 4 kB / 0.9535 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.7654, allocations: 2.688 kB / 0.9536 GB, free: 5.328 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.7655, allocations: 107.2 kB / 0.9537 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.7655, allocations: 6.625 kB / 0.9537 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001491/0.7656, allocations: 81.55 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.7656, allocations: 1.188 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.7656, allocations: 0 / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.7657, allocations: 1.922 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.7659, allocations: 315.3 kB / 0.954 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.7659, allocations: 1.281 kB / 0.954 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-05/0.766, allocations: 9.562 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.766, allocations: 1.156 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.766, allocations: 9.234 kB / 0.9541 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.766, allocations: 0.875 kB / 0.9541 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.766, allocations: 3.938 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.7662, allocations: 178.7 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.034e-05/0.7662, allocations: 86.48 kB / 0.9543 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.7662, allocations: 5.375 kB / 0.9543 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.7663, allocations: 2.219 kB / 0.9543 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.7663, allocations: 7 kB / 0.9543 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.7663, allocations: 9.359 kB / 0.9543 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.933e-05/0.7664, allocations: 78.03 kB / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7664, allocations: 0 / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002443/0.7666, allocations: 22.56 kB / 0.9544 GB, free: 4.426 MB / 0.7169 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 (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.0001703/0.7668, allocations: 121.7 kB / 0.9546 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000109/0.7669, allocations: 40.81 kB / 0.9546 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7669, allocations: 4 kB / 0.9546 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.596e-05/0.7669, allocations: 18.77 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.7672, allocations: 11.03 kB / 0.9546 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.7676, allocations: 202.8 kB / 0.9548 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.7677, allocations: 0.687 MB / 0.9555 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.174e-05/0.7677, allocations: 7.922 kB / 0.9555 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.7678, allocations: 10.31 kB / 0.9555 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7678, allocations: 0 / 0.9555 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of Templates: time 0.002853/0.7706, allocations: 0.6279 MB / 0.9561 GB, free: 3.09 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches