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.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_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.001378/0.001378, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 193.9 kB / 16.53 MB, free: 6.691 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.391/2.391, allocations: 390.2 MB / 0.6646 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 67.88 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7366/0.7389, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00326/0.7423, allocations: 1.467 MB / 0.951 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.7433, allocations: 0.6329 MB / 0.9516 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.91e-05/0.7434, allocations: 0 / 0.9516 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.976e-05/0.7434, allocations: 3.938 kB / 0.9516 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.264e-05/0.7435, allocations: 9 kB / 0.9516 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.7441, allocations: 167.6 kB / 0.9518 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.099e-05/0.7442, allocations: 47.27 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.372e-05/0.7442, allocations: 5.938 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.824e-05/0.7443, allocations: 30.16 kB / 0.9519 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.425e-05/0.7444, allocations: 23.5 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.7444, allocations: 4.688 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.7449, allocations: 348.1 kB / 0.9522 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.7449, allocations: 10.62 kB / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.142e-05/0.745, allocations: 28.17 kB / 0.9523 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.7453, allocations: 172.1 kB / 0.9524 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.7453, allocations: 1.281 kB / 0.9524 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7453, allocations: 0 / 0.9524 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.7453, allocations: 11.92 kB / 0.9525 GB, free: 6.914 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007132/0.7461, allocations: 390.9 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.7461, allocations: 10 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.516e-05/0.7462, allocations: 8 kB / 0.9528 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.7463, allocations: 174.6 kB / 0.953 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.7464, allocations: 6.625 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.7464, allocations: 13.69 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.7467, allocations: 82.78 kB / 0.9531 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.7467, allocations: 192 / 0.9531 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.7468, allocations: 5.125 kB / 0.9531 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.7468, allocations: 1.531 kB / 0.9531 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.747, allocations: 48.95 kB / 0.9532 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.7477, allocations: 324.6 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.748, allocations: 79.94 kB / 0.9536 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.7481, allocations: 32.03 kB / 0.9536 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.7482, allocations: 0 / 0.9536 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.7482, allocations: 48.02 kB / 0.9536 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.7482, allocations: 0 / 0.9536 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001673/0.7499, allocations: 0.6443 MB / 0.9543 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.7499, allocations: 52.84 kB / 0.9543 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.958e-05/0.75, allocations: 107 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.75, allocations: 27.11 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.975e-05/0.7501, allocations: 94.34 kB / 0.9545 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.7501, allocations: 35.84 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.7501, allocations: 29.92 kB / 0.9546 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.7502, allocations: 320.8 kB / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.7503, allocations: 30.52 kB / 0.9549 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.7505, allocations: 34.69 kB / 0.955 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.7507, allocations: 69.67 kB / 0.955 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.7507, allocations: 7.875 kB / 0.955 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003117/0.7511, allocations: 122.3 kB / 0.9551 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.7511, allocations: 5.875 kB / 0.9552 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7511, allocations: 0 / 0.9552 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.7511, allocations: 1.469 kB / 0.9552 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.7513, allocations: 28.45 kB / 0.9552 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.7513, allocations: 0 / 0.9552 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.7514, allocations: 12.61 kB / 0.9552 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.7514, allocations: 2.281 kB / 0.9552 GB, free: 4.348 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 (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 8.315e-05/0.7515, allocations: 121.2 kB / 0.9553 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.7515, allocations: 6.688 kB / 0.9553 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003658/0.7519, allocations: 123.4 kB / 0.9554 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.7519, allocations: 0.9375 kB / 0.9554 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7519, allocations: 1.562 kB / 0.9554 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.7519, allocations: 3.938 kB / 0.9554 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004805/0.7524, allocations: 389.5 kB / 0.9558 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7524, allocations: 0 / 0.9558 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.7526, allocations: 28.59 kB / 0.9558 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.7526, allocations: 0 / 0.9558 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.7526, allocations: 9.156 kB / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7526, allocations: 1.312 kB / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.7526, allocations: 0 / 0.9558 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004829/0.7531, allocations: 257.4 kB / 0.9561 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.7531, allocations: 79.61 kB / 0.9562 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.7532, allocations: 3.938 kB / 0.9562 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.7533, allocations: 11.92 kB / 0.9562 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.571e-05/0.7533, allocations: 4.375 kB / 0.9562 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.7533, allocations: 7.547 kB / 0.9562 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.673e-05/0.7534, allocations: 83.03 kB / 0.9563 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7534, allocations: 0 / 0.9563 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002916/0.7537, allocations: 43.25 kB / 0.9563 GB, free: 3.348 MB / 0.7169 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.0002228/0.7539, allocations: 131.3 kB / 0.9564 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003688/0.7543, allocations: 92.05 kB / 0.9565 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.7543, allocations: 0 / 0.9565 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.7544, allocations: 48.53 kB / 0.9566 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.7548, allocations: 8.5 kB / 0.9566 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006328/0.7554, allocations: 319.8 kB / 0.9569 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.7556, allocations: 0.6988 MB / 0.9576 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.846e-05/0.7556, allocations: 15.64 kB / 0.9576 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.7557, allocations: 12.91 kB / 0.9576 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7557, allocations: 0 / 0.9576 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of Templates: time 0.003498/0.7592, allocations: 1.129 MB / 0.9587 GB, free: 1.645 MB / 0.7169 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 -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/jenkins/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