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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002001/0.002001, allocations: 107.5 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.9994/0.9994, allocations: 94.6 MB / 397.3 MB, free: 304 kB / 302.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-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: "" <> 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: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 83.83 kB / 0.5416 GB, free: 42.48 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2063, allocations: 71.85 MB / 0.6118 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06452/0.2708, allocations: 53.7 MB / 0.6642 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02971/0.3005, allocations: 21.68 MB / 0.6854 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003286/0.3038, allocations: 67.56 kB / 0.6855 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.3072, allocations: 0.8963 MB / 0.6863 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006929/0.3142, allocations: 1.735 MB / 0.688 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004992/0.3192, allocations: 1.335 MB / 0.6893 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0051/0.3243, allocations: 2.571 MB / 0.6918 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007818/0.325, allocations: 310.2 kB / 0.6921 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.3275, allocations: 1.089 MB / 0.6932 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3289, allocations: 0.9523 MB / 0.6941 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.3291, allocations: 124 kB / 0.6942 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004383/0.3335, allocations: 1.268 MB / 0.6955 GB, free: 4.031 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004347/0.3339, allocations: 346.3 kB / 0.6958 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001295/0.3352, allocations: 0.901 MB / 0.6967 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.007239/0.3425, allocations: 2.696 MB / 0.6993 GB, free: 80 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.3425, allocations: 0 / 0.6993 GB, free: 80 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3425, allocations: 0 / 0.6993 GB, free: 80 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.115e-05/0.3425, allocations: 0 / 0.6993 GB, free: 80 kB / 0.5294 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.005183/0.3477, allocations: 2.421 MB / 0.7017 GB, free: 13.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.3478, allocations: 8.031 kB / 0.7017 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000228/0.348, allocations: 169.2 kB / 0.7019 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004673/0.3485, allocations: 226.5 kB / 0.7021 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.3513, allocations: 1.306 MB / 0.7034 GB, free: 11.83 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.104e-05/0.3513, allocations: 86.28 kB / 0.7034 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.3515, allocations: 123.9 kB / 0.7036 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.3537, allocations: 1.206 MB / 0.7047 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.3537, allocations: 3.938 kB / 0.7047 GB, free: 10.37 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.644e-05/0.3538, allocations: 48 kB / 0.7048 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.3538, allocations: 28 kB / 0.7048 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002117/0.3559, allocations: 1.133 MB / 0.7059 GB, free: 9.156 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008158/0.3641, allocations: 5.009 MB / 0.7108 GB, free: 3.695 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.3658, allocations: 0.8242 MB / 0.7116 GB, free: 2.863 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007232/0.3665, allocations: 429 kB / 0.712 GB, free: 2.441 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006762/0.3732, allocations: 5.158 MB / 0.7171 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/0.3733, allocations: 51.42 kB / 0.7171 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=103): time 2.936e-06/0.3733, allocations: 0 / 0.7171 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=103): time 0.003948/0.3772, allocations: 1.727 MB / 0.7188 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.3773, allocations: 64.41 kB / 0.7189 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.3792, allocations: 1.276 MB / 0.7201 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.3792, allocations: 41.7 kB / 0.7201 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/0.3799, allocations: 0.766 MB / 0.7209 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003129/0.3803, allocations: 372.8 kB / 0.7212 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002808/0.3805, allocations: 178.6 kB / 0.7214 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002639/0.3808, allocations: 341.9 kB / 0.7217 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000567/0.3814, allocations: 297.9 kB / 0.722 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007332/0.3821, allocations: 441.9 kB / 0.7224 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.3835, allocations: 0.7698 MB / 0.7232 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3835, allocations: 0 / 0.7232 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002221/0.3857, allocations: 1.147 MB / 0.7243 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.3857, allocations: 4 kB / 0.7243 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3857, allocations: 7.984 kB / 0.7243 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000609/0.3864, allocations: 162.7 kB / 0.7245 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007183/0.3871, allocations: 191.8 kB / 0.7247 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004612/0.3917, allocations: 4.825 MB / 0.7294 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009799/0.3927, allocations: 91.36 kB / 0.7295 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.3928, allocations: 43.97 kB / 0.7295 GB, free: 15.04 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.0006285/0.3934, allocations: 273.6 kB / 0.7298 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003443/0.3938, allocations: 170.9 kB / 0.7299 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003087/0.3968, allocations: 1.641 MB / 0.7315 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.3969, allocations: 15.94 kB / 0.7316 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3969, allocations: 0 / 0.7316 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.3969, allocations: 11.92 kB / 0.7316 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.4014, allocations: 2.613 MB / 0.7341 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.4014, allocations: 4 kB / 0.7341 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.402, allocations: 163.9 kB / 0.7343 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005511/0.4026, allocations: 178.5 kB / 0.7344 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.715e-05/0.4026, allocations: 31.98 kB / 0.7345 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004476/0.4071, allocations: 4.822 MB / 0.7392 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4071, allocations: 4.031 kB / 0.7392 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.4103, allocations: 1.627 MB / 0.7408 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007349/0.411, allocations: 351.6 kB / 0.7411 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4112, allocations: 27.98 kB / 0.7411 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.4117, allocations: 31.94 kB / 0.7412 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.4119, allocations: 80.88 kB / 0.7412 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-05/0.412, allocations: 35.98 kB / 0.7413 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001463/0.4135, allocations: 0.9093 MB / 0.7422 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.4135, allocations: 0 / 0.7422 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002008/0.4155, allocations: 0.6 MB / 0.7428 GB, free: 0.8516 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.521/0.9365, allocations: 2.801 MB / 0.7455 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002846/0.9393, allocations: 1.139 MB / 0.7466 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.9393, allocations: 2.969 kB / 0.7466 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001527/0.9409, allocations: 0.7947 MB / 0.7474 GB, free: 124.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/0.9439, allocations: 0.5219 MB / 0.7479 GB, free: 124.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02331/0.9672, allocations: 10.7 MB / 0.7583 GB, free: 120.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.9683, allocations: 1.267 MB / 0.7596 GB, free: 119.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001283/0.9696, allocations: 295.6 kB / 0.7599 GB, free: 119.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007791/0.9704, allocations: 0.7076 MB / 0.7606 GB, free: 119 MB / 0.5762 GB Notification: Performance of SimCode: time 1.693e-06/0.9704, allocations: 0 / 0.7606 GB, free: 119 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/1.074, allocations: 45.79 MB / 0.8053 GB, free: 79.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/15.45, allocations: 12 kB / 0.8053 GB, free: 79.22 MB / 0.5762 GB " [Timeout remaining time 644] (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_2/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: 20.057384849060327]