Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_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.008186/0.008187, allocations: 104.4 kB / 15.74 MB, free: 6.027 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.002211/0.002211, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.507/1.507, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7443/0.7443, allocations: 93.69 MB / 384.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 91.83 kB / 0.52 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1439, allocations: 68.27 MB / 0.5866 GB, free: 1.957 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5229/0.6668, allocations: 173.1 MB / 0.7557 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01668/0.6835, allocations: 10.98 MB / 0.7664 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.6849, allocations: 51.69 kB / 0.7665 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002624/0.6876, allocations: 0.7959 MB / 0.7673 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005172/0.6928, allocations: 1.67 MB / 0.7689 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003762/0.6966, allocations: 1.106 MB / 0.77 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004021/0.7007, allocations: 2.53 MB / 0.7724 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.7017, allocations: 490.9 kB / 0.7729 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.7042, allocations: 1.039 MB / 0.7739 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002599/0.7068, allocations: 1.359 MB / 0.7752 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005353/0.7074, allocations: 140 kB / 0.7754 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005365/0.7128, allocations: 1.93 MB / 0.7773 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006126/0.7134, allocations: 366.6 kB / 0.7776 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.7152, allocations: 0.8085 MB / 0.7784 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006349/0.7215, allocations: 2.615 MB / 0.781 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7216, allocations: 0 / 0.781 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7216, allocations: 0 / 0.781 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 7.152e-05/0.7217, allocations: 0 / 0.781 GB, free: 11.58 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.005387/0.7271, allocations: 2.081 MB / 0.783 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 6.952e-05/0.7271, allocations: 8.031 kB / 0.783 GB, free: 9.43 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/0.7275, allocations: 177.8 kB / 0.7832 GB, free: 9.246 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004027/0.7279, allocations: 175.9 kB / 0.7833 GB, free: 9.074 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.7298, allocations: 0.9873 MB / 0.7843 GB, free: 8.043 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-05/0.73, allocations: 90.78 kB / 0.7844 GB, free: 7.953 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002348/0.7302, allocations: 123.9 kB / 0.7845 GB, free: 7.832 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003157/0.7334, allocations: 1.524 MB / 0.786 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.7334, allocations: 0 / 0.786 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.7337, allocations: 55.94 kB / 0.786 GB, free: 6.211 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.7337, allocations: 28 kB / 0.7861 GB, free: 6.184 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003151/0.7369, allocations: 1.665 MB / 0.7877 GB, free: 4.512 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008632/0.7455, allocations: 6.247 MB / 0.7938 GB, free: 13.65 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/0.7482, allocations: 1.29 MB / 0.7951 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.7495, allocations: 0.6958 MB / 0.7957 GB, free: 11.65 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005782/0.7553, allocations: 4.01 MB / 0.7997 GB, free: 7.191 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001507/0.7568, allocations: 0.7395 MB / 0.8004 GB, free: 6.441 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 2.966e-06/0.7568, allocations: 0 / 0.8004 GB, free: 6.441 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.0088/0.7656, allocations: 3.983 MB / 0.8043 GB, free: 2.367 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.7657, allocations: 72.7 kB / 0.8043 GB, free: 2.285 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.7668, allocations: 0.7127 MB / 0.805 GB, free: 1.562 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.767, allocations: 45.7 kB / 0.8051 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005469/0.7676, allocations: 0.5326 MB / 0.8056 GB, free: 0.9727 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000444/0.768, allocations: 460 kB / 0.806 GB, free: 0.5195 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000411/0.7684, allocations: 206.9 kB / 0.8062 GB, free: 316 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002731/0.7687, allocations: 345.9 kB / 0.8066 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.7698, allocations: 0.514 MB / 0.8071 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.7711, allocations: 0.6329 MB / 0.8077 GB, free: 14.8 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002556/0.7737, allocations: 1.24 MB / 0.8089 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.7737, allocations: 0 / 0.8089 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003601/0.7773, allocations: 1.6 MB / 0.8105 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.704e-05/0.7774, allocations: 29.7 kB / 0.8105 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.7774, allocations: 4 kB / 0.8105 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005791/0.778, allocations: 156.7 kB / 0.8106 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.779, allocations: 247.5 kB / 0.8109 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004746/0.7838, allocations: 2.725 MB / 0.8135 GB, free: 8.613 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/0.7847, allocations: 52 kB / 0.8136 GB, free: 8.562 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.7849, allocations: 47.98 kB / 0.8136 GB, free: 8.516 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000779/0.7856, allocations: 305.5 kB / 0.8139 GB, free: 8.207 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.786, allocations: 123.2 kB / 0.814 GB, free: 8.086 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005084/0.791, allocations: 2.324 MB / 0.8163 GB, free: 5.781 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.7911, allocations: 12 kB / 0.8163 GB, free: 5.77 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.7911, allocations: 8 kB / 0.8163 GB, free: 5.762 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.033e-05/0.7911, allocations: 7.969 kB / 0.8163 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006975/0.7981, allocations: 3.402 MB / 0.8197 GB, free: 2.273 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.7982, allocations: 8.031 kB / 0.8197 GB, free: 2.266 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.7993, allocations: 267.6 kB / 0.8199 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004637/0.7997, allocations: 144.4 kB / 0.8201 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/0.7999, allocations: 43.98 kB / 0.8201 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/0.8031, allocations: 2.441 MB / 0.8225 GB, free: 15.25 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.8032, allocations: 3.938 kB / 0.8225 GB, free: 15.24 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005466/0.8087, allocations: 2.609 MB / 0.825 GB, free: 12.6 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.8092, allocations: 192.2 kB / 0.8252 GB, free: 12.39 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.8094, allocations: 31.98 kB / 0.8253 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.8101, allocations: 52.03 kB / 0.8253 GB, free: 12.31 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.8104, allocations: 117.1 kB / 0.8254 GB, free: 12.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.8106, allocations: 55.97 kB / 0.8255 GB, free: 12.14 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000841/0.8115, allocations: 0.5155 MB / 0.826 GB, free: 11.61 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8115, allocations: 0 / 0.826 GB, free: 11.61 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00174/0.8132, allocations: 0.5149 MB / 0.8265 GB, free: 11.1 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006469/0.8197, allocations: 3.627 MB / 0.83 GB, free: 7.434 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003519/0.8233, allocations: 1.633 MB / 0.8316 GB, free: 5.773 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.8233, allocations: 0 / 0.8316 GB, free: 5.773 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.8254, allocations: 0.9982 MB / 0.8326 GB, free: 4.762 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.8274, allocations: 392 kB / 0.833 GB, free: 4.395 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/0.8457, allocations: 10.17 MB / 0.8429 GB, free: 10.03 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.8468, allocations: 1.191 MB / 0.8441 GB, free: 8.809 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0011/0.8479, allocations: 351.4 kB / 0.8444 GB, free: 8.508 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008672/0.8487, allocations: 0.5813 MB / 0.845 GB, free: 7.926 MB / 0.6856 GB Notification: Performance of SimCode: time 2.254e-06/0.8488, allocations: 8 kB / 0.845 GB, free: 7.918 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3408/1.19, allocations: 38.36 MB / 0.8824 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/14.24, allocations: 12.17 kB / 0.8824 GB, free: 226.7 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches