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.001764/0.001764, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001879/0.001879, allocations: 215.2 kB / 22.25 MB, free: 4.852 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.685/1.685, allocations: 230.6 MB / 256 MB, free: 7.789 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 1.055/1.055, allocations: 94.62 MB / 407 MB, free: 8.852 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",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.002717/0.002717, allocations: 82 kB / 0.5549 GB, free: 38.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2177, allocations: 73.05 MB / 0.6263 GB, free: 172 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06606/0.2837, allocations: 49.09 MB / 0.6742 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02891/0.3126, allocations: 19.73 MB / 0.6935 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002666/0.3153, allocations: 103 kB / 0.6936 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002704/0.318, allocations: 0.7875 MB / 0.6944 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006865/0.3249, allocations: 1.712 MB / 0.696 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004695/0.3296, allocations: 1.329 MB / 0.6973 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004961/0.3345, allocations: 2.583 MB / 0.6998 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008201/0.3353, allocations: 302.7 kB / 0.7001 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00287/0.3382, allocations: 1.12 MB / 0.7012 GB, free: 3.117 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001666/0.3399, allocations: 0.8702 MB / 0.7021 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002556/0.3401, allocations: 124 kB / 0.7022 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004502/0.3446, allocations: 1.143 MB / 0.7033 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000445/0.3451, allocations: 342.4 kB / 0.7036 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3461, allocations: 0.7303 MB / 0.7044 GB, free: 15.9 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006192/0.3523, allocations: 2.665 MB / 0.707 GB, free: 13.23 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3523, allocations: 0 / 0.707 GB, free: 13.23 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.116e-06/0.3523, allocations: 0 / 0.707 GB, free: 13.23 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.738e-05/0.3523, allocations: 0 / 0.707 GB, free: 13.23 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.005236/0.3576, allocations: 2.338 MB / 0.7092 GB, free: 10.85 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.833e-05/0.3577, allocations: 11.97 kB / 0.7093 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002495/0.3579, allocations: 177.2 kB / 0.7094 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007563/0.3587, allocations: 254.5 kB / 0.7097 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.3614, allocations: 1.175 MB / 0.7108 GB, free: 9.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.582e-05/0.3615, allocations: 94.28 kB / 0.7109 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.3617, allocations: 119.9 kB / 0.711 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.3641, allocations: 1.278 MB / 0.7123 GB, free: 7.633 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.3641, allocations: 3.938 kB / 0.7123 GB, free: 7.629 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.967e-05/0.3642, allocations: 48 kB / 0.7123 GB, free: 7.582 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/0.3642, allocations: 28 kB / 0.7123 GB, free: 7.555 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.3662, allocations: 1.141 MB / 0.7135 GB, free: 6.406 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006238/0.3725, allocations: 3.136 MB / 0.7165 GB, free: 3.199 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.3741, allocations: 0.865 MB / 0.7174 GB, free: 2.316 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/0.3748, allocations: 418.3 kB / 0.7178 GB, free: 1.91 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003831/0.3786, allocations: 1.55 MB / 0.7193 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.3787, allocations: 43.56 kB / 0.7193 GB, free: 292 kB / 0.545 GB Notification: Performance of pre-optimization done (n=103): time 2.765e-06/0.3787, allocations: 0 / 0.7193 GB, free: 292 kB / 0.545 GB Notification: Performance of matching and sorting (n=103): time 0.00358/0.3823, allocations: 1.458 MB / 0.7207 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.3824, allocations: 68.41 kB / 0.7208 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.3845, allocations: 1.284 MB / 0.7221 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.653e-05/0.3846, allocations: 49.7 kB / 0.7221 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008258/0.3854, allocations: 0.7621 MB / 0.7228 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003836/0.3858, allocations: 372.8 kB / 0.7232 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.3861, allocations: 166.6 kB / 0.7234 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001916/0.3862, allocations: 345.9 kB / 0.7237 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005772/0.3868, allocations: 289.9 kB / 0.724 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008491/0.3877, allocations: 0.5055 MB / 0.7245 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.3891, allocations: 0.7723 MB / 0.7252 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3891, allocations: 0 / 0.7252 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002558/0.3917, allocations: 1.139 MB / 0.7263 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.3917, allocations: 7.984 kB / 0.7263 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.3917, allocations: 4 kB / 0.7263 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006668/0.3924, allocations: 166.7 kB / 0.7265 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007141/0.3931, allocations: 195.7 kB / 0.7267 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005213/0.3983, allocations: 4.477 MB / 0.7311 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009724/0.3993, allocations: 95.28 kB / 0.7311 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3994, allocations: 39.98 kB / 0.7312 GB, free: 3.59 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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.0007195/0.4001, allocations: 273.8 kB / 0.7314 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.4004, allocations: 174.8 kB / 0.7316 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.4035, allocations: 1.576 MB / 0.7332 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.4035, allocations: 8 kB / 0.7332 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4035, allocations: 7.938 kB / 0.7332 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4035, allocations: 3.984 kB / 0.7332 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004573/0.4081, allocations: 2.328 MB / 0.7354 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4081, allocations: 0 / 0.7354 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.4087, allocations: 151.8 kB / 0.7356 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006048/0.4093, allocations: 170.5 kB / 0.7358 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-05/0.4094, allocations: 31.98 kB / 0.7358 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005249/0.4146, allocations: 4.491 MB / 0.7402 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.4146, allocations: 7.969 kB / 0.7402 GB, free: 9.902 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003089/0.4177, allocations: 1.568 MB / 0.7417 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007249/0.4184, allocations: 262.6 kB / 0.742 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.4186, allocations: 23.94 kB / 0.742 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005441/0.4192, allocations: 27.98 kB / 0.742 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.4194, allocations: 88.73 kB / 0.7421 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.547e-05/0.4195, allocations: 35.97 kB / 0.7421 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001532/0.421, allocations: 0.9093 MB / 0.743 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.421, allocations: 0 / 0.743 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001708/0.4227, allocations: 0.5379 MB / 0.7435 GB, free: 6.418 MB / 0.5762 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 (86): * Single equations (assignments): 83 * 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.004473/0.4272, allocations: 2.652 MB / 0.7461 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002332/0.4295, allocations: 1.129 MB / 0.7472 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4295, allocations: 0 / 0.7472 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.4308, allocations: 0.768 MB / 0.748 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/0.4332, allocations: 0.5364 MB / 0.7485 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5181/0.9512, allocations: 10.58 MB / 0.7588 GB, free: 115 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001293/0.9525, allocations: 0.6748 MB / 0.7595 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001338/0.9539, allocations: 267.1 kB / 0.7598 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.9549, allocations: 0.6894 MB / 0.7604 GB, free: 114.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.604e-06/0.9549, allocations: 3.906 kB / 0.7604 GB, free: 114.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/1.061, allocations: 47.13 MB / 0.8065 GB, free: 76.52 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/16.56, allocations: 0 / 0.8065 GB, free: 76.52 MB / 0.5762 GB " [Timeout remaining time 643] (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: 21.218881977256387]