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.001118/0.001118, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001294/0.001294, allocations: 177.3 kB / 15.95 MB, free: 216 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.425/1.425, allocations: 223.2 MB / 239.9 MB, free: 5.359 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.539/2.539, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003576, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7359/0.7362, allocations: 142.3 MB / 0.9535 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001276/0.7376, allocations: 0.9823 MB / 0.9545 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006506/0.7382, allocations: 347.2 kB / 0.9548 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.7383, allocations: 0 / 0.9548 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.599e-05/0.7383, allocations: 3.938 kB / 0.9548 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.807e-05/0.7384, allocations: 1.344 kB / 0.9548 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.7388, allocations: 70.92 kB / 0.9549 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.399e-05/0.7389, allocations: 13.02 kB / 0.9549 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.7389, allocations: 6.625 kB / 0.9549 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.176e-05/0.739, allocations: 7.766 kB / 0.9549 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.337e-05/0.7391, allocations: 14.23 kB / 0.9549 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.7391, allocations: 1.219 kB / 0.9549 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.7394, allocations: 181.4 kB / 0.9551 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.628e-06/0.7395, allocations: 1.156 kB / 0.9551 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.7395, allocations: 28.7 kB / 0.9551 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.7396, allocations: 53.31 kB / 0.9552 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.7396, allocations: 3.938 kB / 0.9552 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.354e-06/0.7396, allocations: 1.188 kB / 0.9552 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.7397, allocations: 4 kB / 0.9552 GB, free: 6.746 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.0003293/0.74, allocations: 337.4 kB / 0.9555 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.74, allocations: 9.188 kB / 0.9555 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.7401, allocations: 5.047 kB / 0.9555 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.53e-05/0.7402, allocations: 168.3 kB / 0.9557 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.7402, allocations: 0.9375 kB / 0.9557 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.7402, allocations: 2.219 kB / 0.9557 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.926e-05/0.7403, allocations: 44.44 kB / 0.9557 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.7403, allocations: 4 kB / 0.9557 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.7403, allocations: 0 / 0.9557 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.7404, allocations: 0.9688 kB / 0.9557 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.181e-05/0.7404, allocations: 14.53 kB / 0.9557 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.7405, allocations: 161.9 kB / 0.9559 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.7407, allocations: 43.77 kB / 0.9559 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.7408, allocations: 1.594 kB / 0.9559 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.7408, allocations: 38.56 kB / 0.956 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.383e-06/0.7408, allocations: 1.406 kB / 0.956 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005813/0.7414, allocations: 306.9 kB / 0.9563 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.152e-05/0.7414, allocations: 51.41 kB / 0.9563 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.888e-05/0.7415, allocations: 105.5 kB / 0.9564 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.7415, allocations: 27.05 kB / 0.9564 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.088e-05/0.7415, allocations: 80.14 kB / 0.9565 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.7415, allocations: 26.42 kB / 0.9565 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-06/0.7416, allocations: 1.188 kB / 0.9565 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.7416, allocations: 316.3 kB / 0.9568 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.4e-05/0.7416, allocations: 4.844 kB / 0.9569 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.026e-05/0.7417, allocations: 14.7 kB / 0.9569 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.009e-05/0.7417, allocations: 12.34 kB / 0.9569 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.7417, allocations: 0 / 0.9569 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.305e-05/0.7418, allocations: 75.77 kB / 0.957 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.7418, allocations: 4.906 kB / 0.957 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.7418, allocations: 7.938 kB / 0.957 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.7418, allocations: 1.531 kB / 0.957 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.453e-05/0.7419, allocations: 8.938 kB / 0.957 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.7419, allocations: 1.5 kB / 0.957 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.7419, allocations: 0 / 0.957 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.742, allocations: 6.172 kB / 0.957 GB, free: 4.828 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 5.011e-05/0.742, allocations: 118.2 kB / 0.9571 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.742, allocations: 1.281 kB / 0.9571 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.7422, allocations: 70.56 kB / 0.9572 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.7422, allocations: 5.25 kB / 0.9572 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.7422, allocations: 4 kB / 0.9572 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.7422, allocations: 0 / 0.9572 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.7425, allocations: 323.9 kB / 0.9575 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.7425, allocations: 5 kB / 0.9575 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.358e-05/0.7425, allocations: 9.281 kB / 0.9575 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.7425, allocations: 1.312 kB / 0.9575 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.7426, allocations: 1.219 kB / 0.9575 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.7426, allocations: 1 kB / 0.9575 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.7426, allocations: 5.25 kB / 0.9575 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.7427, allocations: 194.1 kB / 0.9577 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.7428, allocations: 83.94 kB / 0.9578 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.7428, allocations: 1.156 kB / 0.9578 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-05/0.7429, allocations: 5.531 kB / 0.9578 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.046e-05/0.7429, allocations: 10.08 kB / 0.9578 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.7429, allocations: 2.312 kB / 0.9578 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.09e-05/0.7429, allocations: 82.3 kB / 0.9579 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7429, allocations: 0 / 0.9579 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002532/0.7432, allocations: 23.06 kB / 0.9579 GB, free: 3.902 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.0001646/0.7434, allocations: 120.3 kB / 0.958 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.578e-05/0.7435, allocations: 35.58 kB / 0.958 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.7435, allocations: 4 kB / 0.958 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.7435, allocations: 16 kB / 0.9581 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.7437, allocations: 1.156 kB / 0.9581 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003694/0.744, allocations: 228.8 kB / 0.9583 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.7442, allocations: 0.681 MB / 0.9589 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.912e-05/0.7442, allocations: 3.469 kB / 0.9589 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.7442, allocations: 10.91 kB / 0.959 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.7442, allocations: 0 / 0.959 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of Templates: time 0.002873/0.7471, allocations: 0.5961 MB / 0.9595 GB, free: 2.574 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","../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches