Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_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.008764/0.008764, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.00221/0.00221, allocations: 202.4 kB / 16.68 MB, free: 5.965 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7453/0.7453, allocations: 91.2 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003107/0.003107, allocations: 75.88 kB / 0.5164 GB, free: 9.48 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1491, allocations: 67.69 MB / 0.5825 GB, free: 5.711 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5187/0.6678, allocations: 173.1 MB / 0.7516 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01357/0.6814, allocations: 11 MB / 0.7623 GB, free: 120 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.6829, allocations: 43.75 kB / 0.7624 GB, free: 76 kB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002185/0.6851, allocations: 0.8076 MB / 0.7631 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004426/0.6896, allocations: 1.69 MB / 0.7648 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.6925, allocations: 1.126 MB / 0.7659 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002896/0.6954, allocations: 2.534 MB / 0.7684 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007712/0.6962, allocations: 482.3 kB / 0.7688 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.698, allocations: 1.062 MB / 0.7699 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.6995, allocations: 1.347 MB / 0.7712 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003481/0.6999, allocations: 143.9 kB / 0.7713 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004118/0.704, allocations: 1.938 MB / 0.7732 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003502/0.7044, allocations: 362.7 kB / 0.7736 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0008736/0.7052, allocations: 0.8085 MB / 0.7744 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004891/0.7101, allocations: 2.607 MB / 0.7769 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.7102, allocations: 4 kB / 0.7769 GB, free: 1.121 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7102, allocations: 0 / 0.7769 GB, free: 1.121 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.514e-05/0.7102, allocations: 0 / 0.7769 GB, free: 1.121 MB / 0.6075 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.004146/0.7144, allocations: 2.074 MB / 0.7789 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.7145, allocations: 12.03 kB / 0.7789 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.7147, allocations: 177.8 kB / 0.7791 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003606/0.715, allocations: 179.9 kB / 0.7793 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.7167, allocations: 0.9912 MB / 0.7802 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.7168, allocations: 86.97 kB / 0.7803 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.7169, allocations: 123.9 kB / 0.7804 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00268/0.7196, allocations: 1.528 MB / 0.7819 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.7197, allocations: 0 / 0.7819 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-05/0.7198, allocations: 48 kB / 0.782 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.7198, allocations: 32 kB / 0.782 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002829/0.7226, allocations: 1.665 MB / 0.7836 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007882/0.7305, allocations: 6.253 MB / 0.7897 GB, free: 3.184 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.7331, allocations: 1.279 MB / 0.791 GB, free: 1.887 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.7343, allocations: 0.7011 MB / 0.7917 GB, free: 1.188 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005228/0.7395, allocations: 4.014 MB / 0.7956 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.741, allocations: 0.7278 MB / 0.7963 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 2.875e-06/0.741, allocations: 0 / 0.7963 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.007975/0.749, allocations: 3.999 MB / 0.8002 GB, free: 7.891 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.7491, allocations: 68.66 kB / 0.8003 GB, free: 7.812 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009815/0.75, allocations: 0.7088 MB / 0.801 GB, free: 7.094 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.7502, allocations: 53.64 kB / 0.801 GB, free: 7.035 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.7506, allocations: 0.5287 MB / 0.8015 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000363/0.7509, allocations: 460 kB / 0.802 GB, free: 6.047 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/0.7513, allocations: 206.9 kB / 0.8022 GB, free: 5.836 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001999/0.7515, allocations: 353.9 kB / 0.8025 GB, free: 5.484 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.7525, allocations: 0.514 MB / 0.803 GB, free: 4.973 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.7537, allocations: 0.6189 MB / 0.8036 GB, free: 4.336 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/0.7559, allocations: 1.248 MB / 0.8048 GB, free: 3.062 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.7559, allocations: 0 / 0.8048 GB, free: 3.062 MB / 0.6387 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003214/0.7592, allocations: 1.6 MB / 0.8064 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.7592, allocations: 33.7 kB / 0.8064 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.7592, allocations: 0 / 0.8064 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004988/0.7598, allocations: 167.5 kB / 0.8066 GB, free: 1.242 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.7608, allocations: 243.7 kB / 0.8068 GB, free: 1.004 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004102/0.7649, allocations: 2.724 MB / 0.8095 GB, free: 14.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008541/0.7658, allocations: 51.94 kB / 0.8095 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.7659, allocations: 47.98 kB / 0.8096 GB, free: 14.04 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.0005374/0.7665, allocations: 297.5 kB / 0.8099 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.7668, allocations: 115.2 kB / 0.81 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.7713, allocations: 2.33 MB / 0.8123 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.7713, allocations: 16 kB / 0.8123 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.7713, allocations: 4 kB / 0.8123 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.7713, allocations: 7.969 kB / 0.8123 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005902/0.7773, allocations: 3.417 MB / 0.8156 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.7773, allocations: 0 / 0.8156 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.7783, allocations: 263.7 kB / 0.8159 GB, free: 7.543 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004035/0.7787, allocations: 140.8 kB / 0.816 GB, free: 7.402 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.7788, allocations: 47.98 kB / 0.816 GB, free: 7.355 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002618/0.7815, allocations: 2.455 MB / 0.8184 GB, free: 4.766 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.7815, allocations: 7.938 kB / 0.8185 GB, free: 4.758 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.786, allocations: 2.597 MB / 0.821 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.7863, allocations: 188.2 kB / 0.8212 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/0.7864, allocations: 35.94 kB / 0.8212 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007207/0.7872, allocations: 51.97 kB / 0.8213 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.7874, allocations: 117.2 kB / 0.8214 GB, free: 1.719 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.7875, allocations: 59.91 kB / 0.8214 GB, free: 1.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007021/0.7882, allocations: 0.5233 MB / 0.8219 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7882, allocations: 0 / 0.8219 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001448/0.7897, allocations: 0.5071 MB / 0.8224 GB, free: 0.6172 MB / 0.6544 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.005751/0.7955, allocations: 3.624 MB / 0.826 GB, free: 12.96 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003076/0.7985, allocations: 1.626 MB / 0.8276 GB, free: 11.31 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.7986, allocations: 0 / 0.8276 GB, free: 11.31 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.8003, allocations: 1.006 MB / 0.8285 GB, free: 10.29 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.8022, allocations: 385.5 kB / 0.8289 GB, free: 9.93 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3429/1.145, allocations: 10.16 MB / 0.8388 GB, free: 223.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/1.147, allocations: 1.194 MB / 0.84 GB, free: 222.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001917/1.149, allocations: 347.3 kB / 0.8403 GB, free: 222.8 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.15, allocations: 0.5793 MB / 0.8409 GB, free: 222.8 MB / 0.67 GB Notification: Performance of SimCode: time 1.382e-06/1.15, allocations: 3.969 kB / 0.8409 GB, free: 222.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0861/1.236, allocations: 38.38 MB / 0.8784 GB, free: 209.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/15.15, allocations: 11.73 kB / 0.8784 GB, free: 209.9 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches