Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_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_9_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_9_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.001451/0.001451, allocations: 106 kB / 16.36 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.001549/0.001549, allocations: 192.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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.14 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.185/2.185, allocations: 390.3 MB / 0.6655 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.42 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2341, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00246/0.2366, allocations: 1.47 MB / 0.9526 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009767/0.2376, allocations: 0.6382 MB / 0.9532 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.392e-05/0.2376, allocations: 0 / 0.9532 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.2376, allocations: 3.938 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.688e-05/0.2377, allocations: 7.922 kB / 0.9532 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005166/0.2382, allocations: 163.4 kB / 0.9533 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.997e-05/0.2383, allocations: 51.78 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.077e-05/0.2384, allocations: 8 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.408e-05/0.2384, allocations: 19.92 kB / 0.9534 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.799e-05/0.2385, allocations: 27.91 kB / 0.9534 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.2385, allocations: 4 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004613/0.239, allocations: 347.3 kB / 0.9538 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.239, allocations: 15.92 kB / 0.9538 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.239, allocations: 19.88 kB / 0.9538 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.2393, allocations: 183.5 kB / 0.954 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2393, allocations: 4 kB / 0.954 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2393, allocations: 0 / 0.954 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2393, allocations: 0 / 0.954 GB, free: 5.066 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005199/0.2399, allocations: 399.2 kB / 0.9544 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2399, allocations: 12.02 kB / 0.9544 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.2399, allocations: 4.938 kB / 0.9544 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.2401, allocations: 168.3 kB / 0.9546 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.2401, allocations: 4.375 kB / 0.9546 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.2401, allocations: 16.31 kB / 0.9546 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.2403, allocations: 74.22 kB / 0.9546 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2403, allocations: 192 / 0.9546 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.2404, allocations: 3.938 kB / 0.9546 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.2404, allocations: 4 kB / 0.9547 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002183/0.2406, allocations: 51.95 kB / 0.9547 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004937/0.2411, allocations: 328.6 kB / 0.955 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.2414, allocations: 78.53 kB / 0.9551 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2415, allocations: 36.83 kB / 0.9551 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.2415, allocations: 0 / 0.9551 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.2415, allocations: 34.56 kB / 0.9552 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.2415, allocations: 0 / 0.9552 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001538/0.2431, allocations: 0.6578 MB / 0.9558 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.873e-05/0.2431, allocations: 51.41 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.2432, allocations: 101.8 kB / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.2432, allocations: 29.7 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.976e-05/0.2433, allocations: 92.03 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.2433, allocations: 35.45 kB / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.2434, allocations: 29.84 kB / 0.9561 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.2435, allocations: 322.8 kB / 0.9564 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.2436, allocations: 35.92 kB / 0.9565 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2437, allocations: 35.81 kB / 0.9565 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.2439, allocations: 76.77 kB / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.244, allocations: 0 / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002894/0.2443, allocations: 113.6 kB / 0.9567 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2443, allocations: 14.03 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2443, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2443, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.2444, allocations: 23.98 kB / 0.9567 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2445, allocations: 0 / 0.9567 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.2445, allocations: 11.92 kB / 0.9567 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.2445, allocations: 8 kB / 0.9567 GB, free: 1.949 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 (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 7.624e-05/0.2446, allocations: 113.8 kB / 0.9568 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.2447, allocations: 7.906 kB / 0.9569 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/0.245, allocations: 137.5 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.245, allocations: 0 / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.245, allocations: 0 / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2451, allocations: 7.938 kB / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.2456, allocations: 378.5 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2456, allocations: 0 / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.2458, allocations: 27.98 kB / 0.9574 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2458, allocations: 4 kB / 0.9574 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.2458, allocations: 7.938 kB / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2458, allocations: 0 / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2458, allocations: 0 / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.2463, allocations: 251.3 kB / 0.9576 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.375e-05/0.2463, allocations: 89.11 kB / 0.9577 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.2463, allocations: 11.92 kB / 0.9577 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.2465, allocations: 4 kB / 0.9577 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.2465, allocations: 7.984 kB / 0.9577 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.2465, allocations: 12 kB / 0.9577 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.71e-05/0.2466, allocations: 79.28 kB / 0.9578 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2466, allocations: 0 / 0.9578 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000271/0.2468, allocations: 39.92 kB / 0.9579 GB, free: 0.6797 MB / 0.7325 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.0001831/0.247, allocations: 135.1 kB / 0.958 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000313/0.2473, allocations: 91.83 kB / 0.9581 GB, free: 460 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2474, allocations: 0 / 0.9581 GB, free: 460 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.2475, allocations: 43.97 kB / 0.9581 GB, free: 416 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.2478, allocations: 8 kB / 0.9581 GB, free: 408 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000588/0.2484, allocations: 318 kB / 0.9584 GB, free: 60 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2486, allocations: 0.6922 MB / 0.9591 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.167e-05/0.2487, allocations: 12.67 kB / 0.9591 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.2487, allocations: 11.44 kB / 0.9591 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of SimCode: time 2.9e-07/0.2487, allocations: 4 kB / 0.9591 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of Templates: time 0.003441/0.2522, allocations: 1.14 MB / 0.9602 GB, free: 14.21 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches