Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009177/0.009177, allocations: 99.47 kB / 15.73 MB, free: 6.012 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.002613/0.002613, allocations: 197.6 kB / 16.67 MB, free: 5.949 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.635/1.635, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7684/0.7684, allocations: 93.71 MB / 384.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002405/0.002405, allocations: 79.88 kB / 0.5204 GB, free: 5.82 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1537, allocations: 68.26 MB / 0.5871 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5368/0.6905, allocations: 164.4 MB / 0.7476 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01662/0.7072, allocations: 12.93 MB / 0.7602 GB, free: 1.008 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.7085, allocations: 35.75 kB / 0.7603 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.7103, allocations: 0.5784 MB / 0.7608 GB, free: 400 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002816/0.7132, allocations: 0.8813 MB / 0.7617 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002523/0.7157, allocations: 0.8174 MB / 0.7625 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002102/0.7178, allocations: 1.361 MB / 0.7638 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000553/0.7184, allocations: 324.6 kB / 0.7641 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.7194, allocations: 0.5523 MB / 0.7647 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008729/0.7203, allocations: 0.6653 MB / 0.7653 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.7204, allocations: 76 kB / 0.7654 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003294/0.7237, allocations: 1.392 MB / 0.7668 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.7239, allocations: 203 kB / 0.767 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0006086/0.7246, allocations: 0.5128 MB / 0.7675 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.728, allocations: 1.581 MB / 0.769 GB, free: 8 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.728, allocations: 0 / 0.769 GB, free: 8 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.024e-06/0.728, allocations: 0 / 0.769 GB, free: 8 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.713e-05/0.7281, allocations: 0 / 0.769 GB, free: 8 MB / 0.6075 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.00265/0.7307, allocations: 1.47 MB / 0.7704 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.7308, allocations: 8.031 kB / 0.7704 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.731, allocations: 128.1 kB / 0.7706 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.7324, allocations: 0.796 MB / 0.7713 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.052e-05/0.7324, allocations: 50 kB / 0.7714 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.7325, allocations: 71.95 kB / 0.7715 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.7339, allocations: 0.7322 MB / 0.7722 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.7339, allocations: 4 kB / 0.7722 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.003e-05/0.734, allocations: 28 kB / 0.7722 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.734, allocations: 19.98 kB / 0.7722 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.7352, allocations: 0.6402 MB / 0.7728 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.7392, allocations: 3.1 MB / 0.7759 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.7405, allocations: 0.5791 MB / 0.7764 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000456/0.741, allocations: 255.1 kB / 0.7767 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002827/0.7438, allocations: 2.588 MB / 0.7792 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.7439, allocations: 39.12 kB / 0.7792 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=55): time 4.077e-06/0.7439, allocations: 3.984 kB / 0.7793 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of matching and sorting (n=56): time 0.00385/0.7477, allocations: 1.806 MB / 0.781 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.7478, allocations: 55.97 kB / 0.7811 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009455/0.7488, allocations: 0.6967 MB / 0.7817 GB, free: 9.973 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.7488, allocations: 33.7 kB / 0.7818 GB, free: 9.934 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/0.7492, allocations: 444.9 kB / 0.7822 GB, free: 9.496 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.7494, allocations: 214.1 kB / 0.7824 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.7495, allocations: 86.25 kB / 0.7825 GB, free: 9.195 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.7497, allocations: 326 kB / 0.7828 GB, free: 8.871 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003333/0.75, allocations: 165 kB / 0.783 GB, free: 8.711 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.7504, allocations: 231.2 kB / 0.7832 GB, free: 8.465 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008112/0.7512, allocations: 431.7 kB / 0.7836 GB, free: 8.027 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7513, allocations: 4 kB / 0.7836 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001336/0.7526, allocations: 0.6514 MB / 0.7842 GB, free: 7.363 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.7526, allocations: 4 kB / 0.7842 GB, free: 7.359 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.7526, allocations: 0 / 0.7842 GB, free: 7.359 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004608/0.7531, allocations: 112.8 kB / 0.7843 GB, free: 7.246 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.7535, allocations: 107.8 kB / 0.7844 GB, free: 7.141 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.756, allocations: 2.043 MB / 0.7864 GB, free: 4.965 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000392/0.7564, allocations: 15.98 kB / 0.7865 GB, free: 4.949 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/0.7565, allocations: 20 kB / 0.7865 GB, free: 4.93 MB / 0.6231 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.0003776/0.7569, allocations: 217.7 kB / 0.7867 GB, free: 4.707 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.757, allocations: 95.33 kB / 0.7868 GB, free: 4.613 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.7587, allocations: 0.8634 MB / 0.7876 GB, free: 3.715 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.7588, allocations: 8 kB / 0.7876 GB, free: 3.707 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.7588, allocations: 3.25 kB / 0.7876 GB, free: 3.707 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.7588, allocations: 7.922 kB / 0.7876 GB, free: 3.699 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002513/0.7613, allocations: 1.543 MB / 0.7891 GB, free: 2.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7613, allocations: 4.094 kB / 0.7891 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.7617, allocations: 87.89 kB / 0.7892 GB, free: 2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003859/0.762, allocations: 116.7 kB / 0.7893 GB, free: 1.883 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.7621, allocations: 23.98 kB / 0.7894 GB, free: 1.859 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002328/0.7644, allocations: 2.043 MB / 0.7914 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.7645, allocations: 0 / 0.7914 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.7663, allocations: 0.9845 MB / 0.7923 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.7665, allocations: 164.5 kB / 0.7925 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.736e-05/0.7666, allocations: 12 kB / 0.7925 GB, free: 14.47 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.7669, allocations: 15.98 kB / 0.7925 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.7671, allocations: 48.44 kB / 0.7926 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.555e-05/0.7671, allocations: 19.98 kB / 0.7926 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007214/0.7679, allocations: 0.5068 MB / 0.7931 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/0.7679, allocations: 0 / 0.7931 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001053/0.7689, allocations: 335.5 kB / 0.7934 GB, free: 13.56 MB / 0.6387 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.0008402/0.7698, allocations: 491 kB / 0.7939 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001378/0.7712, allocations: 0.6193 MB / 0.7945 GB, free: 12.44 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7712, allocations: 0 / 0.7945 GB, free: 12.44 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0007867/0.772, allocations: 437.6 kB / 0.7949 GB, free: 12 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.7733, allocations: 276 kB / 0.7951 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.7763, allocations: 1.609 MB / 0.7967 GB, free: 10.1 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.777, allocations: 1.005 MB / 0.7977 GB, free: 9.059 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000522/0.7775, allocations: 145.9 kB / 0.7978 GB, free: 8.91 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.7777, allocations: 75.36 kB / 0.7979 GB, free: 8.84 MB / 0.6387 GB Notification: Performance of SimCode: time 5.129e-06/0.7777, allocations: 4 kB / 0.7979 GB, free: 8.836 MB / 0.6387 GB Notification: Performance of Templates: time 0.03276/0.8105, allocations: 16.62 MB / 0.8141 GB, free: 8.332 MB / 0.6544 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches