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.01273/0.01274, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002407/0.002407, allocations: 194.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.205/2.205, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.278/1.278, allocations: 93.72 MB / 384.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003211/0.003211, allocations: 87.86 kB / 0.52 GB, free: 6.324 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2962, allocations: 68.26 MB / 0.5866 GB, free: 1.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 1.127/1.423, allocations: 173.1 MB / 0.7557 GB, free: 5.559 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02735/1.451, allocations: 10.98 MB / 0.7664 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004253/1.455, allocations: 47.69 kB / 0.7665 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003944/1.459, allocations: 0.8115 MB / 0.7673 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.009368/1.469, allocations: 1.663 MB / 0.7689 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.006653/1.476, allocations: 1.11 MB / 0.77 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.006553/1.482, allocations: 2.534 MB / 0.7725 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/1.484, allocations: 489.9 kB / 0.7729 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00447/1.488, allocations: 1.035 MB / 0.7739 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004117/1.492, allocations: 1.359 MB / 0.7753 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001182/1.494, allocations: 144 kB / 0.7754 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009033/1.503, allocations: 1.926 MB / 0.7773 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001228/1.504, allocations: 362.6 kB / 0.7776 GB, free: 15.03 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003582/1.507, allocations: 0.8124 MB / 0.7784 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01126/1.519, allocations: 2.608 MB / 0.781 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.305e-05/1.519, allocations: 4 kB / 0.781 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of FrontEnd: time 4.439e-06/1.519, allocations: 0 / 0.781 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001551/1.519, allocations: 4 kB / 0.781 GB, free: 11.59 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.01015/1.529, allocations: 2.077 MB / 0.783 GB, free: 9.453 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 8.656e-05/1.529, allocations: 8.031 kB / 0.783 GB, free: 9.445 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003935/1.53, allocations: 177.8 kB / 0.7832 GB, free: 9.262 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007344/1.53, allocations: 179.8 kB / 0.7834 GB, free: 9.086 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002603/1.533, allocations: 0.9874 MB / 0.7843 GB, free: 8.055 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.336e-05/1.533, allocations: 90.72 kB / 0.7844 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002738/1.533, allocations: 127.9 kB / 0.7845 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00369/1.537, allocations: 1.524 MB / 0.786 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/1.537, allocations: 0 / 0.786 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/1.537, allocations: 48 kB / 0.7861 GB, free: 6.227 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.704e-05/1.537, allocations: 28 kB / 0.7861 GB, free: 6.199 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003729/1.541, allocations: 1.668 MB / 0.7877 GB, free: 4.523 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01194/1.553, allocations: 6.238 MB / 0.7938 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/1.556, allocations: 1.29 MB / 0.7951 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/1.558, allocations: 0.7036 MB / 0.7958 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008387/1.566, allocations: 4.01 MB / 0.7997 GB, free: 7.203 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001972/1.568, allocations: 0.7278 MB / 0.8004 GB, free: 6.465 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 5.18e-06/1.568, allocations: 4 kB / 0.8004 GB, free: 6.461 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.01196/1.58, allocations: 3.987 MB / 0.8043 GB, free: 2.383 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/1.581, allocations: 68.72 kB / 0.8043 GB, free: 2.305 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/1.582, allocations: 0.7127 MB / 0.805 GB, free: 1.582 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001016/1.582, allocations: 49.7 kB / 0.8051 GB, free: 1.527 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009978/1.583, allocations: 0.5365 MB / 0.8056 GB, free: 0.9844 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006066/1.584, allocations: 452 kB / 0.806 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/1.584, allocations: 202.9 kB / 0.8062 GB, free: 340 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0003134/1.585, allocations: 349.9 kB / 0.8066 GB, free: 15.98 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/1.586, allocations: 0.5101 MB / 0.8071 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/1.588, allocations: 0.6305 MB / 0.8077 GB, free: 14.82 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003141/1.591, allocations: 1.244 MB / 0.8089 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/1.591, allocations: 4 kB / 0.8089 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004604/1.596, allocations: 1.6 MB / 0.8105 GB, free: 11.94 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001937/1.596, allocations: 41.88 kB / 0.8105 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/1.596, allocations: 0 / 0.8105 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007179/1.597, allocations: 156.8 kB / 0.8107 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/1.598, allocations: 251.6 kB / 0.8109 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006986/1.605, allocations: 2.725 MB / 0.8136 GB, free: 8.621 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/1.606, allocations: 43.97 kB / 0.8136 GB, free: 8.578 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/1.607, allocations: 55.97 kB / 0.8136 GB, free: 8.523 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.001141/1.608, allocations: 302.8 kB / 0.8139 GB, free: 8.219 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004232/1.608, allocations: 119.2 kB / 0.8141 GB, free: 8.102 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006918/1.615, allocations: 2.315 MB / 0.8163 GB, free: 5.805 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/1.615, allocations: 16 kB / 0.8163 GB, free: 5.789 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/1.615, allocations: 4 kB / 0.8163 GB, free: 5.785 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.229e-05/1.615, allocations: 11.91 kB / 0.8163 GB, free: 5.773 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008728/1.624, allocations: 3.409 MB / 0.8197 GB, free: 2.285 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/1.624, allocations: 0 / 0.8197 GB, free: 2.285 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/1.625, allocations: 263.7 kB / 0.8199 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004976/1.626, allocations: 152.5 kB / 0.8201 GB, free: 1.879 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/1.626, allocations: 47.97 kB / 0.8201 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004249/1.63, allocations: 2.439 MB / 0.8225 GB, free: 15.26 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.63, allocations: 4.031 kB / 0.8225 GB, free: 15.25 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/1.637, allocations: 2.613 MB / 0.8251 GB, free: 12.61 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007349/1.637, allocations: 192.2 kB / 0.8252 GB, free: 12.4 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005887/1.638, allocations: 32 kB / 0.8253 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/1.639, allocations: 51.95 kB / 0.8253 GB, free: 12.32 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/1.639, allocations: 121.1 kB / 0.8254 GB, free: 12.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/1.639, allocations: 47.98 kB / 0.8255 GB, free: 12.15 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001257/1.641, allocations: 0.5155 MB / 0.826 GB, free: 11.62 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.51e-07/1.641, allocations: 0 / 0.826 GB, free: 11.62 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002804/1.644, allocations: 0.5228 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.008983/1.653, allocations: 3.62 MB / 0.83 GB, free: 7.445 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0047/1.657, allocations: 1.634 MB / 0.8316 GB, free: 5.785 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.657, allocations: 8.125 kB / 0.8316 GB, free: 5.777 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002614/1.66, allocations: 0.9898 MB / 0.8326 GB, free: 4.773 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/1.663, allocations: 389.4 kB / 0.833 GB, free: 4.406 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02791/1.691, allocations: 10.17 MB / 0.8429 GB, free: 10.04 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/1.693, allocations: 1.191 MB / 0.8441 GB, free: 8.82 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001867/1.695, allocations: 357.1 kB / 0.8444 GB, free: 8.516 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/1.696, allocations: 0.5812 MB / 0.845 GB, free: 7.934 MB / 0.6856 GB Notification: Performance of SimCode: time 5.511e-06/1.696, allocations: 0 / 0.845 GB, free: 7.934 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8369/2.533, allocations: 38.37 MB / 0.8824 GB, free: 226.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.59/23.13, allocations: 9 kB / 0.8824 GB, free: 226.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 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.mat","/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