Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001856/0.001856, allocations: 108.3 kB / 19.72 MB, free: 412 kB / 13.93 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.001997/0.001997, allocations: 212.6 kB / 23.02 MB, free: 2.938 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 1.681/1.681, allocations: 230.6 MB / 256.8 MB, free: 9.594 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 3.399/3.399, allocations: 0.4898 GB / 0.7957 GB, free: 2.367 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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_12_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_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003956/0.003956, allocations: 76.12 kB / 1.155 GB, free: 204 kB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9185/0.9225, allocations: 176.3 MB / 1.327 GB, free: 9.434 MB / 1.01 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck): time 0.002646/0.9251, allocations: 1.304 MB / 1.329 GB, free: 8.121 MB / 1.01 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.9263, allocations: 0.5461 MB / 1.329 GB, free: 7.574 MB / 1.01 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.464e-05/0.9263, allocations: 0 / 1.329 GB, free: 7.574 MB / 1.01 GB Notification: Performance of NFTyping.typeComponents: time 1.818e-05/0.9263, allocations: 7.938 kB / 1.329 GB, free: 7.566 MB / 1.01 GB Notification: Performance of NFTyping.typeBindings: time 4.53e-05/0.9264, allocations: 4 kB / 1.329 GB, free: 7.562 MB / 1.01 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.9269, allocations: 152.6 kB / 1.329 GB, free: 7.414 MB / 1.01 GB Notification: Performance of NFFlatten.flatten: time 6.441e-05/0.927, allocations: 19.92 kB / 1.329 GB, free: 7.395 MB / 1.01 GB Notification: Performance of NFFlatten.resolveConnections: time 4.053e-05/0.927, allocations: 4 kB / 1.329 GB, free: 7.391 MB / 1.01 GB Notification: Performance of NFEvalConstants.evaluate: time 4.35e-05/0.9271, allocations: 7.938 kB / 1.329 GB, free: 7.383 MB / 1.01 GB Notification: Performance of NFSimplifyModel.simplify: time 5.263e-05/0.9271, allocations: 15.92 kB / 1.329 GB, free: 7.367 MB / 1.01 GB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.9271, allocations: 0 / 1.329 GB, free: 7.367 MB / 1.01 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005401/0.9277, allocations: 315.5 kB / 1.33 GB, free: 7.059 MB / 1.01 GB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.9277, allocations: 7.938 kB / 1.33 GB, free: 7.051 MB / 1.01 GB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.9277, allocations: 11.98 kB / 1.33 GB, free: 7.039 MB / 1.01 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.928, allocations: 142.3 kB / 1.33 GB, free: 6.902 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.928, allocations: 0 / 1.33 GB, free: 6.902 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.663e-06/0.928, allocations: 0 / 1.33 GB, free: 6.902 MB / 1.01 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.928, allocations: 0 / 1.33 GB, free: 6.902 MB / 1.01 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.0005494/0.9285, allocations: 286 kB / 1.33 GB, free: 6.59 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.9286, allocations: 12.03 kB / 1.33 GB, free: 6.578 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.9286, allocations: 0.9375 kB / 1.33 GB, free: 6.578 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.9287, allocations: 114.4 kB / 1.33 GB, free: 6.441 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-06/0.9287, allocations: 4.375 kB / 1.33 GB, free: 6.438 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.9288, allocations: 4.312 kB / 1.33 GB, free: 6.434 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.9289, allocations: 75.88 kB / 1.33 GB, free: 6.348 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.9289, allocations: 192 / 1.33 GB, free: 6.348 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.9289, allocations: 3.938 kB / 1.33 GB, free: 6.344 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.9289, allocations: 4 kB / 1.33 GB, free: 6.34 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.148e-05/0.929, allocations: 11.98 kB / 1.33 GB, free: 6.328 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.9292, allocations: 105.3 kB / 1.33 GB, free: 6.195 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.9294, allocations: 46.61 kB / 1.33 GB, free: 6.141 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.162e-05/0.9294, allocations: 20.88 kB / 1.33 GB, free: 6.117 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.9294, allocations: 4 kB / 1.33 GB, free: 6.113 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.9295, allocations: 34.56 kB / 1.33 GB, free: 6.07 MB / 1.01 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.9295, allocations: 0 / 1.33 GB, free: 6.07 MB / 1.01 GB Notification: Performance of matching and sorting (n=6): time 0.0006598/0.9301, allocations: 229.2 kB / 1.331 GB, free: 5.812 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.9302, allocations: 55.41 kB / 1.331 GB, free: 5.746 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.299e-05/0.9302, allocations: 97.84 kB / 1.331 GB, free: 5.641 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.9303, allocations: 25.7 kB / 1.331 GB, free: 5.609 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.716e-05/0.9303, allocations: 84.14 kB / 1.331 GB, free: 5.523 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.9303, allocations: 19.8 kB / 1.331 GB, free: 5.504 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.9304, allocations: 21.7 kB / 1.331 GB, free: 5.477 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.9305, allocations: 322.8 kB / 1.331 GB, free: 5.152 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.9306, allocations: 4 kB / 1.331 GB, free: 5.148 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.564e-05/0.9306, allocations: 15.98 kB / 1.331 GB, free: 5.133 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.383e-05/0.9307, allocations: 48.86 kB / 1.331 GB, free: 5.082 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.9307, allocations: 0 / 1.331 GB, free: 5.082 MB / 1.01 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001108/0.9308, allocations: 65.64 kB / 1.331 GB, free: 5.012 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.9308, allocations: 4 kB / 1.331 GB, free: 5.008 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.9308, allocations: 3.938 kB / 1.331 GB, free: 5.004 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.9308, allocations: 0 / 1.331 GB, free: 5.004 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.45e-05/0.9309, allocations: 12 kB / 1.331 GB, free: 4.992 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.9309, allocations: 0 / 1.331 GB, free: 4.992 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/0.9309, allocations: 11.98 kB / 1.331 GB, free: 4.98 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.9309, allocations: 0 / 1.331 GB, free: 4.98 MB / 1.01 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 0.0001039/0.931, allocations: 115.8 kB / 1.332 GB, free: 4.859 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.931, allocations: 0 / 1.332 GB, free: 4.859 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.9312, allocations: 77.69 kB / 1.332 GB, free: 4.773 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.9312, allocations: 0 / 1.332 GB, free: 4.773 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.9312, allocations: 3.938 kB / 1.332 GB, free: 4.77 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.9312, allocations: 4.5 kB / 1.332 GB, free: 4.766 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.9315, allocations: 255.1 kB / 1.332 GB, free: 4.477 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.9315, allocations: 3.938 kB / 1.332 GB, free: 4.473 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.295e-05/0.9316, allocations: 16.03 kB / 1.332 GB, free: 4.457 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.9316, allocations: 0 / 1.332 GB, free: 4.457 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.9316, allocations: 3.984 kB / 1.332 GB, free: 4.453 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.9316, allocations: 4 kB / 1.332 GB, free: 4.449 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.9316, allocations: 0 / 1.332 GB, free: 4.449 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.9318, allocations: 188.5 kB / 1.332 GB, free: 4.246 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.9319, allocations: 7.922 kB / 1.332 GB, free: 4.238 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.9319, allocations: 4 kB / 1.332 GB, free: 4.234 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.187e-05/0.932, allocations: 4 kB / 1.332 GB, free: 4.23 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.277e-05/0.932, allocations: 3.984 kB / 1.332 GB, free: 4.227 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.932, allocations: 8.062 kB / 1.332 GB, free: 4.219 MB / 1.01 GB Notification: Performance of sorting global known variables: time 4.707e-05/0.932, allocations: 79.28 kB / 1.332 GB, free: 4.141 MB / 1.01 GB Notification: Performance of sort global known variables: time 7.1e-08/0.932, allocations: 0 / 1.332 GB, free: 4.141 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002635/0.9323, allocations: 31.88 kB / 1.332 GB, free: 4.109 MB / 1.01 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.0002432/0.9325, allocations: 143 kB / 1.332 GB, free: 3.961 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0001177/0.9327, allocations: 35.92 kB / 1.332 GB, free: 3.926 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9327, allocations: 0 / 1.332 GB, free: 3.926 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 3.288e-05/0.9327, allocations: 19.94 kB / 1.332 GB, free: 3.906 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.9329, allocations: 3.938 kB / 1.332 GB, free: 3.902 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005373/0.9335, allocations: 192.6 kB / 1.333 GB, free: 3.684 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.13e-05/0.9335, allocations: 63.34 kB / 1.333 GB, free: 3.602 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 3.38e-05/0.9336, allocations: 8 kB / 1.333 GB, free: 3.594 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.9336, allocations: 7.438 kB / 1.333 GB, free: 3.586 MB / 1.01 GB Notification: Performance of SimCode: time 5.21e-07/0.9336, allocations: 4 kB / 1.333 GB, free: 3.582 MB / 1.01 GB Notification: Performance of Templates: time 0.004413/0.938, allocations: 0.8272 MB / 1.333 GB, free: 2.801 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck/Buildings_12_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: 10.286655018106103]