Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008201/0.008201, allocations: 99 kB / 15.73 MB, free: 6.008 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.002122/0.002123, allocations: 196.1 kB / 16.68 MB, free: 5.934 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.61/1.61, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7866/0.7866, allocations: 93.71 MB / 384.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00321/0.00321, allocations: 83.86 kB / 0.5204 GB, free: 5.805 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1657, allocations: 68.26 MB / 0.5871 GB, free: 1.469 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.3936/0.5593, allocations: 53.27 MB / 0.6391 GB, free: 3.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.03062/0.59, allocations: 21.57 MB / 0.6602 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002995/0.593, allocations: 71.75 kB / 0.6603 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003642/0.5967, allocations: 0.8997 MB / 0.6611 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006754/0.6036, allocations: 1.689 MB / 0.6628 GB, free: 344 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004895/0.6085, allocations: 1.332 MB / 0.6641 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004934/0.6134, allocations: 2.564 MB / 0.6666 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.6146, allocations: 491.2 kB / 0.6671 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.6174, allocations: 1.053 MB / 0.6681 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002263/0.6197, allocations: 0.9418 MB / 0.669 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0005875/0.6203, allocations: 126.2 kB / 0.6691 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005093/0.6254, allocations: 1.241 MB / 0.6703 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006772/0.6261, allocations: 338.2 kB / 0.6707 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.6283, allocations: 0.9019 MB / 0.6715 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.6364, allocations: 2.69 MB / 0.6742 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.6364, allocations: 0 / 0.6742 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6364, allocations: 1.531 kB / 0.6742 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001156/0.6366, allocations: 0 / 0.6742 GB, free: 9.137 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.006751/0.6433, allocations: 2.428 MB / 0.6765 GB, free: 7 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.6434, allocations: 8.031 kB / 0.6765 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006377/0.644, allocations: 226.5 kB / 0.6768 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003103/0.6471, allocations: 1.294 MB / 0.678 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.621e-05/0.6473, allocations: 87.16 kB / 0.6781 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002255/0.6475, allocations: 123.9 kB / 0.6782 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/0.6501, allocations: 1.218 MB / 0.6794 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.6501, allocations: 3.984 kB / 0.6794 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.6502, allocations: 47.94 kB / 0.6795 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.137e-05/0.6503, allocations: 28 kB / 0.6795 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/0.6526, allocations: 1.137 MB / 0.6806 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007966/0.6606, allocations: 5.013 MB / 0.6855 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.6622, allocations: 0.8907 MB / 0.6864 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007901/0.663, allocations: 482.3 kB / 0.6868 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00647/0.6695, allocations: 5.162 MB / 0.6919 GB, free: 5.875 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.6696, allocations: 43.56 kB / 0.6919 GB, free: 5.824 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=103): time 3.307e-06/0.6696, allocations: 0 / 0.6919 GB, free: 5.824 MB / 0.5294 GB Notification: Performance of matching and sorting (n=103): time 0.004109/0.6737, allocations: 1.735 MB / 0.6936 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.6738, allocations: 64.41 kB / 0.6937 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/0.6759, allocations: 1.284 MB / 0.6949 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.901e-05/0.676, allocations: 45.7 kB / 0.695 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007431/0.6768, allocations: 0.7622 MB / 0.6957 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.6772, allocations: 368.8 kB / 0.6961 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003228/0.6775, allocations: 174.6 kB / 0.6962 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001859/0.6777, allocations: 341.9 kB / 0.6966 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006426/0.6784, allocations: 301.9 kB / 0.6968 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.6792, allocations: 434 kB / 0.6973 GB, free: 204 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.6808, allocations: 0.766 MB / 0.698 GB, free: 15.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.6808, allocations: 7.938 kB / 0.698 GB, free: 15.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002716/0.6836, allocations: 1.151 MB / 0.6991 GB, free: 14.22 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.6836, allocations: 8 kB / 0.6991 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.6836, allocations: 0 / 0.6991 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007232/0.6844, allocations: 163.6 kB / 0.6993 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007329/0.6851, allocations: 199.7 kB / 0.6995 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005379/0.6905, allocations: 4.821 MB / 0.7042 GB, free: 8.617 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.6916, allocations: 91.3 kB / 0.7043 GB, free: 8.527 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.6918, allocations: 48.03 kB / 0.7043 GB, free: 8.48 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007007/0.6925, allocations: 274.1 kB / 0.7046 GB, free: 8.203 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004993/0.693, allocations: 170.9 kB / 0.7048 GB, free: 8.035 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.6965, allocations: 1.642 MB / 0.7064 GB, free: 6.371 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.6965, allocations: 12 kB / 0.7064 GB, free: 6.359 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.6966, allocations: 4 kB / 0.7064 GB, free: 6.355 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.6966, allocations: 3.984 kB / 0.7064 GB, free: 6.352 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005378/0.702, allocations: 2.637 MB / 0.709 GB, free: 3.625 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.702, allocations: 0 / 0.709 GB, free: 3.625 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006183/0.7026, allocations: 163.8 kB / 0.7091 GB, free: 3.465 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006349/0.7032, allocations: 178.5 kB / 0.7093 GB, free: 3.281 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.404e-05/0.7034, allocations: 35.98 kB / 0.7093 GB, free: 3.246 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004886/0.7082, allocations: 4.81 MB / 0.714 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.7083, allocations: 4 kB / 0.714 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003339/0.7116, allocations: 1.635 MB / 0.7156 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008669/0.7125, allocations: 355.5 kB / 0.7159 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/0.7129, allocations: 31.92 kB / 0.716 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000713/0.7136, allocations: 24 kB / 0.716 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.7138, allocations: 92.75 kB / 0.7161 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.7139, allocations: 35.98 kB / 0.7161 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001462/0.7153, allocations: 0.9093 MB / 0.717 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/0.7153, allocations: 0 / 0.717 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002222/0.7176, allocations: 0.5962 MB / 0.7176 GB, free: 10.28 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/0.7192, allocations: 0.7277 MB / 0.7183 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002531/0.7217, allocations: 1.196 MB / 0.7195 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7217, allocations: 4 kB / 0.7195 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.7231, allocations: 0.8294 MB / 0.7203 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002992/0.7261, allocations: 0.5225 MB / 0.7208 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005814/0.732, allocations: 2.802 MB / 0.7235 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.7332, allocations: 1.261 MB / 0.7248 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001355/0.7346, allocations: 294.9 kB / 0.725 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/0.735, allocations: 135.4 kB / 0.7252 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/0.735, allocations: 0 / 0.7252 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of Templates: time 0.05857/0.7936, allocations: 29.49 MB / 0.754 GB, free: 5.145 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches