Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001496, allocations: 175.4 kB / 15.43 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 225.7 MB / 241.9 MB, free: 408 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008557/0.0008556, allocations: 91.86 kB / 293.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6717/0.6717, allocations: 91.64 MB / 435.8 MB, free: 23.62 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003391, allocations: 11.98 kB / 0.5038 GB, free: 8.301 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3156, allocations: 69.28 MB / 0.5715 GB, free: 45.5 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1623/0.478, allocations: 162.6 MB / 0.7303 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.01544/0.4934, allocations: 15.35 MB / 0.7453 GB, free: 6.836 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.4947, allocations: 27.88 kB / 0.7453 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.4968, allocations: 0.6958 MB / 0.746 GB, free: 6.109 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.004022/0.5008, allocations: 1.539 MB / 0.7475 GB, free: 4.562 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002717/0.5035, allocations: 0.9698 MB / 0.7484 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003478/0.507, allocations: 3.306 MB / 0.7517 GB, free: 280 kB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006365/0.5077, allocations: 403.2 kB / 0.752 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.5092, allocations: 0.8598 MB / 0.7529 GB, free: 15 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.5111, allocations: 1.277 MB / 0.7541 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002629/0.5113, allocations: 56 kB / 0.7542 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004252/0.5156, allocations: 1.933 MB / 0.7561 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003403/0.516, allocations: 262.8 kB / 0.7563 GB, free: 11.47 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0009849/0.5169, allocations: 0.6974 MB / 0.757 GB, free: 10.76 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003835/0.5208, allocations: 2.411 MB / 0.7593 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.5208, allocations: 3.938 kB / 0.7594 GB, free: 8.34 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5208, allocations: 0 / 0.7594 GB, free: 8.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.052e-05/0.5209, allocations: 0 / 0.7594 GB, free: 8.34 MB / 0.5573 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.003519/0.5244, allocations: 1.656 MB / 0.761 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.5244, allocations: 11.98 kB / 0.761 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.5247, allocations: 151.2 kB / 0.7611 GB, free: 6.465 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.5259, allocations: 0.7367 MB / 0.7618 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.927e-05/0.526, allocations: 90.75 kB / 0.7619 GB, free: 5.598 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.5262, allocations: 116.4 kB / 0.762 GB, free: 5.484 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.5286, allocations: 1.398 MB / 0.7634 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.5286, allocations: 0 / 0.7634 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.931e-05/0.5287, allocations: 51.94 kB / 0.7635 GB, free: 4.008 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.5288, allocations: 36 kB / 0.7635 GB, free: 3.973 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.5314, allocations: 1.68 MB / 0.7651 GB, free: 2.285 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2171/0.7485, allocations: 6.297 MB / 0.7713 GB, free: 163.1 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002325/0.7509, allocations: 1.474 MB / 0.7727 GB, free: 163 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009741/0.7519, allocations: 0.7438 MB / 0.7734 GB, free: 162.8 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003898/0.7558, allocations: 4.12 MB / 0.7775 GB, free: 159.5 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.7569, allocations: 0.7736 MB / 0.7782 GB, free: 159.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=134): time 2.976e-06/0.7569, allocations: 3.938 kB / 0.7782 GB, free: 159.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=135): time 0.006313/0.7632, allocations: 4.095 MB / 0.7822 GB, free: 157.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.7633, allocations: 69.75 kB / 0.7823 GB, free: 157 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004826/0.7638, allocations: 0.5436 MB / 0.7828 GB, free: 156.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.7639, allocations: 47.8 kB / 0.7829 GB, free: 156.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.7641, allocations: 465.1 kB / 0.7833 GB, free: 156.4 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.7643, allocations: 457.9 kB / 0.7838 GB, free: 156 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.7644, allocations: 22.88 kB / 0.7838 GB, free: 156 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.7645, allocations: 408.5 kB / 0.7842 GB, free: 155.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008486/0.7653, allocations: 0.548 MB / 0.7847 GB, free: 155.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008769/0.7662, allocations: 0.6618 MB / 0.7853 GB, free: 155.2 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001782/0.768, allocations: 1.325 MB / 0.7866 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.768, allocations: 0 / 0.7866 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002561/0.7706, allocations: 1.65 MB / 0.7883 GB, free: 153.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.7706, allocations: 35.45 kB / 0.7883 GB, free: 153.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.7707, allocations: 4.016 kB / 0.7883 GB, free: 153.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004649/0.7711, allocations: 158.9 kB / 0.7884 GB, free: 153.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000883/0.772, allocations: 248.9 kB / 0.7887 GB, free: 153.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.7752, allocations: 2.538 MB / 0.7912 GB, free: 151.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007602/0.7759, allocations: 97.44 kB / 0.7912 GB, free: 151.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.7761, allocations: 52.64 kB / 0.7913 GB, free: 151.8 MB / 0.5573 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * 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.0004101/0.7765, allocations: 280.9 kB / 0.7916 GB, free: 151.6 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.7766, allocations: 94.59 kB / 0.7917 GB, free: 151.5 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00355/0.7802, allocations: 2.168 MB / 0.7938 GB, free: 150.6 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.7802, allocations: 23.22 kB / 0.7938 GB, free: 150.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.7802, allocations: 2.719 kB / 0.7938 GB, free: 150.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.7802, allocations: 9.938 kB / 0.7938 GB, free: 150.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004707/0.7849, allocations: 3.569 MB / 0.7973 GB, free: 149 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.785, allocations: 0 / 0.7973 GB, free: 149 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009786/0.7859, allocations: 289.8 kB / 0.7976 GB, free: 148.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.7863, allocations: 139.7 kB / 0.7977 GB, free: 148.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.04e-05/0.7864, allocations: 53.77 kB / 0.7978 GB, free: 148.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.7885, allocations: 2.23 MB / 0.7999 GB, free: 147.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.7885, allocations: 1.031 kB / 0.7999 GB, free: 147.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004192/0.7927, allocations: 2.781 MB / 0.8026 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.793, allocations: 171.2 kB / 0.8028 GB, free: 145.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.7931, allocations: 31.34 kB / 0.8028 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006782/0.7938, allocations: 98.11 kB / 0.8029 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.7941, allocations: 116.4 kB / 0.803 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.7942, allocations: 65.36 kB / 0.8031 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003947/0.7946, allocations: 378.9 kB / 0.8035 GB, free: 145.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7946, allocations: 1.375 kB / 0.8035 GB, free: 145.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001412/0.796, allocations: 0.5132 MB / 0.804 GB, free: 145.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0008308/0.7969, allocations: 0.5928 MB / 0.8046 GB, free: 145.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002904/0.7998, allocations: 1.78 MB / 0.8063 GB, free: 144.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7998, allocations: 0 / 0.8063 GB, free: 144.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.8014, allocations: 1.088 MB / 0.8074 GB, free: 143.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.803, allocations: 336.2 kB / 0.8077 GB, free: 143.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.8068, allocations: 3.098 MB / 0.8107 GB, free: 141.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.8073, allocations: 1.143 MB / 0.8118 GB, free: 141.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001052/0.8084, allocations: 330.3 kB / 0.8121 GB, free: 141 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.8088, allocations: 139.1 kB / 0.8123 GB, free: 140.9 MB / 0.5573 GB Notification: Performance of SimCode: time 7.62e-07/0.8088, allocations: 0 / 0.8123 GB, free: 140.9 MB / 0.5573 GB Notification: Performance of Templates: time 0.03545/0.8443, allocations: 25.05 MB / 0.8367 GB, free: 127.5 MB / 0.5573 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (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 & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches