Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008287/0.0008286, allocations: 91.84 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.001078/0.001078, 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.413/1.413, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.86/2.86, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.000388, allocations: 15.5 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3397, allocations: 159.6 MB / 1.058 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001585/0.3413, allocations: 0.9985 MB / 1.059 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.3424, allocations: 0.5533 MB / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.447e-05/0.3425, allocations: 0 / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.3425, allocations: 3.984 kB / 1.06 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.191e-05/0.3426, allocations: 3.938 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006252/0.3432, allocations: 123.6 kB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.811e-05/0.3433, allocations: 15.94 kB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.528e-05/0.3433, allocations: 4 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.413e-05/0.3434, allocations: 23.84 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.3434, allocations: 4 kB / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.3434, allocations: 0 / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005095/0.344, allocations: 335.3 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.195e-05/0.344, allocations: 4 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.344, allocations: 33.64 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.3442, allocations: 100.1 kB / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3443, allocations: 4 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.264e-06/0.3443, allocations: 0 / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3443, allocations: 3.938 kB / 1.06 GB, free: 3.098 MB / 0.8106 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.000421/0.3447, allocations: 355.2 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3447, allocations: 12.03 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.3448, allocations: 0 / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3449, allocations: 163.1 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3449, allocations: 4 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.345, allocations: 11.94 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.3451, allocations: 41.69 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3451, allocations: 0 / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.3451, allocations: 4 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3451, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.043e-05/0.3452, allocations: 7.938 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.3454, allocations: 161.6 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001995/0.3456, allocations: 42.61 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.55e-05/0.3456, allocations: 24.94 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.3456, allocations: 7.891 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.3457, allocations: 30.56 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.3457, allocations: 0 / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.000712/0.3464, allocations: 310.2 kB / 1.061 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.3465, allocations: 51.41 kB / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.492e-05/0.3465, allocations: 101.8 kB / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3466, allocations: 25.7 kB / 1.061 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.526e-05/0.3466, allocations: 84.14 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.3466, allocations: 15.72 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/0.3466, allocations: 4 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3468, allocations: 314.8 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.319e-05/0.3468, allocations: 12 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.917e-05/0.3468, allocations: 8 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.229e-05/0.3469, allocations: 15.98 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.3469, allocations: 4 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.672e-05/0.347, allocations: 65.8 kB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.347, allocations: 9.656 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.347, allocations: 3.984 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.347, allocations: 0 / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.285e-05/0.3471, allocations: 12 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.3471, allocations: 4.062 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.3471, allocations: 4.062 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.3471, allocations: 8 kB / 1.062 GB, free: 0.957 MB / 0.8106 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 7.728e-05/0.3472, allocations: 113.8 kB / 1.062 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.09e-05/0.3472, allocations: 7.953 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.3474, allocations: 82 kB / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3474, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3474, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3474, allocations: 0 / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.3477, allocations: 307.4 kB / 1.062 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3477, allocations: 0 / 1.062 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.321e-05/0.3478, allocations: 27.94 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3478, allocations: 0 / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.3478, allocations: 0 / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3478, allocations: 4 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3478, allocations: 0 / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.348, allocations: 176.3 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.348, allocations: 85.09 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.3481, allocations: 4.062 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.065e-05/0.3481, allocations: 4 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.3482, allocations: 11.92 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.3482, allocations: 4 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.875e-05/0.3482, allocations: 75.28 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3482, allocations: 0 / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002493/0.3485, allocations: 27.94 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.000175/0.3487, allocations: 119.2 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.293e-05/0.3488, allocations: 32 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3488, allocations: 0 / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.952e-05/0.3488, allocations: 24.11 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.3491, allocations: 4 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/0.3494, allocations: 229.4 kB / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.3497, allocations: 0.6809 MB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.272e-05/0.3497, allocations: 7.984 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.3498, allocations: 19.38 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3498, allocations: 0 / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.003038/0.3528, allocations: 0.6119 MB / 1.065 GB, free: 14.18 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches