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.001568/0.001568, allocations: 97.88 kB / 19.73 MB, free: 2.117 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: 214.5 kB / 23.03 MB, free: 4.922 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.683/1.683, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.838/0.838, allocations: 94.62 MB / 407.8 MB, free: 8.918 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.002525/0.002525, allocations: 88.42 kB / 0.5557 GB, free: 38.42 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1398, allocations: 73.05 MB / 0.6271 GB, free: 196 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05638/0.1962, allocations: 49.05 MB / 0.6749 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02635/0.2225, allocations: 19.69 MB / 0.6942 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001878/0.2244, allocations: 99.06 kB / 0.6943 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.2271, allocations: 0.7914 MB / 0.695 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005533/0.2326, allocations: 1.712 MB / 0.6967 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004838/0.2375, allocations: 1.333 MB / 0.698 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004989/0.2425, allocations: 2.586 MB / 0.7005 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.2437, allocations: 310.8 kB / 0.7008 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003276/0.2469, allocations: 1.116 MB / 0.7019 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002024/0.249, allocations: 0.9601 MB / 0.7029 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0006207/0.2496, allocations: 131.9 kB / 0.703 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00464/0.2542, allocations: 1.147 MB / 0.7041 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000773/0.255, allocations: 346.3 kB / 0.7044 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.2567, allocations: 0.7265 MB / 0.7052 GB, free: 15.89 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007367/0.2641, allocations: 2.661 MB / 0.7078 GB, free: 13.23 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.2641, allocations: 0 / 0.7078 GB, free: 13.23 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.943e-06/0.2641, allocations: 0 / 0.7078 GB, free: 13.23 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001106/0.2642, allocations: 4 kB / 0.7078 GB, free: 13.22 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.006474/0.2707, allocations: 2.349 MB / 0.7101 GB, free: 10.83 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/0.2707, allocations: 12.03 kB / 0.7101 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.797e-05/0.2708, allocations: 30.28 kB / 0.7101 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003727/0.2712, allocations: 169.2 kB / 0.7103 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008618/0.272, allocations: 254.5 kB / 0.7105 GB, free: 10.36 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.2749, allocations: 1.172 MB / 0.7116 GB, free: 9.141 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.201e-05/0.2749, allocations: 86.28 kB / 0.7117 GB, free: 9.055 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.2752, allocations: 120 kB / 0.7118 GB, free: 8.938 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002823/0.278, allocations: 1.285 MB / 0.7131 GB, free: 7.59 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.278, allocations: 0 / 0.7131 GB, free: 7.59 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.2781, allocations: 47.98 kB / 0.7131 GB, free: 7.543 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-05/0.2782, allocations: 35.94 kB / 0.7132 GB, free: 7.508 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.2805, allocations: 1.145 MB / 0.7143 GB, free: 6.355 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007629/0.2882, allocations: 3.14 MB / 0.7174 GB, free: 3.145 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.2899, allocations: 0.865 MB / 0.7182 GB, free: 2.258 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007897/0.2907, allocations: 426.2 kB / 0.7186 GB, free: 1.844 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00416/0.2949, allocations: 1.546 MB / 0.7201 GB, free: 280 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.2949, allocations: 51.56 kB / 0.7202 GB, free: 220 kB / 0.545 GB Notification: Performance of pre-optimization done (n=103): time 3.146e-06/0.2949, allocations: 0 / 0.7202 GB, free: 220 kB / 0.545 GB Notification: Performance of matching and sorting (n=103): time 0.00392/0.2988, allocations: 1.45 MB / 0.7216 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.2989, allocations: 64.34 kB / 0.7216 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.3013, allocations: 1.288 MB / 0.7229 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.875e-05/0.3014, allocations: 45.7 kB / 0.7229 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007915/0.3022, allocations: 0.7661 MB / 0.7237 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003966/0.3026, allocations: 368.7 kB / 0.724 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.3029, allocations: 166.7 kB / 0.7242 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3031, allocations: 349.9 kB / 0.7245 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006228/0.3037, allocations: 293.9 kB / 0.7248 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008256/0.3045, allocations: 0.5055 MB / 0.7253 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.306, allocations: 0.7607 MB / 0.7261 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.306, allocations: 0 / 0.7261 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002771/0.3088, allocations: 1.139 MB / 0.7272 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3088, allocations: 8.375 kB / 0.7272 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3088, allocations: 8 kB / 0.7272 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008273/0.3097, allocations: 162.4 kB / 0.7273 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007737/0.3104, allocations: 191.7 kB / 0.7275 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00491/0.3153, allocations: 4.488 MB / 0.7319 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.3165, allocations: 83.36 kB / 0.732 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.3167, allocations: 39.98 kB / 0.732 GB, free: 3.543 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.0006857/0.3174, allocations: 281.5 kB / 0.7323 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/0.3179, allocations: 170.9 kB / 0.7325 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.321, allocations: 1.566 MB / 0.734 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.321, allocations: 15.94 kB / 0.734 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.321, allocations: 4 kB / 0.734 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.321, allocations: 7.969 kB / 0.734 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004674/0.3257, allocations: 2.32 MB / 0.7363 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.3257, allocations: 7.938 kB / 0.7363 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.3263, allocations: 159.7 kB / 0.7364 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006353/0.327, allocations: 170.6 kB / 0.7366 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.394e-05/0.327, allocations: 27.98 kB / 0.7366 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004441/0.3315, allocations: 4.492 MB / 0.741 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3315, allocations: 3.938 kB / 0.741 GB, free: 9.852 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/0.3347, allocations: 1.568 MB / 0.7425 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/0.3355, allocations: 266.6 kB / 0.7428 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.3358, allocations: 23.94 kB / 0.7428 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007149/0.3365, allocations: 23.98 kB / 0.7428 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3367, allocations: 88.72 kB / 0.7429 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.593e-05/0.3368, allocations: 36.08 kB / 0.743 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00151/0.3383, allocations: 0.9093 MB / 0.7439 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3383, allocations: 0 / 0.7439 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001663/0.3399, allocations: 0.5457 MB / 0.7444 GB, free: 6.359 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.004204/0.3441, allocations: 2.66 MB / 0.747 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002303/0.3464, allocations: 1.126 MB / 0.7481 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.3464, allocations: 0 / 0.7481 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.3478, allocations: 0.767 MB / 0.7488 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/0.3507, allocations: 0.5141 MB / 0.7493 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3187/0.6694, allocations: 10.59 MB / 0.7597 GB, free: 115.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009916/0.6704, allocations: 0.6719 MB / 0.7603 GB, free: 115.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001177/0.6716, allocations: 270.6 kB / 0.7606 GB, free: 115.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008382/0.6725, allocations: 0.6903 MB / 0.7613 GB, free: 114.5 MB / 0.5762 GB Notification: Performance of SimCode: time 8.92e-07/0.6725, allocations: 0.5 kB / 0.7613 GB, free: 114.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/0.7751, allocations: 46.87 MB / 0.807 GB, free: 76.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18/18.77, allocations: 3.859 kB / 0.807 GB, free: 76.93 MB / 0.5762 GB " [Timeout remaining time 641] (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: 23.004347881069407]