Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00154/0.00154, allocations: 191.5 kB / 16.14 MB, free: 6.715 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.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6848/0.6848, allocations: 93.71 MB / 383.7 MB, free: 7.168 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002723/0.002723, allocations: 78.62 kB / 462.7 MB, free: 22.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.134, allocations: 68.27 MB / 0.5185 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3849/0.5189, allocations: 143.4 MB / 0.6586 GB, free: 3.258 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004513/0.5235, allocations: 3.399 MB / 0.6619 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006362/0.5242, allocations: 18.88 kB / 0.662 GB, free: 0.5 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007917/0.525, allocations: 180.6 kB / 0.6621 GB, free: 364 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001387/0.5264, allocations: 464.9 kB / 0.6626 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.5275, allocations: 345.6 kB / 0.6629 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.5285, allocations: 0.9382 MB / 0.6638 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002461/0.5288, allocations: 120 kB / 0.6639 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007534/0.5296, allocations: 327 kB / 0.6642 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004982/0.5301, allocations: 359.1 kB / 0.6646 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.004e-05/0.5302, allocations: 23.03 kB / 0.6646 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.5315, allocations: 0.5614 MB / 0.6652 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.5316, allocations: 82.89 kB / 0.6652 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000317/0.5319, allocations: 226.5 kB / 0.6655 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.5331, allocations: 0.6904 MB / 0.6661 GB, free: 13.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.5331, allocations: 0 / 0.6661 GB, free: 13.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5332, allocations: 0 / 0.6661 GB, free: 13.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.5332, allocations: 0 / 0.6661 GB, free: 13.82 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001731/0.5349, allocations: 0.8324 MB / 0.6669 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.535, allocations: 10.06 kB / 0.6669 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.5351, allocations: 49.56 kB / 0.667 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.5357, allocations: 409.7 kB / 0.6674 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.5357, allocations: 28.31 kB / 0.6674 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.848e-05/0.5358, allocations: 39.16 kB / 0.6675 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007534/0.5365, allocations: 415.2 kB / 0.6678 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.5366, allocations: 0 / 0.6678 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.5366, allocations: 20.97 kB / 0.6679 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.5366, allocations: 7.281 kB / 0.6679 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.5376, allocations: 377.1 kB / 0.6682 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002432/0.5401, allocations: 1.848 MB / 0.67 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007822/0.5409, allocations: 334.9 kB / 0.6704 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003571/0.5413, allocations: 177.7 kB / 0.6705 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/0.5433, allocations: 1.525 MB / 0.672 GB, free: 8.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005098/0.5439, allocations: 214.2 kB / 0.6722 GB, free: 8.484 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.5439, allocations: 0 / 0.6722 GB, free: 8.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001418/0.5453, allocations: 0.6085 MB / 0.6728 GB, free: 8.109 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.5454, allocations: 54.19 kB / 0.6729 GB, free: 8.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004048/0.5458, allocations: 359.2 kB / 0.6732 GB, free: 7.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.5458, allocations: 32.23 kB / 0.6732 GB, free: 7.785 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.546, allocations: 220.4 kB / 0.6734 GB, free: 7.586 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.687e-05/0.5461, allocations: 125.2 kB / 0.6736 GB, free: 7.477 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.5462, allocations: 80.28 kB / 0.6736 GB, free: 7.418 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5464, allocations: 360.8 kB / 0.674 GB, free: 7.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.5467, allocations: 113.1 kB / 0.6741 GB, free: 7.016 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.547, allocations: 175.3 kB / 0.6743 GB, free: 6.898 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.5476, allocations: 345.3 kB / 0.6746 GB, free: 6.672 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5476, allocations: 2.656 kB / 0.6746 GB, free: 6.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000926/0.5486, allocations: 464 kB / 0.675 GB, free: 6.414 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.5486, allocations: 31.58 kB / 0.6751 GB, free: 6.383 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.5486, allocations: 6.359 kB / 0.6751 GB, free: 6.379 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.5488, allocations: 45.11 kB / 0.6751 GB, free: 6.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.5491, allocations: 78.47 kB / 0.6752 GB, free: 6.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.5504, allocations: 1.425 MB / 0.6766 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.5507, allocations: 42.77 kB / 0.6766 GB, free: 4.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.5508, allocations: 18.08 kB / 0.6766 GB, free: 4.863 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.551, allocations: 161.4 kB / 0.6768 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.5511, allocations: 47.84 kB / 0.6768 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.5522, allocations: 0.5179 MB / 0.6773 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5522, allocations: 4.656 kB / 0.6774 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5522, allocations: 4 kB / 0.6774 GB, free: 4.367 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.5522, allocations: 6.75 kB / 0.6774 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.5539, allocations: 0.9648 MB / 0.6783 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5539, allocations: 2.969 kB / 0.6783 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002376/0.5542, allocations: 58.97 kB / 0.6784 GB, free: 3.602 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.5544, allocations: 48.81 kB / 0.6784 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.5544, allocations: 12.31 kB / 0.6784 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.5556, allocations: 1.425 MB / 0.6798 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5556, allocations: 6.812 kB / 0.6798 GB, free: 2.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.5568, allocations: 0.6513 MB / 0.6805 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.5569, allocations: 116.9 kB / 0.6806 GB, free: 1.586 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.216e-05/0.557, allocations: 9.219 kB / 0.6806 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.5573, allocations: 22.73 kB / 0.6806 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5575, allocations: 42.12 kB / 0.6806 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.5575, allocations: 11.38 kB / 0.6806 GB, free: 1.539 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002918/0.5578, allocations: 266.8 kB / 0.6809 GB, free: 1.371 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5578, allocations: 0 / 0.6809 GB, free: 1.371 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006242/0.5584, allocations: 159.2 kB / 0.6811 GB, free: 1.336 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000397/0.5588, allocations: 239.2 kB / 0.6813 GB, free: 1.176 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.5598, allocations: 495.7 kB / 0.6818 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5599, allocations: 320 / 0.6818 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004897/0.5604, allocations: 306.6 kB / 0.682 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008482/0.5612, allocations: 140.6 kB / 0.6822 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.5631, allocations: 1.002 MB / 0.6832 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.5635, allocations: 0.8183 MB / 0.684 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000334/0.5638, allocations: 81.59 kB / 0.684 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.564, allocations: 45.42 kB / 0.6841 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of SimCode: time 7.32e-07/0.564, allocations: 2.688 kB / 0.6841 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of Templates: time 0.01431/0.5783, allocations: 7.801 MB / 0.6917 GB, free: 9.184 MB / 0.4981 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches