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.001677/0.001677, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002632/0.002632, allocations: 219 kB / 22.25 MB, free: 5.121 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.799/1.799, allocations: 230.6 MB / 256 MB, free: 7.984 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.9922/0.9922, allocations: 94.56 MB / 407 MB, free: 9.168 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.002838/0.002838, allocations: 90.14 kB / 0.555 GB, free: 38.48 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.2017, allocations: 73.06 MB / 0.6263 GB, free: 448 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.07469/0.2764, allocations: 54.36 MB / 0.6794 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03616/0.3126, allocations: 21.81 MB / 0.7007 GB, free: 4 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003506/0.3161, allocations: 99.06 kB / 0.7008 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003991/0.3201, allocations: 0.9081 MB / 0.7017 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008029/0.3281, allocations: 1.728 MB / 0.7034 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006388/0.3345, allocations: 1.366 MB / 0.7047 GB, free: 15.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0065/0.341, allocations: 2.587 MB / 0.7072 GB, free: 13.28 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001356/0.3423, allocations: 314.7 kB / 0.7075 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.346, allocations: 1.113 MB / 0.7086 GB, free: 11.83 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.3485, allocations: 0.9562 MB / 0.7095 GB, free: 10.87 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0009202/0.3494, allocations: 128 kB / 0.7097 GB, free: 10.74 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007178/0.3566, allocations: 1.288 MB / 0.7109 GB, free: 9.453 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.3577, allocations: 346.3 kB / 0.7113 GB, free: 9.113 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.36, allocations: 0.9127 MB / 0.7121 GB, free: 8.195 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.3711, allocations: 2.689 MB / 0.7148 GB, free: 5.496 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.839e-06/0.3711, allocations: 0 / 0.7148 GB, free: 5.496 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.687e-06/0.3711, allocations: 0 / 0.7148 GB, free: 5.496 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001359/0.3712, allocations: 0 / 0.7148 GB, free: 5.496 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.008457/0.3797, allocations: 2.349 MB / 0.7171 GB, free: 3.102 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.798e-05/0.3798, allocations: 8.031 kB / 0.7171 GB, free: 3.094 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005233/0.3803, allocations: 177.2 kB / 0.7172 GB, free: 2.91 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009641/0.3813, allocations: 226.5 kB / 0.7175 GB, free: 2.688 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003933/0.3852, allocations: 1.176 MB / 0.7186 GB, free: 1.465 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.3853, allocations: 90.28 kB / 0.7187 GB, free: 1.375 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002712/0.3856, allocations: 120 kB / 0.7188 GB, free: 1.258 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.3888, allocations: 1.222 MB / 0.72 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.3889, allocations: 3.938 kB / 0.72 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.925e-05/0.389, allocations: 48 kB / 0.72 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/0.389, allocations: 31.94 kB / 0.7201 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.3911, allocations: 1.18 MB / 0.7212 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00828/0.3994, allocations: 4.953 MB / 0.7261 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.401, allocations: 0.8359 MB / 0.7269 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006911/0.4017, allocations: 422.3 kB / 0.7273 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00414/0.4058, allocations: 1.765 MB / 0.729 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.4058, allocations: 43.5 kB / 0.7291 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 2.835e-06/0.4058, allocations: 4 kB / 0.7291 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003721/0.4096, allocations: 1.489 MB / 0.7305 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.4096, allocations: 68.39 kB / 0.7306 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/0.4115, allocations: 1.28 MB / 0.7318 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.4116, allocations: 45.69 kB / 0.7319 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006664/0.4122, allocations: 0.7661 MB / 0.7326 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004074/0.4126, allocations: 368.8 kB / 0.733 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.4129, allocations: 170.6 kB / 0.7331 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4131, allocations: 345.9 kB / 0.7335 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.4136, allocations: 297.9 kB / 0.7337 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008381/0.4145, allocations: 449.9 kB / 0.7342 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4159, allocations: 0.7659 MB / 0.7349 GB, free: 84 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4159, allocations: 0 / 0.7349 GB, free: 84 kB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002297/0.4182, allocations: 1.147 MB / 0.736 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.4183, allocations: 4 kB / 0.736 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4183, allocations: 4.281 kB / 0.7361 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006322/0.4189, allocations: 166.4 kB / 0.7362 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000806/0.4197, allocations: 191.8 kB / 0.7364 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/0.4247, allocations: 4.516 MB / 0.7408 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009418/0.4256, allocations: 91.34 kB / 0.7409 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/0.4258, allocations: 43.98 kB / 0.7409 GB, free: 9.559 MB / 0.5762 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.0005791/0.4264, allocations: 281.5 kB / 0.7412 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/0.4267, allocations: 174.8 kB / 0.7414 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.4301, allocations: 1.636 MB / 0.743 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4301, allocations: 8 kB / 0.743 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4301, allocations: 8 kB / 0.743 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.4301, allocations: 11.91 kB / 0.743 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005118/0.4352, allocations: 2.593 MB / 0.7455 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.4352, allocations: 0 / 0.7455 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000658/0.4359, allocations: 163.7 kB / 0.7457 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005722/0.4365, allocations: 166.7 kB / 0.7458 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-05/0.4366, allocations: 43.97 kB / 0.7459 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4375/0.8741, allocations: 4.509 MB / 0.7503 GB, free: 116.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/0.8741, allocations: 4.453 kB / 0.7503 GB, free: 116.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.8785, allocations: 1.623 MB / 0.7519 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009028/0.8794, allocations: 283.2 kB / 0.7521 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001953/0.8796, allocations: 30.23 kB / 0.7522 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/0.8802, allocations: 26.56 kB / 0.7522 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.8805, allocations: 85.55 kB / 0.7523 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.733e-05/0.8806, allocations: 40.03 kB / 0.7523 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001748/0.8823, allocations: 0.9062 MB / 0.7532 GB, free: 116.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.8823, allocations: 3.688 kB / 0.7532 GB, free: 116.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002439/0.8848, allocations: 0.5947 MB / 0.7538 GB, free: 116.5 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 (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.005184/0.8899, allocations: 2.807 MB / 0.7565 GB, free: 115.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002684/0.8926, allocations: 1.147 MB / 0.7576 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.8926, allocations: 1.5 kB / 0.7576 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.894, allocations: 0.7847 MB / 0.7584 GB, free: 114.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.8965, allocations: 0.5285 MB / 0.7589 GB, free: 114.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/0.919, allocations: 10.72 MB / 0.7694 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000959/0.9199, allocations: 1.254 MB / 0.7706 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001394/0.9213, allocations: 300.1 kB / 0.7709 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006904/0.922, allocations: 0.7039 MB / 0.7716 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/0.922, allocations: 0 / 0.7716 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/1.044, allocations: 46.41 MB / 0.8169 GB, free: 66.18 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.08/17.13, allocations: 6.828 kB / 0.8169 GB, free: 66.17 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.784610155969858]