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.001739/0.001739, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002209/0.002209, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7178/0.7178, allocations: 91.2 MB / 381.6 MB, free: 9.418 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 86.12 kB / 460.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1297, allocations: 67.69 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5114/0.6411, allocations: 173.1 MB / 0.6848 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01281/0.654, allocations: 10.99 MB / 0.6956 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.6556, allocations: 46.22 kB / 0.6956 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00222/0.6579, allocations: 0.8017 MB / 0.6964 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00441/0.6623, allocations: 1.663 MB / 0.698 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.6652, allocations: 1.121 MB / 0.6991 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003018/0.6682, allocations: 2.525 MB / 0.7016 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006763/0.6689, allocations: 476.8 kB / 0.702 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.6707, allocations: 1.035 MB / 0.703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001641/0.6723, allocations: 1.355 MB / 0.7044 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.6726, allocations: 140 kB / 0.7045 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004218/0.6768, allocations: 1.938 MB / 0.7064 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003524/0.6772, allocations: 358.7 kB / 0.7067 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0009458/0.6781, allocations: 0.8086 MB / 0.7075 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004789/0.6829, allocations: 2.536 MB / 0.71 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.683, allocations: 7.938 kB / 0.71 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.613e-06/0.683, allocations: 0 / 0.71 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.747e-05/0.683, allocations: 0 / 0.71 GB, free: 8.57 MB / 0.5137 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.003871/0.6869, allocations: 2.034 MB / 0.712 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.6869, allocations: 8.031 kB / 0.712 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000204/0.6871, allocations: 181.8 kB / 0.7122 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.6875, allocations: 171 kB / 0.7123 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.6887, allocations: 0.9084 MB / 0.7132 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.6888, allocations: 86.97 kB / 0.7133 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.689, allocations: 127.9 kB / 0.7134 GB, free: 4.949 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.6914, allocations: 1.528 MB / 0.7149 GB, free: 3.379 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.6914, allocations: 0 / 0.7149 GB, free: 3.379 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-05/0.6916, allocations: 52 kB / 0.715 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.6916, allocations: 28 kB / 0.715 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002656/0.6942, allocations: 1.665 MB / 0.7166 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007127/0.7014, allocations: 6.272 MB / 0.7227 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.7038, allocations: 1.287 MB / 0.724 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.7048, allocations: 0.6919 MB / 0.7247 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004738/0.7096, allocations: 4.018 MB / 0.7286 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.7108, allocations: 0.7394 MB / 0.7293 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 3.476e-06/0.7108, allocations: 0 / 0.7293 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.007547/0.7184, allocations: 3.965 MB / 0.7332 GB, free: 15.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.7185, allocations: 64.72 kB / 0.7333 GB, free: 15.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008317/0.7193, allocations: 0.7204 MB / 0.734 GB, free: 14.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.583e-05/0.7194, allocations: 49.7 kB / 0.734 GB, free: 14.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003907/0.7198, allocations: 0.52 MB / 0.7345 GB, free: 14.07 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/0.7201, allocations: 437.6 kB / 0.7349 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003181/0.7204, allocations: 206.8 kB / 0.7351 GB, free: 13.44 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.7206, allocations: 341.9 kB / 0.7355 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009409/0.7215, allocations: 0.5179 MB / 0.736 GB, free: 12.58 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.7226, allocations: 0.6251 MB / 0.7366 GB, free: 11.93 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.7247, allocations: 1.244 MB / 0.7378 GB, free: 10.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.7247, allocations: 0 / 0.7378 GB, free: 10.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003139/0.7279, allocations: 1.595 MB / 0.7393 GB, free: 9.051 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/0.7279, allocations: 33.7 kB / 0.7394 GB, free: 9.012 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.7279, allocations: 0 / 0.7394 GB, free: 9.012 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005426/0.7285, allocations: 157.5 kB / 0.7395 GB, free: 8.855 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009652/0.7295, allocations: 251.7 kB / 0.7398 GB, free: 8.609 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/0.7337, allocations: 2.715 MB / 0.7424 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008106/0.7345, allocations: 59.94 kB / 0.7425 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.7346, allocations: 47.98 kB / 0.7425 GB, free: 5.652 MB / 0.545 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.0007215/0.7354, allocations: 297.5 kB / 0.7428 GB, free: 5.352 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.7356, allocations: 110.6 kB / 0.7429 GB, free: 5.242 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004251/0.7399, allocations: 2.326 MB / 0.7452 GB, free: 2.934 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.676e-05/0.7399, allocations: 16 kB / 0.7452 GB, free: 2.918 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.7399, allocations: 0 / 0.7452 GB, free: 2.918 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7399, allocations: 8.062 kB / 0.7452 GB, free: 2.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005811/0.7457, allocations: 3.427 MB / 0.7486 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.7458, allocations: 0 / 0.7486 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/0.7467, allocations: 267.7 kB / 0.7488 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004227/0.7472, allocations: 144.8 kB / 0.7489 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.389e-05/0.7473, allocations: 47.92 kB / 0.749 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.7502, allocations: 2.454 MB / 0.7514 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7502, allocations: 7.938 kB / 0.7514 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004499/0.7547, allocations: 2.591 MB / 0.7539 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002996/0.7551, allocations: 187.6 kB / 0.7541 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.7552, allocations: 31.98 kB / 0.7541 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.7558, allocations: 47.97 kB / 0.7542 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002685/0.7561, allocations: 113.1 kB / 0.7543 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.7562, allocations: 63.91 kB / 0.7544 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006397/0.7569, allocations: 0.5155 MB / 0.7549 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7569, allocations: 0 / 0.7549 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001538/0.7584, allocations: 0.5077 MB / 0.7554 GB, free: 8.246 MB / 0.5606 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.005667/0.7641, allocations: 3.614 MB / 0.7589 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004603/0.7687, allocations: 1.848 MB / 0.7607 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.7688, allocations: 384 / 0.7607 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.7706, allocations: 1.001 MB / 0.7617 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.7725, allocations: 397 kB / 0.762 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.7893, allocations: 10.74 MB / 0.7725 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009033/0.7902, allocations: 1.194 MB / 0.7737 GB, free: 5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001235/0.7914, allocations: 356.4 kB / 0.774 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008048/0.7923, allocations: 0.5735 MB / 0.7746 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/0.7923, allocations: 0 / 0.7746 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07838/0.8707, allocations: 37.87 MB / 0.8116 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.48, allocations: 11.94 kB / 0.8116 GB, free: 14.5 MB / 0.6231 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