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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001515/0.001515, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002013/0.002013, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.354/1.354, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.382/2.382, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001235, allocations: 71.88 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6415/0.6428, allocations: 140.3 MB / 0.9489 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00197/0.6448, allocations: 1.356 MB / 0.9502 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008343/0.6456, allocations: 0.6176 MB / 0.9508 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.49e-05/0.6457, allocations: 4 kB / 0.9509 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.638e-05/0.6457, allocations: 0 / 0.9509 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.317e-05/0.6457, allocations: 5.516 kB / 0.9509 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.6461, allocations: 119.1 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.249e-05/0.6462, allocations: 24.89 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.6462, allocations: 2.469 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.933e-05/0.6463, allocations: 7.656 kB / 0.951 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.495e-05/0.6463, allocations: 11.8 kB / 0.951 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.6463, allocations: 5.375 kB / 0.951 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004568/0.6468, allocations: 347.7 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.6468, allocations: 1.125 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.6468, allocations: 8.281 kB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.6471, allocations: 146.4 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.6471, allocations: 0 / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6471, allocations: 5.312 kB / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.6471, allocations: 0 / 0.9515 GB, free: 7.273 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.0004056/0.6475, allocations: 367.8 kB / 0.9519 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.6476, allocations: 8.281 kB / 0.9519 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.6476, allocations: 6.344 kB / 0.9519 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.97e-05/0.6477, allocations: 169.7 kB / 0.952 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.6477, allocations: 1.781 kB / 0.952 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.6478, allocations: 1.875 kB / 0.952 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.6479, allocations: 41.47 kB / 0.9521 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.6479, allocations: 192 / 0.9521 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6479, allocations: 3.938 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.6479, allocations: 1.219 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.628e-05/0.648, allocations: 14.38 kB / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/0.6482, allocations: 166.5 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.6484, allocations: 40.39 kB / 0.9523 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.65e-05/0.6484, allocations: 20.31 kB / 0.9523 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.6484, allocations: 0 / 0.9523 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.6485, allocations: 35.66 kB / 0.9523 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.6485, allocations: 0 / 0.9523 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005802/0.6491, allocations: 308.2 kB / 0.9526 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/0.6491, allocations: 56.69 kB / 0.9527 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.46e-05/0.6491, allocations: 105.5 kB / 0.9528 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.809e-06/0.6492, allocations: 25.7 kB / 0.9528 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.585e-05/0.6492, allocations: 81.23 kB / 0.9529 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.6492, allocations: 22.09 kB / 0.9529 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.6492, allocations: 22.42 kB / 0.9529 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.6493, allocations: 316.1 kB / 0.9532 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/0.6493, allocations: 14.33 kB / 0.9533 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.145e-05/0.6493, allocations: 15.52 kB / 0.9533 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.384e-05/0.6494, allocations: 27.39 kB / 0.9533 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.6494, allocations: 1.094 kB / 0.9533 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.766e-05/0.6495, allocations: 63.88 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.6495, allocations: 13.38 kB / 0.9534 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.6495, allocations: 0 / 0.9534 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.6495, allocations: 1.094 kB / 0.9534 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.017e-05/0.6496, allocations: 21.48 kB / 0.9534 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.6496, allocations: 1 kB / 0.9534 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.6496, allocations: 0 / 0.9534 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.6496, allocations: 2 kB / 0.9534 GB, free: 5.281 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.6497, allocations: 112.4 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.6497, allocations: 5.375 kB / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.6498, allocations: 74.59 kB / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.6499, allocations: 5.234 kB / 0.9536 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.6499, allocations: 0 / 0.9536 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6499, allocations: 5.281 kB / 0.9536 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.6501, allocations: 320.4 kB / 0.9539 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.6501, allocations: 0 / 0.9539 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.714e-05/0.6502, allocations: 13.62 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.6502, allocations: 1.062 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.545e-06/0.6502, allocations: 1.125 kB / 0.9539 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.6502, allocations: 5.297 kB / 0.9539 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6502, allocations: 0 / 0.9539 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.6503, allocations: 178 kB / 0.9541 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.68e-05/0.6504, allocations: 83.97 kB / 0.9542 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.6504, allocations: 1.688 kB / 0.9542 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.583e-05/0.6505, allocations: 4 kB / 0.9542 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.6505, allocations: 7.062 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.6505, allocations: 1.906 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.882e-05/0.6505, allocations: 81.52 kB / 0.9543 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6505, allocations: 5.156 kB / 0.9543 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002453/0.6508, allocations: 23.12 kB / 0.9543 GB, free: 4.379 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 (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.0001582/0.6509, allocations: 124.4 kB / 0.9544 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.972e-05/0.651, allocations: 32.52 kB / 0.9544 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6511, allocations: 0 / 0.9544 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.767e-05/0.6511, allocations: 20 kB / 0.9544 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.6513, allocations: 6.438 kB / 0.9545 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.6517, allocations: 214.7 kB / 0.9547 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.6518, allocations: 0.6848 MB / 0.9553 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.268e-05/0.6518, allocations: 7.875 kB / 0.9553 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.581e-05/0.6518, allocations: 10.69 kB / 0.9553 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6519, allocations: 0 / 0.9553 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of Templates: time 0.002625/0.6545, allocations: 0.6378 MB / 0.956 GB, free: 3.031 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