Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.001549/0.001549, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001724/0.001724, allocations: 220.1 kB / 22.99 MB, free: 4.914 MB / 14.72 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7409/0.7409, allocations: 94.62 MB / 407.8 MB, free: 8.832 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002488/0.002488, allocations: 85.61 kB / 0.5562 GB, free: 38.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1163, allocations: 73.05 MB / 0.6275 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4843/0.6006, allocations: 143 MB / 0.7671 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01329/0.6139, allocations: 11.87 MB / 0.7787 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.615, allocations: 55.91 kB / 0.7788 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.6167, allocations: 0.5113 MB / 0.7793 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002545/0.6192, allocations: 0.883 MB / 0.7801 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.6215, allocations: 0.8078 MB / 0.7809 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001772/0.6233, allocations: 1.367 MB / 0.7823 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004015/0.6237, allocations: 194 kB / 0.7824 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.6248, allocations: 0.5848 MB / 0.783 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008422/0.6256, allocations: 0.6235 MB / 0.7836 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.6258, allocations: 77.09 kB / 0.7837 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.6283, allocations: 1.218 MB / 0.7849 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.6285, allocations: 198.1 kB / 0.7851 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004456/0.6289, allocations: 427.4 kB / 0.7855 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.6313, allocations: 1.574 MB / 0.787 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.6313, allocations: 0.9062 kB / 0.787 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6313, allocations: 0 / 0.787 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.6313, allocations: 0.9375 kB / 0.787 GB, free: 2.809 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002324/0.6337, allocations: 1.387 MB / 0.7884 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.6337, allocations: 8.938 kB / 0.7884 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.6339, allocations: 131.1 kB / 0.7885 GB, free: 18 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.6351, allocations: 0.7071 MB / 0.7892 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.6351, allocations: 58.06 kB / 0.7893 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.788e-05/0.6352, allocations: 67.09 kB / 0.7893 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.6363, allocations: 0.7394 MB / 0.79 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.6363, allocations: 0.875 kB / 0.79 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.111e-05/0.6363, allocations: 33.56 kB / 0.7901 GB, free: 17.63 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.6364, allocations: 17.84 kB / 0.7901 GB, free: 17.63 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009632/0.6373, allocations: 0.6474 MB / 0.7907 GB, free: 17.62 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/0.6399, allocations: 1.747 MB / 0.7924 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.641, allocations: 0.5184 MB / 0.7929 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/0.6413, allocations: 225.6 kB / 0.7932 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001665/0.643, allocations: 0.9053 MB / 0.794 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.643, allocations: 35.97 kB / 0.7941 GB, free: 16.85 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.134e-06/0.643, allocations: 3.406 kB / 0.7941 GB, free: 16.85 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003037/0.6461, allocations: 1.563 MB / 0.7956 GB, free: 16.44 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.6461, allocations: 57.09 kB / 0.7957 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.6468, allocations: 0.664 MB / 0.7963 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.6468, allocations: 36.2 kB / 0.7963 GB, free: 16.22 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.6471, allocations: 454.4 kB / 0.7968 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.517e-05/0.6472, allocations: 199.8 kB / 0.797 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.6473, allocations: 93.84 kB / 0.7971 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001851/0.6475, allocations: 328.8 kB / 0.7974 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.6478, allocations: 161.7 kB / 0.7975 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.6482, allocations: 235 kB / 0.7977 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006993/0.6489, allocations: 433.1 kB / 0.7982 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.6489, allocations: 0 / 0.7982 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001164/0.65, allocations: 0.6444 MB / 0.7988 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.65, allocations: 5.188 kB / 0.7988 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.6501, allocations: 2.719 kB / 0.7988 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.6504, allocations: 112 kB / 0.7989 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.6508, allocations: 98.39 kB / 0.799 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.653, allocations: 1.897 MB / 0.8008 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.6533, allocations: 13.81 kB / 0.8009 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.6534, allocations: 26.41 kB / 0.8009 GB, free: 14.15 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003204/0.6537, allocations: 203.2 kB / 0.8011 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.6538, allocations: 94.16 kB / 0.8012 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.6552, allocations: 0.8638 MB / 0.802 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6552, allocations: 9.938 kB / 0.802 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.6552, allocations: 0 / 0.802 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6553, allocations: 3.109 kB / 0.802 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.6573, allocations: 1.333 MB / 0.8033 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.6573, allocations: 4.812 kB / 0.8033 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.6576, allocations: 91.41 kB / 0.8034 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003313/0.6579, allocations: 116.4 kB / 0.8035 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.658, allocations: 19.02 kB / 0.8035 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.66, allocations: 1.9 MB / 0.8054 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.66, allocations: 6.969 kB / 0.8054 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.6616, allocations: 0.9766 MB / 0.8064 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.6618, allocations: 80.38 kB / 0.8064 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.721e-05/0.6619, allocations: 14.09 kB / 0.8065 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.6622, allocations: 20.39 kB / 0.8065 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.295e-05/0.6623, allocations: 43.48 kB / 0.8065 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.6623, allocations: 25.97 kB / 0.8065 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005543/0.6629, allocations: 483 kB / 0.807 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6629, allocations: 0 / 0.807 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008963/0.6638, allocations: 331.6 kB / 0.8073 GB, free: 11.31 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006957/0.6645, allocations: 477.6 kB / 0.8078 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001192/0.6657, allocations: 0.5891 MB / 0.8083 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.6657, allocations: 0 / 0.8083 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007588/0.6664, allocations: 420.2 kB / 0.8087 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.6675, allocations: 250.7 kB / 0.809 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.6702, allocations: 1.642 MB / 0.8106 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.6706, allocations: 415.3 kB / 0.811 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.6708, allocations: 81.73 kB / 0.8111 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of SimCode: time 7.41e-07/0.6708, allocations: 0 / 0.8111 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of Templates: time 0.02455/0.6953, allocations: 19.19 MB / 0.8298 GB, free: 1.98 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.80877311853692]