Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_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_10_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.001871/0.001871, allocations: 106.4 kB / 16.35 MB, free: 5.828 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.002044/0.002044, allocations: 196.9 kB / 17.3 MB, free: 5.484 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 / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.514/2.514, allocations: 437.1 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 64.34 kB / 0.8707 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2622, allocations: 151.6 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002376/0.2646, allocations: 1.28 MB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.2658, allocations: 0.6048 MB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.2658, allocations: 0 / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.305e-05/0.2659, allocations: 7.938 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.257e-05/0.266, allocations: 7.969 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.2666, allocations: 140.6 kB / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.182e-05/0.2667, allocations: 15.94 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.843e-05/0.2667, allocations: 15.92 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.554e-05/0.2668, allocations: 11.92 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.104e-05/0.2669, allocations: 4 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.2669, allocations: 0 / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005241/0.2674, allocations: 339.4 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.2675, allocations: 11.94 kB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.964e-05/0.2675, allocations: 11.92 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.2678, allocations: 139.7 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2678, allocations: 0 / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.943e-06/0.2678, allocations: 0 / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.2678, allocations: 0 / 1.021 GB, free: 7.293 MB / 0.795 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.0004852/0.2683, allocations: 371.3 kB / 1.022 GB, free: 6.879 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2683, allocations: 8.922 kB / 1.022 GB, free: 6.871 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.2684, allocations: 4.938 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.2685, allocations: 168.2 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.2685, allocations: 4.375 kB / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.2685, allocations: 4.375 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.946e-05/0.2686, allocations: 38.25 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2686, allocations: 4.188 kB / 1.022 GB, free: 6.609 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2687, allocations: 3.938 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.2687, allocations: 4 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.889e-05/0.2687, allocations: 7.984 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.2689, allocations: 169.6 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.2691, allocations: 42.5 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.359e-05/0.2691, allocations: 16.86 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.2691, allocations: 0 / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.2692, allocations: 34.56 kB / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.2692, allocations: 0 / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0006004/0.2698, allocations: 326.5 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.2698, allocations: 51.41 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.157e-05/0.2699, allocations: 97.86 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.2699, allocations: 25.7 kB / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.659e-05/0.2699, allocations: 80.14 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.27, allocations: 27.7 kB / 1.023 GB, free: 5.586 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.27, allocations: 21.66 kB / 1.023 GB, free: 5.559 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2701, allocations: 318.8 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.608e-05/0.2701, allocations: 8 kB / 1.023 GB, free: 5.23 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.222e-05/0.2702, allocations: 12 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.911e-05/0.2702, allocations: 32.84 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.2702, allocations: 0 / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.559e-05/0.2703, allocations: 61.69 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.2704, allocations: 15.94 kB / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2704, allocations: 0 / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2704, allocations: 3.984 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.142e-05/0.2705, allocations: 11.94 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2705, allocations: 4 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.878e-05/0.2705, allocations: 3.938 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.2705, allocations: 0 / 1.023 GB, free: 5.078 MB / 0.795 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 7.466e-05/0.2706, allocations: 116.2 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.2706, allocations: 7.844 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.2708, allocations: 73.88 kB / 1.023 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2708, allocations: 4 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2708, allocations: 0 / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2708, allocations: 0 / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003227/0.2711, allocations: 311.4 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2711, allocations: 0 / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.56e-05/0.2712, allocations: 19.92 kB / 1.024 GB, free: 4.48 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2712, allocations: 0 / 1.024 GB, free: 4.48 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-06/0.2712, allocations: 4.188 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2712, allocations: 8.031 kB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.2712, allocations: 7.984 kB / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.2714, allocations: 176.3 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.2715, allocations: 88.98 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.2715, allocations: 0 / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.224e-05/0.2716, allocations: 0 / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-05/0.2716, allocations: 8.047 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.2716, allocations: 8 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.559e-05/0.2717, allocations: 79.28 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2717, allocations: 3.938 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002545/0.272, allocations: 23.94 kB / 1.024 GB, free: 4.043 MB / 0.795 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.0001671/0.2721, allocations: 123.2 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001062/0.2722, allocations: 31.98 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2722, allocations: 4 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.784e-05/0.2723, allocations: 19.92 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.2725, allocations: 11.94 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003794/0.2729, allocations: 188.7 kB / 1.024 GB, free: 3.633 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.2731, allocations: 0.6845 MB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.787e-05/0.2732, allocations: 4 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.2732, allocations: 7.438 kB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of SimCode: time 1.383e-06/0.2732, allocations: 0 / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of Templates: time 0.002845/0.276, allocations: 0.6407 MB / 1.026 GB, free: 2.309 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches