Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_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_9_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.0008926/0.0008925, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009906/0.0009905, allocations: 168.7 kB / 15.95 MB, free: 204 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.523/1.523, allocations: 223.3 MB / 240 MB, free: 5.371 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.5/2.5, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 8 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7475/0.7479, 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_m_flow_DerivativeCheck): time 0.001327/0.7492, allocations: 0.9987 MB / 0.9554 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007765/0.75, allocations: 0.5568 MB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.336e-05/0.7501, allocations: 1.188 kB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.227e-06/0.7501, allocations: 4 kB / 0.956 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.205e-05/0.7501, allocations: 3.984 kB / 0.956 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.7505, allocations: 119.1 kB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.024e-05/0.7505, allocations: 20.62 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.225e-05/0.7506, allocations: 5.359 kB / 0.9561 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.643e-05/0.7506, allocations: 5.25 kB / 0.9561 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.972e-05/0.7506, allocations: 14.33 kB / 0.9561 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.7507, allocations: 5.156 kB / 0.9561 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.7511, allocations: 332.1 kB / 0.9564 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.613e-06/0.7511, allocations: 5.297 kB / 0.9565 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.623e-05/0.7511, allocations: 32.17 kB / 0.9565 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.7513, allocations: 95.58 kB / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7513, allocations: 0.9688 kB / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7513, allocations: 0 / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.7513, allocations: 0 / 0.9566 GB, free: 6.141 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.0002425/0.7515, allocations: 353 kB / 0.9569 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.7516, allocations: 12.73 kB / 0.9569 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.7516, allocations: 6.766 kB / 0.9569 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.871e-05/0.7517, allocations: 168.3 kB / 0.9571 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.692e-06/0.7517, allocations: 0 / 0.9571 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.7517, allocations: 2.812 kB / 0.9571 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.611e-05/0.7518, allocations: 46.77 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.7518, allocations: 1.312 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-06/0.7518, allocations: 0 / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.7518, allocations: 1.219 kB / 0.9571 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.7519, allocations: 17.86 kB / 0.9572 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001096/0.752, allocations: 158.9 kB / 0.9573 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.7521, allocations: 55.86 kB / 0.9574 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.237e-05/0.7522, allocations: 19.59 kB / 0.9574 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.7522, allocations: 1.125 kB / 0.9574 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/0.7522, allocations: 31.5 kB / 0.9574 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.7522, allocations: 3.938 kB / 0.9574 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004818/0.7527, allocations: 311.3 kB / 0.9577 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/0.7527, allocations: 51.41 kB / 0.9578 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.717e-05/0.7528, allocations: 101.9 kB / 0.9579 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.7528, allocations: 26.73 kB / 0.9579 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.645e-05/0.7528, allocations: 80.14 kB / 0.958 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.7529, allocations: 22.7 kB / 0.958 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.7529, allocations: 0 / 0.958 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.7529, allocations: 316.3 kB / 0.9583 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.469e-05/0.753, allocations: 13.88 kB / 0.9583 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.845e-05/0.753, allocations: 11.2 kB / 0.9583 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.967e-05/0.753, allocations: 15.38 kB / 0.9583 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.92e-07/0.753, allocations: 3.938 kB / 0.9583 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.739e-05/0.7531, allocations: 68.95 kB / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.7532, allocations: 5.375 kB / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.7532, allocations: 0 / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.7532, allocations: 0 / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.973e-05/0.7532, allocations: 10.75 kB / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.7532, allocations: 0 / 0.9584 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.7533, allocations: 12.02 kB / 0.9584 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.7533, allocations: 5.781 kB / 0.9584 GB, free: 4.18 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.265e-05/0.7533, allocations: 111.8 kB / 0.9585 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-06/0.7533, allocations: 2.125 kB / 0.9585 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.7535, allocations: 70.94 kB / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.7535, allocations: 0 / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.7535, allocations: 1.219 kB / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.7535, allocations: 0.5156 kB / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.7537, allocations: 327.5 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.7537, allocations: 0.8125 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.834e-05/0.7538, allocations: 9.406 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7538, allocations: 1.312 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.7538, allocations: 1.312 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.7538, allocations: 1.562 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.7538, allocations: 3.953 kB / 0.9589 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.754, allocations: 189.5 kB / 0.9591 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.754, allocations: 79.08 kB / 0.9592 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.754, allocations: 10.02 kB / 0.9592 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.956e-05/0.7541, allocations: 5.219 kB / 0.9592 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.7541, allocations: 6.391 kB / 0.9592 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.7542, allocations: 2.156 kB / 0.9592 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.336e-05/0.7542, allocations: 78.41 kB / 0.9593 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7542, allocations: 0 / 0.9593 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000247/0.7544, allocations: 30.42 kB / 0.9593 GB, free: 3.273 MB / 0.7169 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.0001657/0.7546, allocations: 126.4 kB / 0.9594 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001009/0.7547, allocations: 36.8 kB / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7547, allocations: 0 / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.858e-05/0.7548, allocations: 15.12 kB / 0.9595 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.755, allocations: 6.047 kB / 0.9595 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.7553, allocations: 227.6 kB / 0.9597 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.718e-05/0.7554, allocations: 0.6836 MB / 0.9604 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.72e-05/0.7554, allocations: 3.969 kB / 0.9604 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.7554, allocations: 9.875 kB / 0.9604 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7554, allocations: 1.156 kB / 0.9604 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of Templates: time 0.002386/0.7578, allocations: 0.6178 MB / 0.961 GB, free: 1.93 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches