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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.007669/0.007669, allocations: 105 kB / 15.74 MB, free: 6.02 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.001703/0.001703, allocations: 193.4 kB / 16.68 MB, free: 5.938 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7628/0.7628, allocations: 89.46 MB / 380 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 79.88 kB / 0.5139 GB, free: 7.172 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.4082, allocations: 67.29 MB / 0.5796 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6186/1.027, allocations: 164.2 MB / 0.74 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01465/1.042, allocations: 12.87 MB / 0.7525 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/1.043, allocations: 18.97 kB / 0.7526 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001788/1.045, allocations: 0.5678 MB / 0.7531 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002612/1.047, allocations: 0.8322 MB / 0.7539 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002679/1.05, allocations: 0.8135 MB / 0.7547 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002117/1.052, allocations: 1.236 MB / 0.7559 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/1.053, allocations: 309.9 kB / 0.7562 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009805/1.054, allocations: 0.4919 MB / 0.7567 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009227/1.055, allocations: 0.6484 MB / 0.7573 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001361/1.055, allocations: 76.28 kB / 0.7574 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003175/1.058, allocations: 1.391 MB / 0.7588 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001589/1.058, allocations: 189.2 kB / 0.7589 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005275/1.059, allocations: 482.5 kB / 0.7594 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002313/1.061, allocations: 1.453 MB / 0.7608 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.061, allocations: 2.953 kB / 0.7608 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.274e-06/1.061, allocations: 0.9375 kB / 0.7608 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.327e-05/1.061, allocations: 0 / 0.7608 GB, free: 1.102 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.002319/1.063, allocations: 1.331 MB / 0.7621 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/1.063, allocations: 11.3 kB / 0.7621 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/1.063, allocations: 111.6 kB / 0.7622 GB, free: 16.29 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/1.064, allocations: 113.1 kB / 0.7624 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007321/1.064, allocations: 0.5726 MB / 0.7629 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/1.064, allocations: 52.25 kB / 0.763 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.94e-05/1.065, allocations: 72.58 kB / 0.763 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/1.066, allocations: 0.7392 MB / 0.7638 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/1.066, allocations: 0.9062 kB / 0.7638 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.214e-05/1.066, allocations: 27 kB / 0.7638 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/1.066, allocations: 18.12 kB / 0.7638 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009479/1.067, allocations: 0.6323 MB / 0.7644 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/1.07, allocations: 3.075 MB / 0.7674 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/1.071, allocations: 0.5652 MB / 0.768 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/1.072, allocations: 260 kB / 0.7682 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00262/1.074, allocations: 2.6 MB / 0.7708 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/1.074, allocations: 38.88 kB / 0.7708 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.345e-06/1.074, allocations: 0.9062 kB / 0.7708 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003293/1.078, allocations: 1.751 MB / 0.7725 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/1.078, allocations: 57.94 kB / 0.7726 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006308/1.078, allocations: 0.5679 MB / 0.7731 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.3e-05/1.078, allocations: 38.48 kB / 0.7731 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/1.079, allocations: 395.9 kB / 0.7735 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/1.079, allocations: 198.9 kB / 0.7737 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/1.079, allocations: 94.61 kB / 0.7738 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000181/1.079, allocations: 374.5 kB / 0.7742 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/1.079, allocations: 167.2 kB / 0.7743 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/1.08, allocations: 224.1 kB / 0.7745 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/1.08, allocations: 433.8 kB / 0.775 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/1.08, allocations: 0.9062 kB / 0.775 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001126/1.082, allocations: 0.6391 MB / 0.7756 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/1.082, allocations: 5 kB / 0.7756 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/1.082, allocations: 7 kB / 0.7756 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004314/1.082, allocations: 117.1 kB / 0.7757 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/1.082, allocations: 96.39 kB / 0.7758 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/1.085, allocations: 2.046 MB / 0.7778 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/1.085, allocations: 18.47 kB / 0.7778 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/1.085, allocations: 21.22 kB / 0.7778 GB, free: 8.59 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.0002957/1.085, allocations: 210.3 kB / 0.778 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/1.085, allocations: 74.62 kB / 0.7781 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/1.087, allocations: 0.8629 MB / 0.7789 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/1.087, allocations: 5.188 kB / 0.7789 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.087, allocations: 3.25 kB / 0.7789 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/1.087, allocations: 3.781 kB / 0.779 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/1.089, allocations: 1.494 MB / 0.7804 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/1.089, allocations: 1.094 kB / 0.7804 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003074/1.089, allocations: 91.84 kB / 0.7805 GB, free: 7.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003465/1.09, allocations: 125 kB / 0.7806 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/1.09, allocations: 18.5 kB / 0.7806 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/1.092, allocations: 2.052 MB / 0.7826 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.092, allocations: 6.031 kB / 0.7826 GB, free: 6.52 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/1.094, allocations: 0.9674 MB / 0.7836 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/1.094, allocations: 153.3 kB / 0.7837 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/1.094, allocations: 9.438 kB / 0.7837 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002845/1.094, allocations: 19.27 kB / 0.7838 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/1.094, allocations: 42.81 kB / 0.7838 GB, free: 6.148 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/1.094, allocations: 27 kB / 0.7838 GB, free: 6.145 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005212/1.095, allocations: 438.5 kB / 0.7842 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.273e-06/1.095, allocations: 0.9688 kB / 0.7843 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001011/1.096, allocations: 333 kB / 0.7846 GB, free: 6.016 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.002617/1.098, allocations: 1.885 MB / 0.7864 GB, free: 5.195 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001246/1.1, allocations: 0.6143 MB / 0.787 GB, free: 5.062 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/1.1, allocations: 1.984 kB / 0.787 GB, free: 5.062 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007431/1.1, allocations: 439.2 kB / 0.7874 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/1.102, allocations: 267.5 kB / 0.7877 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/1.11, allocations: 5.743 MB / 0.7933 GB, free: 2.906 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000585/1.11, allocations: 0.9612 MB / 0.7942 GB, free: 2.203 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004593/1.111, allocations: 139.3 kB / 0.7944 GB, free: 2.141 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003364/1.111, allocations: 311.8 kB / 0.7947 GB, free: 2.133 MB / 0.5919 GB Notification: Performance of SimCode: time 1.022e-06/1.111, allocations: 0 / 0.7947 GB, free: 2.133 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06273/1.174, allocations: 23.96 MB / 0.8181 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.62, allocations: 9.656 kB / 0.8181 GB, free: 2.484 MB / 0.6075 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