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.001897/0.001897, allocations: 80.45 kB / 19.95 MB, free: 4.605 MB / 18.57 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.002042/0.002042, allocations: 169.2 kB / 23.23 MB, free: 1.328 MB / 18.57 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.812/1.812, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.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.18/3.18, allocations: 378.2 MB / 0.6232 GB, free: 8.27 MB / 0.5886 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 1.603e-06/1.603e-06, allocations: 0 / 0.9828 GB, free: 296 kB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.25e-05/3.41e-05, allocations: 2.281 kB / 0.9828 GB, free: 292 kB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck): time 0.002666/0.0027, allocations: 1.302 MB / 0.9841 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.003849, allocations: 0.5487 MB / 0.9846 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.201e-05/0.003881, allocations: 4 kB / 0.9846 GB, free: 14.42 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.0039, allocations: 0 / 0.9846 GB, free: 14.42 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 4.99e-05/0.00395, allocations: 11.86 kB / 0.9846 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005954/0.004545, allocations: 151.3 kB / 0.9848 GB, free: 14.26 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 7.879e-05/0.004624, allocations: 27.84 kB / 0.9848 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.004665, allocations: 0 / 0.9848 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 6.164e-05/0.004727, allocations: 11.98 kB / 0.9848 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.404e-05/0.004771, allocations: 4 kB / 0.9848 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.004787, allocations: 11.94 kB / 0.9848 GB, free: 14.21 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005454/0.005332, allocations: 311.3 kB / 0.9851 GB, free: 13.9 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.005357, allocations: 15.91 kB / 0.9852 GB, free: 13.89 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.174e-05/0.005379, allocations: 4 kB / 0.9852 GB, free: 13.88 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.00568, allocations: 159.5 kB / 0.9853 GB, free: 13.73 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.005683, allocations: 0 / 0.9853 GB, free: 13.73 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.533e-06/0.005685, allocations: 4 kB / 0.9853 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.005689, allocations: 0 / 0.9853 GB, free: 13.72 MB / 0.9011 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.0004978/0.006187, allocations: 286 kB / 0.9856 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.006227, allocations: 8.031 kB / 0.9856 GB, free: 13.4 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.006264, allocations: 4.938 kB / 0.9856 GB, free: 13.4 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.006385, allocations: 113.7 kB / 0.9857 GB, free: 13.26 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.006397, allocations: 384 / 0.9857 GB, free: 13.26 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.006422, allocations: 12.38 kB / 0.9857 GB, free: 13.25 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.006562, allocations: 67.89 kB / 0.9858 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.00657, allocations: 192 / 0.9858 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.006583, allocations: 4.375 kB / 0.9858 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.006587, allocations: 384 / 0.9858 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.538e-05/0.006632, allocations: 7.938 kB / 0.9858 GB, free: 13.16 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.006809, allocations: 113.3 kB / 0.9859 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.007028, allocations: 46.5 kB / 0.9859 GB, free: 12.96 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.249e-05/0.00707, allocations: 24.84 kB / 0.986 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.007091, allocations: 0 / 0.986 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.007127, allocations: 30.56 kB / 0.986 GB, free: 12.9 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.007128, allocations: 0 / 0.986 GB, free: 12.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=6): time 0.0006613/0.007789, allocations: 233.2 kB / 0.9862 GB, free: 12.64 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002197/0.008009, allocations: 55.34 kB / 0.9863 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.657e-05/0.008095, allocations: 93.86 kB / 0.9864 GB, free: 12.47 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.00812, allocations: 25.7 kB / 0.9864 GB, free: 12.44 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 7.387e-05/0.008194, allocations: 88.14 kB / 0.9865 GB, free: 12.35 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.008232, allocations: 23.77 kB / 0.9865 GB, free: 12.32 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.008275, allocations: 29.66 kB / 0.9865 GB, free: 12.29 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.008444, allocations: 314.8 kB / 0.9868 GB, free: 11.97 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.966e-05/0.008483, allocations: 15.98 kB / 0.9868 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.017e-05/0.008503, allocations: 4 kB / 0.9868 GB, free: 11.95 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.00861, allocations: 40.94 kB / 0.9869 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.008611, allocations: 0 / 0.9869 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001105/0.008722, allocations: 65.64 kB / 0.9869 GB, free: 11.84 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.008737, allocations: 4 kB / 0.987 GB, free: 11.84 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.008741, allocations: 0 / 0.987 GB, free: 11.84 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.008759, allocations: 4 kB / 0.987 GB, free: 11.83 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.381e-05/0.008812, allocations: 11.98 kB / 0.987 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.00883, allocations: 7.938 kB / 0.987 GB, free: 11.81 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.056e-05/0.008851, allocations: 4 kB / 0.987 GB, free: 11.81 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.008859, allocations: 4 kB / 0.987 GB, free: 11.8 MB / 0.9011 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 9.332e-05/0.008952, allocations: 109.8 kB / 0.9871 GB, free: 11.69 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.311e-05/0.008966, allocations: 4 kB / 0.9871 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001606/0.009126, allocations: 73.8 kB / 0.9872 GB, free: 11.6 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.009128, allocations: 0 / 0.9872 GB, free: 11.6 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.009135, allocations: 3.938 kB / 0.9872 GB, free: 11.6 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.009141, allocations: 4 kB / 0.9872 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.009493, allocations: 263.1 kB / 0.9874 GB, free: 11.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.009495, allocations: 192 / 0.9874 GB, free: 11.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-05/0.009564, allocations: 15.98 kB / 0.9874 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.009569, allocations: 4 kB / 0.9874 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.00958, allocations: 3.938 kB / 0.9874 GB, free: 11.27 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.009582, allocations: 3.938 kB / 0.9874 GB, free: 11.27 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.009583, allocations: 0 / 0.9874 GB, free: 11.27 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.009823, allocations: 184.3 kB / 0.9876 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 2.079e-05/0.009844, allocations: 4.031 kB / 0.9876 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.00986, allocations: 3.938 kB / 0.9876 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.06e-05/0.00993, allocations: 0 / 0.9876 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.009956, allocations: 12.08 kB / 0.9876 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.009963, allocations: 4 kB / 0.9876 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001163/0.01008, allocations: 79.8 kB / 0.9877 GB, free: 10.97 MB / 0.9011 GB Notification: Performance of sort global known variables: time 6e-08/0.01008, allocations: 0 / 0.9877 GB, free: 10.97 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002656/0.01034, allocations: 35.86 kB / 0.9878 GB, free: 10.93 MB / 0.9011 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.0002534/0.0106, allocations: 135.6 kB / 0.9879 GB, free: 10.79 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001244/0.01072, allocations: 35.92 kB / 0.9879 GB, free: 10.76 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01072, allocations: 0 / 0.9879 GB, free: 10.76 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 3.049e-05/0.01076, allocations: 12 kB / 0.9879 GB, free: 10.75 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.01098, allocations: 18.42 kB / 0.9879 GB, free: 10.73 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004317/0.01141, allocations: 161.7 kB / 0.9881 GB, free: 10.54 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.159e-05/0.01148, allocations: 67.25 kB / 0.9882 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 3.297e-05/0.01151, allocations: 11.98 kB / 0.9882 GB, free: 10.45 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.713e-05/0.01154, allocations: 12.5 kB / 0.9882 GB, free: 10.43 MB / 0.9011 GB Notification: Performance of SimCode: time 3.91e-07/0.01154, allocations: 0 / 0.9882 GB, free: 10.43 MB / 0.9011 GB Notification: Performance of Templates: time 0.004047/0.01559, allocations: 0.8387 MB / 0.989 GB, free: 9.641 MB / 0.9011 GB " [Timeout remaining time 300] 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: 9.00399790192023]