Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.00135/0.00135, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.00156/0.00156, allocations: 208.7 kB / 23.04 MB, free: 5.074 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.438/1.438, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.757/0.757, allocations: 94.56 MB / 407.8 MB, free: 9.191 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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) [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.00239/0.00239, allocations: 85.83 kB / 0.5557 GB, free: 38.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1556, allocations: 73.06 MB / 0.6271 GB, free: 492 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.0603/0.2159, allocations: 54.37 MB / 0.6802 GB, free: 9.914 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.02771/0.2436, allocations: 21.8 MB / 0.7015 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002453/0.246, allocations: 103.1 kB / 0.7016 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.2486, allocations: 0.908 MB / 0.7024 GB, free: 3.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005348/0.2539, allocations: 1.728 MB / 0.7041 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004407/0.2584, allocations: 1.368 MB / 0.7055 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00436/0.2627, allocations: 2.583 MB / 0.708 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007063/0.2634, allocations: 318.7 kB / 0.7083 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002315/0.2657, allocations: 1.113 MB / 0.7094 GB, free: 11.87 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.2671, allocations: 0.9639 MB / 0.7103 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.2673, allocations: 128 kB / 0.7104 GB, free: 10.77 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003911/0.2712, allocations: 1.284 MB / 0.7117 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000369/0.2715, allocations: 354.3 kB / 0.712 GB, free: 9.141 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.2726, allocations: 0.8933 MB / 0.7129 GB, free: 8.242 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006003/0.2786, allocations: 2.692 MB / 0.7155 GB, free: 5.539 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2786, allocations: 0 / 0.7155 GB, free: 5.539 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2786, allocations: 0 / 0.7155 GB, free: 5.539 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.919e-05/0.2786, allocations: 7.938 kB / 0.7155 GB, free: 5.531 MB / 0.545 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.004785/0.2834, allocations: 2.349 MB / 0.7178 GB, free: 3.137 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.2835, allocations: 12.03 kB / 0.7178 GB, free: 3.125 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.441e-05/0.2835, allocations: 26.28 kB / 0.7179 GB, free: 3.098 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.2837, allocations: 173.2 kB / 0.718 GB, free: 2.918 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000397/0.2841, allocations: 226.5 kB / 0.7183 GB, free: 2.695 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/0.2866, allocations: 1.179 MB / 0.7194 GB, free: 1.469 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.359e-05/0.2867, allocations: 86.28 kB / 0.7195 GB, free: 1.383 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.2868, allocations: 120 kB / 0.7196 GB, free: 1.266 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.2889, allocations: 1.229 MB / 0.7208 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2889, allocations: 0 / 0.7208 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.742e-05/0.289, allocations: 51.98 kB / 0.7209 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.289, allocations: 31.94 kB / 0.7209 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.291, allocations: 1.176 MB / 0.722 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006843/0.2978, allocations: 4.961 MB / 0.7269 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.2994, allocations: 0.8203 MB / 0.7277 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007092/0.3001, allocations: 426.3 kB / 0.7281 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003704/0.3038, allocations: 1.765 MB / 0.7298 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.3038, allocations: 51.48 kB / 0.7299 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 2.555e-06/0.3038, allocations: 4 kB / 0.7299 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003601/0.3074, allocations: 1.482 MB / 0.7313 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.3075, allocations: 68.41 kB / 0.7314 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.3095, allocations: 1.284 MB / 0.7326 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3096, allocations: 41.7 kB / 0.7327 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007194/0.3103, allocations: 0.7622 MB / 0.7334 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.3107, allocations: 372.8 kB / 0.7338 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/0.311, allocations: 170.6 kB / 0.7339 GB, free: 2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3112, allocations: 349.9 kB / 0.7343 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006589/0.3118, allocations: 301.9 kB / 0.7345 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007606/0.3126, allocations: 437.9 kB / 0.735 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.3139, allocations: 0.7699 MB / 0.7357 GB, free: 92 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.314, allocations: 0 / 0.7357 GB, free: 92 kB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002479/0.3164, allocations: 1.147 MB / 0.7368 GB, free: 14.92 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3165, allocations: 4 kB / 0.7368 GB, free: 14.92 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3165, allocations: 7.938 kB / 0.7368 GB, free: 14.91 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006563/0.3171, allocations: 162.7 kB / 0.737 GB, free: 14.74 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007484/0.3179, allocations: 191.8 kB / 0.7372 GB, free: 14.55 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004371/0.3222, allocations: 4.519 MB / 0.7416 GB, free: 9.695 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008967/0.3231, allocations: 91.34 kB / 0.7417 GB, free: 9.605 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.3232, allocations: 44.05 kB / 0.7417 GB, free: 9.562 MB / 0.5763 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.000531/0.3238, allocations: 278.6 kB / 0.742 GB, free: 9.281 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.3241, allocations: 174.8 kB / 0.7422 GB, free: 9.109 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/0.3271, allocations: 1.638 MB / 0.7438 GB, free: 7.449 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.3271, allocations: 8 kB / 0.7438 GB, free: 7.441 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3271, allocations: 4 kB / 0.7438 GB, free: 7.438 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.3272, allocations: 8.109 kB / 0.7438 GB, free: 7.43 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004775/0.3319, allocations: 2.597 MB / 0.7463 GB, free: 4.742 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3319, allocations: 0 / 0.7463 GB, free: 4.742 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006143/0.3325, allocations: 171.7 kB / 0.7465 GB, free: 4.574 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006332/0.3332, allocations: 162.6 kB / 0.7466 GB, free: 4.406 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.903e-05/0.3333, allocations: 35.98 kB / 0.7467 GB, free: 4.371 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2932/0.6265, allocations: 4.515 MB / 0.7511 GB, free: 117 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.6265, allocations: 2.75 kB / 0.7511 GB, free: 117 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003103/0.6296, allocations: 1.626 MB / 0.7527 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005692/0.6302, allocations: 275.9 kB / 0.7529 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.6303, allocations: 30.69 kB / 0.753 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005521/0.6309, allocations: 29.7 kB / 0.753 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.6311, allocations: 86.64 kB / 0.7531 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-05/0.6312, allocations: 41.84 kB / 0.7531 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.001398/0.6326, allocations: 0.9046 MB / 0.754 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/0.6326, allocations: 0.5 kB / 0.754 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.001875/0.6345, allocations: 0.5946 MB / 0.7546 GB, free: 116.7 MB / 0.5763 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.003949/0.6384, allocations: 2.81 MB / 0.7573 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.001848/0.6403, allocations: 1.147 MB / 0.7584 GB, free: 115 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.6403, allocations: 3.906 kB / 0.7584 GB, free: 115 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0009573/0.6412, allocations: 0.7846 MB / 0.7592 GB, free: 114.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.6435, allocations: 0.5229 MB / 0.7597 GB, free: 114.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01911/0.6626, allocations: 10.72 MB / 0.7702 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.6632, allocations: 1.267 MB / 0.7714 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.001171/0.6644, allocations: 293.6 kB / 0.7717 GB, free: 108.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006827/0.6651, allocations: 0.7044 MB / 0.7724 GB, free: 107.9 MB / 0.5763 GB Notification: Performance of SimCode: time 1.032e-06/0.6651, allocations: 0 / 0.7724 GB, free: 107.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07784/0.7429, allocations: 46.43 MB / 0.8177 GB, free: 66.27 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.02, allocations: 6.641 kB / 0.8177 GB, free: 66.27 MB / 0.5763 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.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: 18.799975077039562]