Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.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.001299/0.001299, allocations: 113.4 kB / 19.73 MB, free: 2.227 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.00219/0.00219, allocations: 219.3 kB / 23.04 MB, free: 5.059 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8309/0.8309, allocations: 100.3 MB / 413.5 MB, free: 3.68 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",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.002744/0.002744, allocations: 85.17 kB / 0.564 GB, free: 35.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1455, allocations: 74.47 MB / 0.6367 GB, free: 7.656 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.542/0.6876, allocations: 165.5 MB / 0.7983 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01346/0.701, allocations: 13.08 MB / 0.8111 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001416/0.7024, allocations: 54.66 kB / 0.8112 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.7043, allocations: 0.5885 MB / 0.8117 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.7072, allocations: 0.8978 MB / 0.8126 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.7096, allocations: 0.8306 MB / 0.8134 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002537/0.7122, allocations: 1.371 MB / 0.8148 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005273/0.7127, allocations: 201.5 kB / 0.8149 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.7142, allocations: 0.599 MB / 0.8155 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.7154, allocations: 0.6666 MB / 0.8162 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.7156, allocations: 76.31 kB / 0.8163 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004104/0.7197, allocations: 1.429 MB / 0.8176 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003674/0.72, allocations: 195.8 kB / 0.8178 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007387/0.7208, allocations: 0.5108 MB / 0.8183 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003647/0.7244, allocations: 1.586 MB / 0.8199 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.7244, allocations: 0 / 0.8199 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7244, allocations: 0 / 0.8199 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.526e-05/0.7244, allocations: 0 / 0.8199 GB, free: 10.48 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002627/0.7271, allocations: 1.391 MB / 0.8212 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.7271, allocations: 9.406 kB / 0.8213 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.572e-05/0.7272, allocations: 21.97 kB / 0.8213 GB, free: 9.43 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.7273, allocations: 117.5 kB / 0.8214 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.7275, allocations: 126.3 kB / 0.8215 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.7287, allocations: 0.7079 MB / 0.8222 GB, free: 8.742 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.7288, allocations: 49.84 kB / 0.8222 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.7289, allocations: 69.69 kB / 0.8223 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.73, allocations: 0.7407 MB / 0.823 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.7301, allocations: 4.531 kB / 0.823 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.716e-05/0.7301, allocations: 26.78 kB / 0.8231 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.7301, allocations: 17.31 kB / 0.8231 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.7312, allocations: 0.6518 MB / 0.8237 GB, free: 7.926 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.7348, allocations: 3.074 MB / 0.8267 GB, free: 5.117 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.736, allocations: 0.5304 MB / 0.8272 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.7364, allocations: 232.7 kB / 0.8275 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001678/0.7381, allocations: 0.9823 MB / 0.8284 GB, free: 3.961 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.7381, allocations: 45.47 kB / 0.8285 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 1.914e-06/0.7381, allocations: 2.062 kB / 0.8285 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003233/0.7414, allocations: 1.555 MB / 0.83 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.7414, allocations: 61.72 kB / 0.83 GB, free: 2.918 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.7422, allocations: 0.696 MB / 0.8307 GB, free: 2.523 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.7422, allocations: 36.23 kB / 0.8308 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.7426, allocations: 446.2 kB / 0.8312 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.7427, allocations: 201.6 kB / 0.8314 GB, free: 1.922 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.7429, allocations: 88.03 kB / 0.8315 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.743, allocations: 326.3 kB / 0.8318 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.7433, allocations: 166.5 kB / 0.8319 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003779/0.7437, allocations: 233.8 kB / 0.8321 GB, free: 1.316 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007827/0.7445, allocations: 429.2 kB / 0.8326 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.7445, allocations: 6.906 kB / 0.8326 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001212/0.7457, allocations: 0.6363 MB / 0.8332 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.7457, allocations: 14.75 kB / 0.8332 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.7457, allocations: 2.875 kB / 0.8332 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004164/0.7461, allocations: 117.9 kB / 0.8333 GB, free: 0.6484 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003454/0.7465, allocations: 97.25 kB / 0.8334 GB, free: 0.625 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/0.7487, allocations: 1.95 MB / 0.8353 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.749, allocations: 17.11 kB / 0.8353 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.7491, allocations: 19.16 kB / 0.8353 GB, free: 14.91 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.7494, allocations: 219.7 kB / 0.8356 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.7495, allocations: 92.02 kB / 0.8356 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.7511, allocations: 0.8615 MB / 0.8365 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.7511, allocations: 4.875 kB / 0.8365 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7511, allocations: 2.25 kB / 0.8365 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.7511, allocations: 7.922 kB / 0.8365 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.7535, allocations: 1.497 MB / 0.838 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.7535, allocations: 2.438 kB / 0.838 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.7538, allocations: 85.77 kB / 0.838 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003812/0.7542, allocations: 128.8 kB / 0.8382 GB, free: 12.97 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/0.7542, allocations: 19.61 kB / 0.8382 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.7563, allocations: 1.945 MB / 0.8401 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7563, allocations: 3.156 kB / 0.8401 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.758, allocations: 0.9795 MB / 0.841 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.7582, allocations: 82.53 kB / 0.8411 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.815e-05/0.7583, allocations: 20.73 kB / 0.8411 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003196/0.7586, allocations: 9.312 kB / 0.8412 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.7587, allocations: 57.91 kB / 0.8412 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.7588, allocations: 21.02 kB / 0.8412 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006221/0.7594, allocations: 0.5074 MB / 0.8417 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7594, allocations: 3.938 kB / 0.8417 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009066/0.7603, allocations: 335.4 kB / 0.842 GB, free: 10.14 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002559/0.7628, allocations: 1.896 MB / 0.8439 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001259/0.7641, allocations: 0.5919 MB / 0.8445 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7641, allocations: 0 / 0.8445 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.7649, allocations: 412.9 kB / 0.8449 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.7662, allocations: 279.8 kB / 0.8451 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009893/0.7761, allocations: 6.325 MB / 0.8513 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007317/0.7768, allocations: 1.001 MB / 0.8523 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0005579/0.7774, allocations: 149.9 kB / 0.8524 GB, free: 2.051 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004877/0.7779, allocations: 379.3 kB / 0.8528 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of SimCode: time 1.372e-06/0.7779, allocations: 3.938 kB / 0.8528 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06437/0.8422, allocations: 26.31 MB / 0.8785 GB, free: 7.625 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.8, allocations: 4 kB / 0.8785 GB, free: 7.621 MB / 0.6387 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.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: 17.642517564003356]