Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004763/0.004763, allocations: 102.7 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 190.1 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7289/0.7289, allocations: 91.18 MB / 381.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00322/0.00322, allocations: 79.88 kB / 0.5164 GB, free: 4.586 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4039, allocations: 67.67 MB / 0.5825 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5916/0.9956, allocations: 164.4 MB / 0.743 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01345/1.009, allocations: 12.91 MB / 0.7556 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/1.01, allocations: 37.03 kB / 0.7556 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001966/1.012, allocations: 0.5851 MB / 0.7562 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002913/1.015, allocations: 0.8686 MB / 0.757 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002871/1.018, allocations: 0.8136 MB / 0.7578 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00244/1.021, allocations: 1.341 MB / 0.7591 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004926/1.021, allocations: 316.3 kB / 0.7594 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/1.022, allocations: 0.5552 MB / 0.76 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007929/1.023, allocations: 0.6656 MB / 0.7606 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001081/1.023, allocations: 74.62 kB / 0.7607 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003628/1.027, allocations: 1.397 MB / 0.7621 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002256/1.027, allocations: 192.4 kB / 0.7622 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007259/1.028, allocations: 0.516 MB / 0.7628 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003004/1.031, allocations: 1.562 MB / 0.7643 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/1.031, allocations: 0 / 0.7643 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.725e-06/1.031, allocations: 0.8125 kB / 0.7643 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.617e-05/1.031, allocations: 2.531 kB / 0.7643 GB, free: 0.9531 MB / 0.5762 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.002673/1.034, allocations: 1.422 MB / 0.7657 GB, free: 16.15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/1.034, allocations: 10.22 kB / 0.7657 GB, free: 16.15 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/1.034, allocations: 119.2 kB / 0.7658 GB, free: 16.11 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/1.034, allocations: 123.2 kB / 0.7659 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/1.035, allocations: 0.7691 MB / 0.7667 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/1.035, allocations: 56.38 kB / 0.7667 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-05/1.035, allocations: 66.16 kB / 0.7668 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/1.036, allocations: 0.7328 MB / 0.7675 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/1.036, allocations: 0 / 0.7675 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.544e-05/1.036, allocations: 30.22 kB / 0.7675 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/1.036, allocations: 16.94 kB / 0.7675 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009151/1.037, allocations: 0.6369 MB / 0.7682 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003448/1.041, allocations: 3.108 MB / 0.7712 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/1.042, allocations: 0.5749 MB / 0.7718 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/1.042, allocations: 254.5 kB / 0.772 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002482/1.045, allocations: 2.587 MB / 0.7745 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/1.045, allocations: 39.34 kB / 0.7746 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.214e-06/1.045, allocations: 3.156 kB / 0.7746 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.00321/1.048, allocations: 1.781 MB / 0.7763 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/1.048, allocations: 56.97 kB / 0.7764 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009197/1.049, allocations: 0.6895 MB / 0.777 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/1.049, allocations: 36.14 kB / 0.7771 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/1.049, allocations: 440 kB / 0.7775 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/1.05, allocations: 194.1 kB / 0.7777 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/1.05, allocations: 89.3 kB / 0.7778 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.05, allocations: 326.1 kB / 0.7781 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/1.05, allocations: 165.9 kB / 0.7782 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003295/1.05, allocations: 227.7 kB / 0.7784 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/1.051, allocations: 432.5 kB / 0.7789 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/1.051, allocations: 5.062 kB / 0.7789 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001104/1.052, allocations: 0.6475 MB / 0.7795 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/1.052, allocations: 5.5 kB / 0.7795 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/1.052, allocations: 3.312 kB / 0.7795 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004088/1.053, allocations: 107.6 kB / 0.7796 GB, free: 9.738 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/1.053, allocations: 103 kB / 0.7797 GB, free: 9.738 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002171/1.055, allocations: 2.044 MB / 0.7817 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003885/1.056, allocations: 19.41 kB / 0.7817 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/1.056, allocations: 22.55 kB / 0.7817 GB, free: 8.363 MB / 0.5919 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.0003328/1.056, allocations: 220.5 kB / 0.782 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/1.056, allocations: 88.75 kB / 0.782 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/1.058, allocations: 0.8656 MB / 0.7829 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/1.058, allocations: 6.531 kB / 0.7829 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.058, allocations: 2.531 kB / 0.7829 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/1.058, allocations: 6.891 kB / 0.7829 GB, free: 8.035 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/1.06, allocations: 1.54 MB / 0.7844 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/1.06, allocations: 0.9375 kB / 0.7844 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003114/1.06, allocations: 85 kB / 0.7845 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/1.061, allocations: 115.2 kB / 0.7846 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/1.061, allocations: 21.73 kB / 0.7846 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/1.063, allocations: 2.048 MB / 0.7866 GB, free: 6.285 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.063, allocations: 0 / 0.7866 GB, free: 6.285 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/1.065, allocations: 0.9868 MB / 0.7876 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/1.065, allocations: 151.4 kB / 0.7877 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/1.065, allocations: 15.5 kB / 0.7877 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/1.065, allocations: 16.67 kB / 0.7878 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/1.066, allocations: 50.64 kB / 0.7878 GB, free: 5.898 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/1.066, allocations: 19.89 kB / 0.7878 GB, free: 5.898 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007193/1.066, allocations: 0.5017 MB / 0.7883 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/1.066, allocations: 4.812 kB / 0.7883 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00108/1.067, allocations: 327 kB / 0.7886 GB, free: 5.773 MB / 0.5919 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.002723/1.07, allocations: 1.908 MB / 0.7905 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001285/1.071, allocations: 0.6137 MB / 0.7911 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.071, allocations: 4.844 kB / 0.7911 GB, free: 4.801 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007744/1.072, allocations: 435.1 kB / 0.7915 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/1.074, allocations: 262.4 kB / 0.7918 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/1.086, allocations: 6.261 MB / 0.7979 GB, free: 2.531 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007534/1.087, allocations: 0.9991 MB / 0.7988 GB, free: 1.816 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008392/1.088, allocations: 145.3 kB / 0.799 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005983/1.088, allocations: 373 kB / 0.7993 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of SimCode: time 2.063e-06/1.089, allocations: 0 / 0.7993 GB, free: 1.758 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08437/1.173, allocations: 25.97 MB / 0.8247 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12.64, allocations: 18.11 kB / 0.8247 GB, free: 14.03 MB / 0.6231 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches