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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001329/0.001329, allocations: 99.67 kB / 16.35 MB, free: 5.824 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.001302/0.001302, allocations: 193.8 kB / 17.29 MB, free: 5.48 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 62.45 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2738, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002804/0.2767, allocations: 1.283 MB / 0.9524 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2777, allocations: 0.6209 MB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.648e-05/0.2778, allocations: 4 kB / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.95e-05/0.2778, allocations: 0 / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.792e-05/0.2779, allocations: 3.938 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006546/0.2786, allocations: 147.2 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.375e-05/0.2786, allocations: 19.92 kB / 0.9531 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.197e-05/0.2787, allocations: 4 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.166e-05/0.2787, allocations: 11.94 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.225e-05/0.2788, allocations: 7.984 kB / 0.9532 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.2788, allocations: 7.938 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005035/0.2793, allocations: 343.4 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.2793, allocations: 0 / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.596e-05/0.2794, allocations: 11.94 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.2796, allocations: 151.6 kB / 0.9537 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2796, allocations: 0 / 0.9537 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2797, allocations: 4 kB / 0.9537 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2797, allocations: 0 / 0.9537 GB, free: 5.441 MB / 0.7325 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.0004342/0.2801, allocations: 359.4 kB / 0.954 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2802, allocations: 8.031 kB / 0.954 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.2802, allocations: 4.938 kB / 0.954 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.2803, allocations: 176.2 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.2804, allocations: 384 / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.2804, allocations: 384 / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.2805, allocations: 46.19 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2805, allocations: 192 / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.2805, allocations: 3.938 kB / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.2805, allocations: 0 / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.711e-05/0.2806, allocations: 15.94 kB / 0.9542 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.2807, allocations: 157.7 kB / 0.9544 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.2809, allocations: 50.55 kB / 0.9544 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.269e-05/0.281, allocations: 20.92 kB / 0.9545 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.281, allocations: 4 kB / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.281, allocations: 30.56 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.103e-06/0.281, allocations: 0 / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006076/0.2817, allocations: 306.2 kB / 0.9548 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.2817, allocations: 55.41 kB / 0.9548 GB, free: 4 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.991e-05/0.2818, allocations: 97.84 kB / 0.9549 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2818, allocations: 29.7 kB / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.2818, allocations: 88.12 kB / 0.955 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.2819, allocations: 11.72 kB / 0.9551 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/0.2819, allocations: 25.7 kB / 0.9551 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.282, allocations: 318.8 kB / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.871e-05/0.2821, allocations: 11.98 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.057e-05/0.2821, allocations: 11.94 kB / 0.9554 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.2821, allocations: 32.86 kB / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2822, allocations: 4.062 kB / 0.9554 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001031/0.2823, allocations: 65.83 kB / 0.9555 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2823, allocations: 7.938 kB / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2823, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.2823, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.528e-05/0.2824, allocations: 15.98 kB / 0.9555 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.2824, allocations: 7.938 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.2824, allocations: 4 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.2824, allocations: 4 kB / 0.9555 GB, free: 3.234 MB / 0.7325 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 6.382e-05/0.2825, allocations: 105.8 kB / 0.9556 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.2825, allocations: 11.84 kB / 0.9557 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001451/0.2827, allocations: 73.64 kB / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2827, allocations: 0 / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2827, allocations: 0 / 0.9557 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2827, allocations: 7.938 kB / 0.9557 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.283, allocations: 323.3 kB / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.283, allocations: 0 / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.04e-05/0.2831, allocations: 8 kB / 0.9561 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2831, allocations: 0 / 0.9561 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.2831, allocations: 7.984 kB / 0.9561 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2831, allocations: 3.938 kB / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2831, allocations: 0 / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.2833, allocations: 176.4 kB / 0.9562 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/0.2834, allocations: 89.03 kB / 0.9563 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.2834, allocations: 4.188 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.481e-05/0.2835, allocations: 8 kB / 0.9563 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.325e-05/0.2835, allocations: 0 / 0.9563 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.2835, allocations: 4 kB / 0.9563 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.448e-05/0.2835, allocations: 83.78 kB / 0.9564 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2835, allocations: 4.062 kB / 0.9564 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002461/0.2838, allocations: 23.94 kB / 0.9564 GB, free: 2.203 MB / 0.7325 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.0001748/0.284, allocations: 119.2 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001014/0.2841, allocations: 31.98 kB / 0.9566 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2841, allocations: 0 / 0.9566 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.019e-05/0.2841, allocations: 19.94 kB / 0.9566 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.2843, allocations: 9.75 kB / 0.9566 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/0.2848, allocations: 192.3 kB / 0.9568 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.285, allocations: 0.6883 MB / 0.9575 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.203e-05/0.2851, allocations: 7.984 kB / 0.9575 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.2851, allocations: 15.38 kB / 0.9575 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2851, allocations: 0 / 0.9575 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of Templates: time 0.0028/0.2879, allocations: 0.6521 MB / 0.9581 GB, free: 460 kB / 0.7325 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 -s gbode -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/jenkins1/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