Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001742, 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.002331/0.002331, allocations: 189.5 kB / 16.25 MB, free: 6.645 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.362/2.362, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6893/0.6907, allocations: 140.4 MB / 0.9491 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002412/0.6931, allocations: 1.348 MB / 0.9504 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009452/0.6941, allocations: 0.606 MB / 0.951 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.468e-05/0.6941, allocations: 0 / 0.951 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.12e-05/0.6941, allocations: 4 kB / 0.951 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.451e-05/0.6942, allocations: 5.312 kB / 0.951 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.6947, allocations: 123.6 kB / 0.9511 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.178e-05/0.6948, allocations: 25.53 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.123e-05/0.6949, allocations: 2.75 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.411e-05/0.6949, allocations: 4.125 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.377e-05/0.695, allocations: 12.06 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.695, allocations: 0 / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.6955, allocations: 354.2 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.6955, allocations: 1.219 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.78e-05/0.6955, allocations: 7.812 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.6958, allocations: 150.2 kB / 0.9517 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6958, allocations: 1.469 kB / 0.9517 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.855e-06/0.6958, allocations: 0 / 0.9517 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.09e-05/0.6958, allocations: 3.938 kB / 0.9517 GB, free: 7.266 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.0003759/0.6962, allocations: 366.1 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.6962, allocations: 9.281 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.66e-05/0.6963, allocations: 2.125 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.103e-05/0.6964, allocations: 169.5 kB / 0.9522 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.6964, allocations: 5.344 kB / 0.9522 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.6964, allocations: 2.562 kB / 0.9522 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.6965, allocations: 40.78 kB / 0.9522 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.6966, allocations: 192 / 0.9522 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.6966, allocations: 5.312 kB / 0.9522 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.6966, allocations: 0 / 0.9522 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.833e-05/0.6966, allocations: 26.97 kB / 0.9523 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.6968, allocations: 159.1 kB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.697, allocations: 46.98 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.164e-05/0.697, allocations: 16.61 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.6971, allocations: 4.078 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.6971, allocations: 39.84 kB / 0.9525 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.6971, allocations: 0 / 0.9525 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005662/0.6977, allocations: 308 kB / 0.9528 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.323e-05/0.6977, allocations: 52.75 kB / 0.9529 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.642e-05/0.6977, allocations: 100.7 kB / 0.953 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.6978, allocations: 27.02 kB / 0.953 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.704e-05/0.6978, allocations: 80.14 kB / 0.9531 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.6978, allocations: 22.03 kB / 0.9531 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.6978, allocations: 19.78 kB / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.667e-05/0.6979, allocations: 320.5 kB / 0.9534 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.304e-05/0.6979, allocations: 10.06 kB / 0.9534 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.174e-05/0.698, allocations: 18.42 kB / 0.9534 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.81e-05/0.698, allocations: 27.67 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.698, allocations: 1.344 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.859e-05/0.6981, allocations: 68.83 kB / 0.9535 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.6981, allocations: 7.844 kB / 0.9535 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.6981, allocations: 1.469 kB / 0.9535 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.6982, allocations: 0 / 0.9535 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.961e-05/0.6982, allocations: 10.09 kB / 0.9536 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.6982, allocations: 8.062 kB / 0.9536 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.945e-05/0.6982, allocations: 5.688 kB / 0.9536 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-06/0.6983, allocations: 1.875 kB / 0.9536 GB, free: 5.27 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 4.893e-05/0.6983, allocations: 119.6 kB / 0.9537 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.6983, allocations: 5.281 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.6985, allocations: 66.31 kB / 0.9537 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6985, allocations: 1.281 kB / 0.9538 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6985, allocations: 0 / 0.9538 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.6985, allocations: 0.875 kB / 0.9538 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002418/0.6987, allocations: 328.2 kB / 0.9541 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.6987, allocations: 0 / 0.9541 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.6988, allocations: 9.844 kB / 0.9541 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.6988, allocations: 5.344 kB / 0.9541 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.6988, allocations: 5.406 kB / 0.9541 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.6988, allocations: 1.469 kB / 0.9541 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6988, allocations: 3.938 kB / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.699, allocations: 182.4 kB / 0.9543 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.699, allocations: 79.06 kB / 0.9543 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.699, allocations: 6.172 kB / 0.9543 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.6e-05/0.6991, allocations: 1.188 kB / 0.9543 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.6992, allocations: 6.938 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.6992, allocations: 1.344 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.527e-05/0.6992, allocations: 81.77 kB / 0.9544 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6992, allocations: 4.062 kB / 0.9544 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002497/0.6995, allocations: 18.92 kB / 0.9545 GB, free: 4.367 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001624/0.6996, allocations: 133.5 kB / 0.9546 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001132/0.6998, allocations: 36.77 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6998, allocations: 0 / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.783e-05/0.6998, allocations: 18.88 kB / 0.9546 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.7, allocations: 7.156 kB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000411/0.7004, allocations: 197.4 kB / 0.9548 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.7006, allocations: 0.6916 MB / 0.9555 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.29e-05/0.7006, allocations: 2.844 kB / 0.9555 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.746e-05/0.7007, allocations: 14.88 kB / 0.9555 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7007, allocations: 0 / 0.9555 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of Templates: time 0.003151/0.7038, allocations: 0.6495 MB / 0.9562 GB, free: 3.016 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches