Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 110 kB / 16.37 MB, free: 6.469 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.001367/0.001367, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.18 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.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.94 kB / 0.814 GB, free: 32.75 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3061, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002611/0.3087, allocations: 1.281 MB / 0.9524 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009962/0.3097, allocations: 0.6054 MB / 0.953 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.153e-05/0.3098, allocations: 4 kB / 0.953 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.169e-05/0.3098, allocations: 7.922 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.256e-05/0.3099, allocations: 0 / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.3104, allocations: 143.4 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.282e-05/0.3105, allocations: 23.92 kB / 0.9531 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.3105, allocations: 0 / 0.9531 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.3106, allocations: 11.88 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.476e-05/0.3106, allocations: 15.92 kB / 0.9532 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.3106, allocations: 4 kB / 0.9532 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004924/0.3111, allocations: 339.4 kB / 0.9535 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.521e-05/0.3112, allocations: 3.984 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.3112, allocations: 11.94 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.3114, allocations: 143.7 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3115, allocations: 0 / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3115, allocations: 4 kB / 0.9536 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3115, allocations: 0 / 0.9536 GB, free: 5.48 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.0004202/0.3119, allocations: 367.3 kB / 0.954 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.3119, allocations: 12.03 kB / 0.954 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.312, allocations: 0.9375 kB / 0.954 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.3121, allocations: 172.2 kB / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.268e-06/0.3121, allocations: 384 / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.3122, allocations: 384 / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.3123, allocations: 46.23 kB / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3123, allocations: 192 / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3123, allocations: 7.875 kB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3123, allocations: 0 / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.904e-05/0.3123, allocations: 15.98 kB / 0.9542 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.3125, allocations: 157.7 kB / 0.9544 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.3127, allocations: 50.55 kB / 0.9544 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.3127, allocations: 12.86 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.3128, allocations: 4 kB / 0.9545 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.3128, allocations: 34.64 kB / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3128, allocations: 0 / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006086/0.3134, allocations: 318.2 kB / 0.9548 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.3135, allocations: 51.41 kB / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.3135, allocations: 97.84 kB / 0.9549 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3136, allocations: 29.7 kB / 0.955 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.963e-05/0.3136, allocations: 84.14 kB / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.3136, allocations: 15.7 kB / 0.9551 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.3137, allocations: 21.72 kB / 0.9551 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3138, allocations: 322.8 kB / 0.9554 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.498e-05/0.3138, allocations: 11.94 kB / 0.9554 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.204e-05/0.3138, allocations: 11.98 kB / 0.9554 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.584e-05/0.3139, allocations: 32.86 kB / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.3139, allocations: 0 / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.118e-05/0.314, allocations: 61.69 kB / 0.9555 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.314, allocations: 7.938 kB / 0.9555 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.314, allocations: 3.938 kB / 0.9555 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3141, allocations: 4 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.3141, allocations: 15.94 kB / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.3141, allocations: 0 / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.963e-05/0.3142, allocations: 4 kB / 0.9555 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.3142, allocations: 4 kB / 0.9555 GB, free: 3.27 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 8.098e-05/0.3142, allocations: 109.8 kB / 0.9556 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.3143, allocations: 11.84 kB / 0.9557 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3144, allocations: 70.17 kB / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3144, allocations: 0 / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3144, allocations: 0 / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.3144, allocations: 4 kB / 0.9557 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.3147, allocations: 323.3 kB / 0.956 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3148, allocations: 0 / 0.956 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.045e-05/0.3148, allocations: 12.17 kB / 0.956 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3148, allocations: 7.938 kB / 0.9561 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.3148, allocations: 4 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3149, allocations: 3.938 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3149, allocations: 0 / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.315, allocations: 184.4 kB / 0.9562 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.3151, allocations: 81.02 kB / 0.9563 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.3151, allocations: 7.984 kB / 0.9563 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.897e-05/0.3152, allocations: 4 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.678e-05/0.3152, allocations: 0 / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.3152, allocations: 4 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.068e-05/0.3153, allocations: 79.28 kB / 0.9564 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3153, allocations: 4.062 kB / 0.9564 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002398/0.3155, allocations: 27.92 kB / 0.9564 GB, free: 2.234 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001762/0.3157, allocations: 119.2 kB / 0.9565 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001086/0.3158, allocations: 31.98 kB / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3158, allocations: 0 / 0.9566 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.768e-05/0.3159, allocations: 19.94 kB / 0.9566 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3161, allocations: 6.172 kB / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.3165, allocations: 200.5 kB / 0.9568 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.3168, allocations: 0.696 MB / 0.9575 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.78e-05/0.3168, allocations: 8.375 kB / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.967e-05/0.3168, allocations: 11.44 kB / 0.9575 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3168, allocations: 0 / 0.9575 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of Templates: time 0.002884/0.3197, allocations: 0.6326 MB / 0.9581 GB, free: 0.4961 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches