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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, 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.001612/0.001612, allocations: 195.2 kB / 16.54 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6524/0.6524, allocations: 89.48 MB / 379.9 MB, free: 11.03 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 78.31 kB / 458.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1118, allocations: 67.31 MB / 0.5132 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3913/0.5032, allocations: 173 MB / 0.6821 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.5157, allocations: 10.93 MB / 0.6928 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.5167, allocations: 23.59 kB / 0.6928 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.5186, allocations: 0.7921 MB / 0.6936 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.5222, allocations: 1.615 MB / 0.6951 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00261/0.5248, allocations: 1.117 MB / 0.6962 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002427/0.5273, allocations: 2.399 MB / 0.6986 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00063/0.5279, allocations: 456.2 kB / 0.699 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001412/0.5293, allocations: 0.9809 MB / 0.7 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.5309, allocations: 1.332 MB / 0.7013 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002136/0.5312, allocations: 144 kB / 0.7014 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004068/0.5352, allocations: 1.934 MB / 0.7033 GB, free: 192 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004334/0.5357, allocations: 346.8 kB / 0.7036 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.5367, allocations: 0.7738 MB / 0.7044 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005026/0.5418, allocations: 2.415 MB / 0.7067 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.5418, allocations: 8 kB / 0.7068 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.805e-06/0.5418, allocations: 0 / 0.7068 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.045e-05/0.5419, allocations: 0 / 0.7068 GB, free: 12.64 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.003783/0.5457, allocations: 1.882 MB / 0.7086 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.5457, allocations: 8.031 kB / 0.7086 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.546, allocations: 151.2 kB / 0.7087 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009896/0.547, allocations: 0.7407 MB / 0.7095 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-05/0.5471, allocations: 90.78 kB / 0.7096 GB, free: 9.672 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.5473, allocations: 124.5 kB / 0.7097 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/0.5497, allocations: 1.524 MB / 0.7112 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.5497, allocations: 0 / 0.7112 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.5499, allocations: 44 kB / 0.7112 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.5499, allocations: 36 kB / 0.7112 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00276/0.5527, allocations: 1.665 MB / 0.7129 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007249/0.5599, allocations: 6.23 MB / 0.7189 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.5623, allocations: 1.28 MB / 0.7202 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.5636, allocations: 0.6997 MB / 0.7209 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004855/0.5684, allocations: 4.021 MB / 0.7248 GB, free: 8.922 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/0.5698, allocations: 0.7317 MB / 0.7255 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 3.566e-06/0.5698, allocations: 0 / 0.7255 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.007563/0.5774, allocations: 3.919 MB / 0.7293 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.5775, allocations: 64.72 kB / 0.7294 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006879/0.5782, allocations: 0.5863 MB / 0.73 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.407e-05/0.5783, allocations: 53.64 kB / 0.73 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.5786, allocations: 468.6 kB / 0.7305 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000331/0.579, allocations: 441.6 kB / 0.7309 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/0.5793, allocations: 202.8 kB / 0.7311 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5794, allocations: 353.9 kB / 0.7314 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009559/0.5804, allocations: 0.5101 MB / 0.7319 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.5815, allocations: 0.6251 MB / 0.7325 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002178/0.5837, allocations: 1.244 MB / 0.7338 GB, free: 15.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5837, allocations: 0 / 0.7338 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003006/0.5867, allocations: 1.572 MB / 0.7353 GB, free: 13.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.5868, allocations: 37.89 kB / 0.7353 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.5868, allocations: 7.984 kB / 0.7353 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/0.5873, allocations: 160.7 kB / 0.7355 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009551/0.5883, allocations: 243.7 kB / 0.7357 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.5923, allocations: 2.725 MB / 0.7384 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007318/0.5931, allocations: 52 kB / 0.7384 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.5932, allocations: 51.92 kB / 0.7385 GB, free: 10.55 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.0005242/0.5937, allocations: 281.6 kB / 0.7387 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.594, allocations: 98.78 kB / 0.7388 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004195/0.5982, allocations: 2.316 MB / 0.7411 GB, free: 7.871 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.5982, allocations: 16 kB / 0.7411 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5982, allocations: 0 / 0.7411 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/0.5982, allocations: 7.969 kB / 0.7411 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005405/0.6036, allocations: 3.376 MB / 0.7444 GB, free: 4.398 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.6037, allocations: 0 / 0.7444 GB, free: 4.398 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009594/0.6046, allocations: 271.6 kB / 0.7447 GB, free: 4.133 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004223/0.6051, allocations: 140.9 kB / 0.7448 GB, free: 3.992 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.404e-05/0.6052, allocations: 51.97 kB / 0.7449 GB, free: 3.941 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002686/0.6079, allocations: 2.452 MB / 0.7473 GB, free: 1.348 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6079, allocations: 4 kB / 0.7473 GB, free: 1.344 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004503/0.6124, allocations: 2.567 MB / 0.7498 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.6127, allocations: 175.8 kB / 0.7499 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.6128, allocations: 36.05 kB / 0.75 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/0.6134, allocations: 47.97 kB / 0.75 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.6137, allocations: 113.2 kB / 0.7501 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.6138, allocations: 55.97 kB / 0.7502 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005365/0.6143, allocations: 439 kB / 0.7506 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6143, allocations: 0 / 0.7506 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001402/0.6158, allocations: 0.5153 MB / 0.7511 GB, free: 13.36 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.0008855/0.6166, allocations: 0.5733 MB / 0.7517 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004597/0.6213, allocations: 1.844 MB / 0.7535 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6213, allocations: 8.062 kB / 0.7535 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.6231, allocations: 0.9897 MB / 0.7544 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.625, allocations: 391 kB / 0.7548 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.6295, allocations: 2.471 MB / 0.7572 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007096/0.6302, allocations: 1.141 MB / 0.7583 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001142/0.6314, allocations: 335.5 kB / 0.7587 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.6317, allocations: 135.4 kB / 0.7588 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.6318, allocations: 0 / 0.7588 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of Templates: time 0.03936/0.6711, allocations: 26.02 MB / 0.7842 GB, free: 11.63 MB / 0.5919 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches