Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007768/0.007768, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001488/0.001488, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 437 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.89 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3312, allocations: 151.6 MB / 1.167 GB, free: 6.828 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00261/0.3338, allocations: 1.475 MB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.335, allocations: 0.6227 MB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.326e-05/0.335, allocations: 4 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.472e-05/0.335, allocations: 7.922 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.477e-05/0.3351, allocations: 7.922 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.3357, allocations: 151.4 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.339e-05/0.3358, allocations: 59.77 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.278e-05/0.3358, allocations: 4 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.656e-05/0.3359, allocations: 27.92 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.336, allocations: 23.91 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.336, allocations: 4 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.3365, allocations: 343.3 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/0.3366, allocations: 23.91 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.082e-05/0.3366, allocations: 19.88 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.3369, allocations: 183.3 kB / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3369, allocations: 0 / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3369, allocations: 0 / 1.169 GB, free: 3.867 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.337, allocations: 0 / 1.169 GB, free: 3.867 MB / 0.92 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.0006118/0.3376, allocations: 406.9 kB / 1.17 GB, free: 3.418 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3376, allocations: 11.98 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.3377, allocations: 4.938 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.3378, allocations: 172.3 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.3378, allocations: 8.375 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.3379, allocations: 8.375 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.3381, allocations: 85.66 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3382, allocations: 4.172 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.3382, allocations: 7.938 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3382, allocations: 4 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.3385, allocations: 43.97 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.339, allocations: 336.5 kB / 1.171 GB, free: 2.656 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.3394, allocations: 78.53 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.3395, allocations: 28.84 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3395, allocations: 0 / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.3396, allocations: 34.56 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 8.51e-07/0.3396, allocations: 0 / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.00173/0.3413, allocations: 0.6463 MB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.3413, allocations: 51.5 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.075e-05/0.3414, allocations: 121.7 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3415, allocations: 25.7 kB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.3415, allocations: 88.09 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/0.3416, allocations: 47.58 kB / 1.172 GB, free: 1.398 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.679e-05/0.3417, allocations: 29.7 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3418, allocations: 314.8 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3419, allocations: 31.97 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.3421, allocations: 31.98 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.3423, allocations: 80.77 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3423, allocations: 0 / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003202/0.3427, allocations: 113.8 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3427, allocations: 4 kB / 1.172 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3427, allocations: 0 / 1.172 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3427, allocations: 3.938 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.3429, allocations: 35.97 kB / 1.172 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.3429, allocations: 4 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.271e-05/0.343, allocations: 3.938 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.343, allocations: 4 kB / 1.172 GB, free: 0.7305 MB / 0.92 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 0.0001028/0.3431, allocations: 113.8 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.3431, allocations: 11.95 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.3435, allocations: 121.7 kB / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3435, allocations: 4 kB / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3435, allocations: 7.984 kB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3436, allocations: 3.938 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005807/0.3441, allocations: 382.5 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3442, allocations: 3.938 kB / 1.173 GB, free: 20 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.3443, allocations: 24.03 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3443, allocations: 4 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3444, allocations: 3.938 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3444, allocations: 4 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3444, allocations: 80 / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.3449, allocations: 247.3 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.996e-05/0.3449, allocations: 93.02 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.345, allocations: 7.938 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.3451, allocations: 4 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.3451, allocations: 15.98 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.3452, allocations: 4 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.973e-05/0.3452, allocations: 83.28 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3452, allocations: 0 / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002828/0.3455, allocations: 39.86 kB / 1.173 GB, free: 15.46 MB / 0.9356 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.0001987/0.3457, allocations: 128.7 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.3461, allocations: 99.44 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3461, allocations: 0 / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.3462, allocations: 39.98 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.3465, allocations: 18.66 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005959/0.3471, allocations: 321.3 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.3474, allocations: 0.6929 MB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.292e-05/0.3474, allocations: 8.672 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.992e-05/0.3474, allocations: 15.44 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.3475, allocations: 0 / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of Templates: time 0.00371/0.3512, allocations: 1.146 MB / 1.176 GB, free: 13 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches