Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008207/0.0008207, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.001925, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007538/0.0007538, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009703/0.001724, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9697/0.9697, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08413/1.054, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.432/2.432, allocations: 446.7 MB / 0.6745 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2977/2.729, allocations: 145.9 MB / 0.817 GB, free: 4.219 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.8183 GB, free: 2.852 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.786e-05/1.934e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.848 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck): time 0.001893/0.001913, allocations: 1.416 MB / 0.8197 GB, free: 1.422 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0009192/0.002832, allocations: 0.5992 MB / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.002858, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 1.022e-05/0.002869, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.026e-05/0.002899, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.003301, allocations: 155.2 kB / 0.8205 GB, free: 0.668 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 9.414e-05/0.003395, allocations: 15.94 kB / 0.8205 GB, free: 0.6523 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 6.705e-05/0.003463, allocations: 7.984 kB / 0.8205 GB, free: 0.6445 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.003572, allocations: 15.92 kB / 0.8205 GB, free: 0.6289 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.003646, allocations: 7.984 kB / 0.8205 GB, free: 0.6211 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.003662, allocations: 8 kB / 0.8205 GB, free: 0.6133 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000396/0.004058, allocations: 319.3 kB / 0.8208 GB, free: 308 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.004073, allocations: 4 kB / 0.8208 GB, free: 304 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.004093, allocations: 7.938 kB / 0.8208 GB, free: 296 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.004326, allocations: 127.6 kB / 0.821 GB, free: 168 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.519e-05/0.004352, allocations: 3.984 kB / 0.821 GB, free: 164 kB / 0.7917 GB Notification: Performance of FrontEnd: time 1.032e-06/0.004353, allocations: 0 / 0.821 GB, free: 164 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 2.359e-05/0.004376, allocations: 0 / 0.821 GB, free: 164 kB / 0.7917 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.000614/0.00499, allocations: 284.2 kB / 0.8212 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.005037, allocations: 8.625 kB / 0.8212 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.005076, allocations: 8.938 kB / 0.8212 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.005187, allocations: 105.7 kB / 0.8213 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.005206, allocations: 8.375 kB / 0.8214 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.005232, allocations: 4.328 kB / 0.8214 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.00535, allocations: 63.89 kB / 0.8214 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.005361, allocations: 4.172 kB / 0.8214 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.005371, allocations: 4.375 kB / 0.8214 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.005379, allocations: 384 / 0.8214 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.068e-05/0.005409, allocations: 7.938 kB / 0.8214 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.005532, allocations: 65.05 kB / 0.8215 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.005733, allocations: 42.59 kB / 0.8215 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.041e-05/0.005754, allocations: 8.859 kB / 0.8215 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.005783, allocations: 0 / 0.8215 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.005815, allocations: 50.58 kB / 0.8216 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.005816, allocations: 0 / 0.8216 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0006225/0.006438, allocations: 225.1 kB / 0.8218 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.006477, allocations: 51.41 kB / 0.8219 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.471e-05/0.006542, allocations: 98.72 kB / 0.822 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.006557, allocations: 37.7 kB / 0.822 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.006594, allocations: 88.12 kB / 0.8221 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.458e-05/0.006629, allocations: 19.84 kB / 0.8221 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.006662, allocations: 17.72 kB / 0.8221 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.006761, allocations: 318.8 kB / 0.8224 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.006774, allocations: 7.984 kB / 0.8224 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.453e-05/0.006788, allocations: 7.938 kB / 0.8224 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.802e-05/0.006826, allocations: 20.84 kB / 0.8224 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006828, allocations: 4 kB / 0.8225 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 6.61e-05/0.006894, allocations: 49.67 kB / 0.8225 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.006907, allocations: 4 kB / 0.8225 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.006914, allocations: 4 kB / 0.8225 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.006927, allocations: 0 / 0.8225 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.571e-05/0.006983, allocations: 12 kB / 0.8225 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.006988, allocations: 3.984 kB / 0.8225 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.007001, allocations: 11.88 kB / 0.8225 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.007008, allocations: 4 kB / 0.8225 GB, free: 14.35 MB / 0.8073 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 6.299e-05/0.007071, allocations: 105.8 kB / 0.8226 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.673e-06/0.007078, allocations: 4 kB / 0.8226 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.007186, allocations: 69.62 kB / 0.8227 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.007187, allocations: 4 kB / 0.8227 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.00719, allocations: 4 kB / 0.8227 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.007194, allocations: 0 / 0.8227 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.007428, allocations: 211.6 kB / 0.8229 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.007429, allocations: 0 / 0.8229 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.45e-05/0.007474, allocations: 12 kB / 0.8229 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.118e-05/0.007485, allocations: 3.984 kB / 0.8229 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.007489, allocations: 4 kB / 0.8229 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.007495, allocations: 0 / 0.8229 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.007498, allocations: 4.125 kB / 0.8229 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.007502, allocations: 7.938 kB / 0.8229 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.007627, allocations: 160.4 kB / 0.8231 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.007641, allocations: 4 kB / 0.8231 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.762e-05/0.007679, allocations: 4 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.007697, allocations: 7.922 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.007703, allocations: 4 kB / 0.8231 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.688e-06/0.007713, allocations: 4.859 kB / 0.8231 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007713, allocations: 0 / 0.8231 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001718/0.007884, allocations: 47.8 kB / 0.8232 GB, free: 13.64 MB / 0.8073 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.0002125/0.008097, allocations: 132.1 kB / 0.8233 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.507e-05/0.008182, allocations: 28.89 kB / 0.8233 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.008188, allocations: 0 / 0.8233 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.649e-05/0.008214, allocations: 28.77 kB / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.008345, allocations: 4 kB / 0.8234 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007639/0.009109, allocations: 161.3 kB / 0.8235 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.428e-05/0.009144, allocations: 55.36 kB / 0.8236 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.706e-05/0.009171, allocations: 8.656 kB / 0.8236 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.00922, allocations: 63.34 kB / 0.8236 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of SimCode: time 5.71e-07/0.009221, allocations: 0 / 0.8236 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of Templates: time 0.003218/0.01244, allocations: 1.099 MB / 0.8247 GB, free: 12.05 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.329994368366897]