Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 79.36 kB / 19.18 MB, free: 2.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 166.6 kB / 22.46 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.71/2.71, allocations: 359 MB / 0.6037 GB, free: 15 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.951 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.276e-05/2.416e-05, allocations: 2.281 kB / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002408/0.002432, allocations: 1.305 MB / 0.9522 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.003566, allocations: 0.5493 MB / 0.9528 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.003597, allocations: 0 / 0.9528 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.673e-05/0.003624, allocations: 7.922 kB / 0.9528 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.137e-05/0.003665, allocations: 3.938 kB / 0.9528 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.004268, allocations: 152.6 kB / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.73e-05/0.004345, allocations: 27.91 kB / 0.953 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.649e-05/0.004392, allocations: 4 kB / 0.953 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.279e-05/0.004435, allocations: 15.98 kB / 0.953 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.233e-05/0.004497, allocations: 19.91 kB / 0.953 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.004513, allocations: 0 / 0.953 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/0.00498, allocations: 275.4 kB / 0.9533 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.004995, allocations: 0 / 0.9533 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.568e-05/0.005021, allocations: 15.98 kB / 0.9533 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.005334, allocations: 167.4 kB / 0.9534 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.005339, allocations: 4 kB / 0.9534 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.412e-06/0.00534, allocations: 0 / 0.9534 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.626e-06/0.005344, allocations: 0 / 0.9534 GB, free: 9.043 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004888/0.005832, allocations: 293.9 kB / 0.9537 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.005873, allocations: 11.97 kB / 0.9537 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.00591, allocations: 8.938 kB / 0.9537 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.006036, allocations: 105.7 kB / 0.9538 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.006053, allocations: 8.375 kB / 0.9538 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.006079, allocations: 4.328 kB / 0.9539 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.006244, allocations: 105.6 kB / 0.954 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.006256, allocations: 192 / 0.954 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.00627, allocations: 4.375 kB / 0.954 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.006274, allocations: 4.312 kB / 0.954 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.79e-05/0.006332, allocations: 23.92 kB / 0.954 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.006506, allocations: 105.3 kB / 0.9541 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.006638, allocations: 70.47 kB / 0.9542 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.065e-05/0.006688, allocations: 24.86 kB / 0.9542 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.006714, allocations: 4 kB / 0.9542 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.006752, allocations: 34.56 kB / 0.9542 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.006753, allocations: 0 / 0.9542 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001212/0.007965, allocations: 443.8 kB / 0.9546 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.008007, allocations: 51.41 kB / 0.9547 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.18e-05/0.008099, allocations: 105.8 kB / 0.9548 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.008119, allocations: 25.7 kB / 0.9548 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.176e-05/0.008171, allocations: 84.14 kB / 0.9549 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.008219, allocations: 39.64 kB / 0.9549 GB, free: 7.305 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.008268, allocations: 29.72 kB / 0.955 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.008423, allocations: 314.8 kB / 0.9553 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.487e-05/0.008478, allocations: 24 kB / 0.9553 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.859e-05/0.008517, allocations: 22.73 kB / 0.9553 GB, free: 6.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.89e-05/0.008615, allocations: 56.8 kB / 0.9554 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.008616, allocations: 128 / 0.9554 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001572/0.008773, allocations: 109.6 kB / 0.9555 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.00879, allocations: 4 kB / 0.9555 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.008793, allocations: 96 / 0.9555 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.00881, allocations: 7.875 kB / 0.9555 GB, free: 6.727 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.008915, allocations: 23.98 kB / 0.9555 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.008926, allocations: 3.938 kB / 0.9555 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.392e-05/0.00895, allocations: 0 / 0.9555 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.008959, allocations: 4 kB / 0.9555 GB, free: 6.695 MB / 0.8575 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.876e-05/0.009048, allocations: 114.7 kB / 0.9556 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.009065, allocations: 8 kB / 0.9556 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002893/0.009355, allocations: 105.8 kB / 0.9557 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.009363, allocations: 7.922 kB / 0.9557 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.009367, allocations: 0 / 0.9557 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.009372, allocations: 4 kB / 0.9557 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.009844, allocations: 294.1 kB / 0.956 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.009846, allocations: 0 / 0.956 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.009957, allocations: 19.98 kB / 0.956 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.009961, allocations: 7.875 kB / 0.956 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.009971, allocations: 4 kB / 0.956 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.009972, allocations: 0 / 0.956 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.009973, allocations: 4 kB / 0.956 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.01029, allocations: 215.5 kB / 0.9563 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.082e-05/0.0103, allocations: 7.953 kB / 0.9563 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.01032, allocations: 7.969 kB / 0.9563 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.913e-05/0.01041, allocations: 4 kB / 0.9563 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.01044, allocations: 7.984 kB / 0.9563 GB, free: 5.832 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.01045, allocations: 4 kB / 0.9563 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.837e-05/0.01053, allocations: 75.28 kB / 0.9564 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/0.01053, allocations: 0 / 0.9564 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002809/0.01081, allocations: 39.86 kB / 0.9564 GB, free: 5.715 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0002544/0.01106, allocations: 147.1 kB / 0.9565 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000179/0.01124, allocations: 59.47 kB / 0.9566 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.01124, allocations: 0 / 0.9566 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.069e-05/0.01129, allocations: 27.94 kB / 0.9566 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.01153, allocations: 12.64 kB / 0.9566 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005394/0.01207, allocations: 240.7 kB / 0.9569 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.542e-05/0.01214, allocations: 67.34 kB / 0.9569 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.755e-05/0.01219, allocations: 15.94 kB / 0.9569 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.087e-05/0.01222, allocations: 12.5 kB / 0.9569 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of SimCode: time 5.62e-07/0.01222, allocations: 0 / 0.9569 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of Templates: time 0.003947/0.01617, allocations: 0.9334 MB / 0.9579 GB, free: 4.211 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time [Calling sys.exit(0), Time elapsed: 7.922586906701326]