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.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_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.007667/0.007667, allocations: 99.97 kB / 15.73 MB, free: 6.008 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.00127/0.00127, allocations: 193 kB / 16.67 MB, free: 5.93 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.205/2.205, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 64.14 kB / 0.9509 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9117/0.9129, allocations: 140.4 MB / 1.088 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002322/0.9153, allocations: 1.274 MB / 1.089 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.9164, allocations: 0.6148 MB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.928e-05/0.9164, allocations: 1.281 kB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.678e-05/0.9164, allocations: 1.031 kB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.251e-05/0.9165, allocations: 7.938 kB / 1.09 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.9171, allocations: 142.6 kB / 1.09 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.734e-05/0.9172, allocations: 23.05 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.4e-05/0.9172, allocations: 5.734 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.077e-05/0.9173, allocations: 5.469 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.614e-05/0.9173, allocations: 9.828 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.9174, allocations: 1 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006063/0.918, allocations: 344.9 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.522e-05/0.918, allocations: 10.44 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.434e-05/0.918, allocations: 8.375 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.9183, allocations: 143.8 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.9183, allocations: 3.938 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.864e-06/0.9183, allocations: 1.312 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.9184, allocations: 0 / 1.09 GB, free: 4.211 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003718/0.9187, allocations: 354 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.9188, allocations: 9.5 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.9188, allocations: 5.906 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.608e-05/0.9189, allocations: 170.6 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.9189, allocations: 10.03 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.919, allocations: 6.25 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.9191, allocations: 41.56 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.9191, allocations: 192 / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.9191, allocations: 3.938 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.9191, allocations: 1.062 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.391e-05/0.9192, allocations: 12.06 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.9193, allocations: 159.6 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.9195, allocations: 43.06 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.816e-05/0.9196, allocations: 21.81 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.9196, allocations: 1.062 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.9196, allocations: 32.39 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.9196, allocations: 1.062 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006093/0.9202, allocations: 308.5 kB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.9203, allocations: 56.5 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.524e-05/0.9203, allocations: 99.11 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.9203, allocations: 27.38 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.2e-05/0.9204, allocations: 80.14 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.9204, allocations: 28.28 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.9205, allocations: 20.66 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.9205, allocations: 313.5 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.069e-05/0.9205, allocations: 16 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.65e-05/0.9206, allocations: 11.84 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.277e-05/0.9206, allocations: 30.08 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.9207, allocations: 4.062 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001095/0.9208, allocations: 72.09 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.9208, allocations: 9.656 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.9208, allocations: 0 / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.9208, allocations: 1.641 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.747e-05/0.9209, allocations: 10.59 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.9209, allocations: 5.406 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.9209, allocations: 4 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.9209, allocations: 2.25 kB / 1.092 GB, free: 2.277 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 (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 5.623e-05/0.921, allocations: 112.5 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.921, allocations: 9.859 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.9212, allocations: 72.92 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.9212, allocations: 1.594 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.9212, allocations: 0 / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.9212, allocations: 1.547 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.9215, allocations: 312.5 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.9215, allocations: 5.391 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.426e-05/0.9216, allocations: 18.94 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.9216, allocations: 1.672 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.9216, allocations: 0.9062 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.9216, allocations: 0.7812 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.9216, allocations: 2.109 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.9218, allocations: 179.5 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.9218, allocations: 85.48 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.9218, allocations: 2.656 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.462e-05/0.9219, allocations: 5.844 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.9219, allocations: 11.59 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.9219, allocations: 2.062 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.203e-05/0.922, allocations: 79.92 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of sort global known variables: time 7.62e-07/0.922, allocations: 0 / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002663/0.9222, allocations: 27.7 kB / 1.093 GB, free: 1.406 MB / 0.8575 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.0001852/0.9224, allocations: 129.6 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001178/0.9226, allocations: 32.34 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.9226, allocations: 4.562 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.288e-05/0.9226, allocations: 12.78 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.9228, allocations: 15.22 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.9232, allocations: 190.9 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.9234, allocations: 0.6797 MB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.869e-05/0.9234, allocations: 8.859 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.888e-05/0.9234, allocations: 11.3 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.9234, allocations: 0 / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of Templates: time 0.003168/0.9266, allocations: 0.6314 MB / 1.095 GB, free: 356 kB / 0.8575 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 -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/jenkins/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