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.001019/0.001019, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007966/0.007966, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.42/2.42, allocations: 390.9 MB / 0.6663 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.000357, allocations: 19.92 kB / 0.816 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6533/0.6537, allocations: 142.4 MB / 0.955 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001808/0.6555, allocations: 1.194 MB / 0.9562 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009844/0.6565, allocations: 0.6365 MB / 0.9568 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.607e-05/0.6566, allocations: 1.219 kB / 0.9568 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.6566, allocations: 4 kB / 0.9568 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.985e-05/0.6567, allocations: 9.141 kB / 0.9568 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005942/0.6573, allocations: 126.3 kB / 0.957 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.032e-05/0.6574, allocations: 58.55 kB / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.68e-05/0.6574, allocations: 2.375 kB / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.574e-05/0.6575, allocations: 21.64 kB / 0.957 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.26e-05/0.6575, allocations: 31.44 kB / 0.9571 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.6575, allocations: 3.625 kB / 0.9571 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004557/0.658, allocations: 346.4 kB / 0.9574 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.658, allocations: 14.98 kB / 0.9574 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.941e-05/0.6581, allocations: 50.03 kB / 0.9575 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.6584, allocations: 172.1 kB / 0.9576 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.6584, allocations: 0 / 0.9576 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6584, allocations: 0 / 0.9576 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.6584, allocations: 0 / 0.9576 GB, free: 5.73 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.0005184/0.6589, allocations: 394.8 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.6589, allocations: 9.844 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.659, allocations: 12.62 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.842e-05/0.6591, allocations: 166 kB / 0.9582 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.6591, allocations: 4.219 kB / 0.9582 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.6591, allocations: 11.92 kB / 0.9582 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.6594, allocations: 87.81 kB / 0.9583 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.6594, allocations: 192 / 0.9583 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.6594, allocations: 13.62 kB / 0.9583 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.6594, allocations: 1.781 kB / 0.9583 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.6597, allocations: 58.58 kB / 0.9584 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004864/0.6602, allocations: 322.9 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003003/0.6605, allocations: 91.03 kB / 0.9588 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.6606, allocations: 31.19 kB / 0.9588 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.6606, allocations: 9.266 kB / 0.9588 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.6607, allocations: 31.81 kB / 0.9588 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.6607, allocations: 0 / 0.9588 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001547/0.6622, allocations: 0.6786 MB / 0.9595 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.6623, allocations: 52.38 kB / 0.9595 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.216e-05/0.6623, allocations: 111.2 kB / 0.9596 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.6623, allocations: 26.67 kB / 0.9597 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.6624, allocations: 90.17 kB / 0.9598 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.6624, allocations: 35.48 kB / 0.9598 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.6624, allocations: 21.14 kB / 0.9598 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/0.6625, allocations: 317.2 kB / 0.9601 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.6626, allocations: 37.53 kB / 0.9601 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.6627, allocations: 40.55 kB / 0.9602 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.663, allocations: 79.05 kB / 0.9603 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.663, allocations: 0 / 0.9603 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003204/0.6633, allocations: 131 kB / 0.9604 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.6634, allocations: 5.5 kB / 0.9604 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.6634, allocations: 7.938 kB / 0.9604 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.6634, allocations: 1.375 kB / 0.9604 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.6636, allocations: 33.91 kB / 0.9604 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.6636, allocations: 1.375 kB / 0.9604 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.884e-05/0.6636, allocations: 13.44 kB / 0.9604 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.6637, allocations: 6.75 kB / 0.9605 GB, free: 3.152 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 5.534e-05/0.6637, allocations: 112.6 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.6638, allocations: 12.02 kB / 0.9606 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003598/0.6641, allocations: 133.9 kB / 0.9607 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.6641, allocations: 1.375 kB / 0.9607 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6641, allocations: 1.375 kB / 0.9607 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6641, allocations: 3.938 kB / 0.9607 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.6646, allocations: 388.7 kB / 0.9611 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.6647, allocations: 0 / 0.9611 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.6648, allocations: 33.92 kB / 0.9611 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.6648, allocations: 1.375 kB / 0.9611 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.6648, allocations: 9.406 kB / 0.9611 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.6648, allocations: 3.938 kB / 0.9611 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.6648, allocations: 1.375 kB / 0.9611 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004832/0.6653, allocations: 265.3 kB / 0.9614 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.6654, allocations: 82.47 kB / 0.9615 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.6654, allocations: 9.312 kB / 0.9615 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.6655, allocations: 5.5 kB / 0.9615 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.994e-05/0.6655, allocations: 8.109 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.6656, allocations: 10.81 kB / 0.9615 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.5e-05/0.6656, allocations: 82.33 kB / 0.9616 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.82e-07/0.6656, allocations: 0 / 0.9616 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002916/0.6659, allocations: 42.81 kB / 0.9616 GB, free: 2.148 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.000197/0.6661, allocations: 125.8 kB / 0.9617 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003356/0.6664, allocations: 98.59 kB / 0.9618 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6664, allocations: 0 / 0.9618 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.6666, allocations: 48.11 kB / 0.9619 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.6669, allocations: 12.02 kB / 0.9619 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006076/0.6675, allocations: 388.8 kB / 0.9623 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.6676, allocations: 0.6915 MB / 0.9629 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.177e-05/0.6677, allocations: 11.73 kB / 0.9629 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.934e-05/0.6677, allocations: 16.45 kB / 0.963 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.6678, allocations: 0.75 kB / 0.963 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of Templates: time 0.003436/0.6712, allocations: 1.088 MB / 0.964 GB, free: 428 kB / 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