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.0008758/0.000876, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001051/0.001051, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.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.483/2.483, allocations: 390.9 MB / 0.666 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004738/0.0004743, allocations: 16 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7699/0.7704, allocations: 142.4 MB / 0.9544 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001153/0.7717, allocations: 0.9859 MB / 0.9554 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008049/0.7725, allocations: 0.5572 MB / 0.9559 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.887e-05/0.7725, allocations: 0 / 0.9559 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.313e-05/0.7725, allocations: 0 / 0.9559 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.7726, allocations: 5.406 kB / 0.9559 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004234/0.773, allocations: 129.3 kB / 0.9561 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.051e-05/0.7731, allocations: 20.48 kB / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.373e-05/0.7731, allocations: 1.062 kB / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.579e-05/0.7732, allocations: 11.62 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.216e-05/0.7732, allocations: 15.78 kB / 0.9561 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.7732, allocations: 1.125 kB / 0.9561 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004168/0.7737, allocations: 327.1 kB / 0.9564 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.939e-06/0.7737, allocations: 5.25 kB / 0.9564 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.006e-05/0.7737, allocations: 28.02 kB / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.7739, allocations: 96.48 kB / 0.9566 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.7739, allocations: 0 / 0.9566 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7739, allocations: 0 / 0.9566 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.7739, allocations: 0 / 0.9566 GB, free: 6.156 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003226/0.7742, allocations: 360.9 kB / 0.9569 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.7743, allocations: 13.81 kB / 0.9569 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.7743, allocations: 5.141 kB / 0.9569 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.763e-05/0.7744, allocations: 168.1 kB / 0.9571 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.7744, allocations: 5.125 kB / 0.9571 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.7744, allocations: 1.938 kB / 0.9571 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.7746, allocations: 39.59 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.7746, allocations: 1.062 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.7746, allocations: 0 / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.7746, allocations: 0.9688 kB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.172e-05/0.7746, allocations: 22 kB / 0.9571 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.7748, allocations: 157.7 kB / 0.9573 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.775, allocations: 48.34 kB / 0.9573 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.956e-05/0.775, allocations: 15.98 kB / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.775, allocations: 1.312 kB / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.775, allocations: 31.53 kB / 0.9574 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.7751, allocations: 4 kB / 0.9574 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005426/0.7756, allocations: 319.7 kB / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.661e-05/0.7756, allocations: 52.91 kB / 0.9577 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.737e-05/0.7757, allocations: 96.94 kB / 0.9578 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.7757, allocations: 31.48 kB / 0.9579 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.791e-05/0.7757, allocations: 84.12 kB / 0.958 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.7758, allocations: 17.44 kB / 0.958 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.7758, allocations: 9.812 kB / 0.958 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.029e-05/0.7758, allocations: 310.8 kB / 0.9583 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.286e-05/0.7758, allocations: 15.33 kB / 0.9583 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.741e-05/0.7759, allocations: 9.5 kB / 0.9583 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.687e-05/0.7759, allocations: 15.16 kB / 0.9583 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.7759, allocations: 0 / 0.9583 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.125e-05/0.776, allocations: 68.86 kB / 0.9584 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.776, allocations: 9.344 kB / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.776, allocations: 0 / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.776, allocations: 1.812 kB / 0.9584 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.762e-05/0.7761, allocations: 16.08 kB / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.7761, allocations: 5.5 kB / 0.9584 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.857e-05/0.7761, allocations: 7.953 kB / 0.9584 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.7761, allocations: 1.281 kB / 0.9584 GB, free: 4.184 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.7762, allocations: 108.5 kB / 0.9585 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.7762, allocations: 5.312 kB / 0.9585 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.7763, allocations: 70.89 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.7763, allocations: 1.375 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.7763, allocations: 4 kB / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.7763, allocations: 0 / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.7766, allocations: 315.8 kB / 0.9589 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.7766, allocations: 1.031 kB / 0.9589 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.728e-05/0.7767, allocations: 9.938 kB / 0.9589 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.7767, allocations: 1.25 kB / 0.9589 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.7767, allocations: 4.953 kB / 0.9589 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.7767, allocations: 5 kB / 0.9589 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7767, allocations: 3.953 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.7768, allocations: 178 kB / 0.9591 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.966e-05/0.7769, allocations: 88 kB / 0.9592 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.7769, allocations: 1.312 kB / 0.9592 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.366e-05/0.777, allocations: 1.031 kB / 0.9592 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/0.777, allocations: 6.953 kB / 0.9592 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.777, allocations: 5.078 kB / 0.9592 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.079e-05/0.777, allocations: 85.72 kB / 0.9593 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.777, allocations: 0 / 0.9593 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000237/0.7773, allocations: 20.59 kB / 0.9593 GB, free: 3.293 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001599/0.7774, allocations: 126.6 kB / 0.9594 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.867e-05/0.7776, allocations: 33.02 kB / 0.9594 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7776, allocations: 0 / 0.9594 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.68e-05/0.7776, allocations: 18.97 kB / 0.9595 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.7778, allocations: 11.81 kB / 0.9595 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003451/0.7782, allocations: 224.5 kB / 0.9597 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.839e-05/0.7783, allocations: 0.6798 MB / 0.9604 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.863e-05/0.7783, allocations: 3.328 kB / 0.9604 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.557e-05/0.7783, allocations: 15.34 kB / 0.9604 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7783, allocations: 3.938 kB / 0.9604 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of Templates: time 0.002637/0.781, allocations: 0.6062 MB / 0.961 GB, free: 1.941 MB / 0.7169 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