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.001509/0.00151, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002174/0.002174, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.492/1.492, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.717/2.717, allocations: 437 MB / 0.71 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 0.8687 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.643/0.6443, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00292/0.6473, allocations: 1.527 MB / 1.018 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.6485, allocations: 0.6384 MB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.423e-05/0.6486, allocations: 4 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.6486, allocations: 3.938 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.649e-05/0.6487, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.6492, allocations: 147.2 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.101e-05/0.6493, allocations: 43.92 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.718e-05/0.6494, allocations: 7.984 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.164e-05/0.6495, allocations: 27.91 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.261e-05/0.6495, allocations: 31.84 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.6495, allocations: 4 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004674/0.65, allocations: 347.3 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.65, allocations: 11.94 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.671e-05/0.6501, allocations: 27.86 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.6504, allocations: 177.5 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.6504, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6504, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.6504, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.7794 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.0006417/0.6511, allocations: 399.2 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.6511, allocations: 11.98 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.6512, allocations: 4.938 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.6513, allocations: 176.2 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.6513, allocations: 8.375 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.6513, allocations: 4.375 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.6516, allocations: 86.22 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.6516, allocations: 192 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.6516, allocations: 7.938 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.6516, allocations: 0 / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.6519, allocations: 47.95 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005803/0.6525, allocations: 328.6 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.6528, allocations: 78.53 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.6529, allocations: 24.84 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.653, allocations: 11.92 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.653, allocations: 38.55 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.534e-06/0.653, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001673/0.6547, allocations: 0.654 MB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.6547, allocations: 51.41 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.679e-05/0.6548, allocations: 97.8 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.6548, allocations: 33.7 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/0.6549, allocations: 95.91 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.6549, allocations: 39.45 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.655, allocations: 25.72 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6551, allocations: 322.8 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.6552, allocations: 27.98 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.6554, allocations: 35.97 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.6556, allocations: 68.83 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.6556, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003125/0.6559, allocations: 118.7 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.656, allocations: 8 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.656, allocations: 4 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.656, allocations: 0 / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.6561, allocations: 23.98 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.6562, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.137e-05/0.6562, allocations: 19.92 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.6562, allocations: 4 kB / 1.022 GB, free: 12.57 MB / 0.7794 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 9.467e-05/0.6563, allocations: 118.3 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.6564, allocations: 7.906 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.6568, allocations: 133.6 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.6568, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.6568, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.6568, allocations: 3.938 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005506/0.6573, allocations: 386.6 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.6574, allocations: 4 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.6575, allocations: 27.98 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.6575, allocations: 0 / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.6576, allocations: 7.938 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.6576, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6576, allocations: 3.938 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005219/0.6581, allocations: 251.3 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.6582, allocations: 85.05 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.6582, allocations: 3.938 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.6583, allocations: 11.98 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-05/0.6584, allocations: 7.984 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.6584, allocations: 4 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.412e-05/0.6584, allocations: 79.28 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6584, allocations: 0 / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002666/0.6587, allocations: 35.94 kB / 1.024 GB, free: 11.31 MB / 0.7794 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.0002111/0.6589, allocations: 147.5 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003323/0.6593, allocations: 85.64 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6593, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.6594, allocations: 47.91 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.6598, allocations: 12.28 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007804/0.6606, allocations: 341.4 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.6609, allocations: 0.6963 MB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.576e-05/0.661, allocations: 12.61 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/0.661, allocations: 11.44 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.661, allocations: 0 / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of Templates: time 0.003708/0.6647, allocations: 1.137 MB / 1.026 GB, free: 8.816 MB / 0.7794 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