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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 78.95 kB / 19.76 MB, free: 2.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 160.7 kB / 23.01 MB, free: 4.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.381/1.381, allocations: 177.2 MB / 203.4 MB, free: 9.238 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.723/0.723, allocations: 79.61 MB / 339.4 MB, free: 11.5 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 92.22 kB / 0.4924 GB, free: 26.15 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1183, allocations: 74.58 MB / 0.5652 GB, free: 6.129 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4558/0.5741, allocations: 150.7 MB / 0.7124 GB, free: 3.867 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01181/0.5859, allocations: 10.05 MB / 0.7222 GB, free: 3.793 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.5872, allocations: 67.91 kB / 0.7222 GB, free: 3.793 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.5889, allocations: 0.7202 MB / 0.723 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003762/0.5927, allocations: 1.687 MB / 0.7246 GB, free: 3.715 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002672/0.5954, allocations: 1.129 MB / 0.7257 GB, free: 3.695 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00252/0.5979, allocations: 2.556 MB / 0.7282 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004466/0.5983, allocations: 279 kB / 0.7285 GB, free: 3.59 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.6003, allocations: 1.493 MB / 0.7299 GB, free: 3.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.6018, allocations: 1.31 MB / 0.7312 GB, free: 3.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.602, allocations: 144.2 kB / 0.7313 GB, free: 3.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003211/0.6052, allocations: 1.676 MB / 0.733 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.6055, allocations: 374.8 kB / 0.7333 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006024/0.6061, allocations: 0.6669 MB / 0.734 GB, free: 3.363 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.609, allocations: 2.584 MB / 0.7365 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.609, allocations: 0.9062 kB / 0.7365 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.273e-06/0.609, allocations: 0 / 0.7365 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.844e-05/0.6091, allocations: 0 / 0.7365 GB, free: 2.988 MB / 0.5919 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.003328/0.6124, allocations: 2.009 MB / 0.7385 GB, free: 18.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.6124, allocations: 9.625 kB / 0.7385 GB, free: 18.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003475/0.6128, allocations: 188.4 kB / 0.7387 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.6141, allocations: 0.9084 MB / 0.7395 GB, free: 17.65 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.6142, allocations: 88.25 kB / 0.7396 GB, free: 17.64 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.6143, allocations: 120.4 kB / 0.7397 GB, free: 17.64 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.6164, allocations: 1.557 MB / 0.7413 GB, free: 17.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.6164, allocations: 0 / 0.7413 GB, free: 17.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/0.6165, allocations: 47.62 kB / 0.7413 GB, free: 17.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.6165, allocations: 29.16 kB / 0.7413 GB, free: 17.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/0.6189, allocations: 1.701 MB / 0.743 GB, free: 17.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.6239, allocations: 3.532 MB / 0.7465 GB, free: 16.77 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.6258, allocations: 1.184 MB / 0.7476 GB, free: 16.72 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008806/0.6267, allocations: 0.6426 MB / 0.7482 GB, free: 16.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003414/0.6301, allocations: 2.064 MB / 0.7502 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.6312, allocations: 0.7417 MB / 0.751 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 3.427e-06/0.6312, allocations: 0 / 0.751 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.007007/0.6382, allocations: 3.78 MB / 0.7547 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.6382, allocations: 67.34 kB / 0.7547 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007498/0.639, allocations: 0.6586 MB / 0.7554 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.745e-05/0.6391, allocations: 50.67 kB / 0.7554 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.6395, allocations: 0.5433 MB / 0.756 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.6399, allocations: 454 kB / 0.7564 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.6402, allocations: 209.1 kB / 0.7566 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.6404, allocations: 344.4 kB / 0.7569 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009167/0.6413, allocations: 0.5487 MB / 0.7574 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.6423, allocations: 0.6523 MB / 0.7581 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.6444, allocations: 1.261 MB / 0.7593 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.6444, allocations: 0 / 0.7593 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002929/0.6473, allocations: 1.635 MB / 0.7609 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.6473, allocations: 36.33 kB / 0.7609 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.6473, allocations: 1 kB / 0.7609 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004893/0.6478, allocations: 163.4 kB / 0.7611 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008582/0.6487, allocations: 244.1 kB / 0.7613 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/0.6525, allocations: 2.565 MB / 0.7638 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006103/0.6531, allocations: 56.62 kB / 0.7639 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.6532, allocations: 50.52 kB / 0.7639 GB, free: 8.203 MB / 0.6075 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.0005205/0.6538, allocations: 293 kB / 0.7642 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.6541, allocations: 127.6 kB / 0.7643 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.6581, allocations: 2.313 MB / 0.7666 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.6581, allocations: 14.88 kB / 0.7666 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.6581, allocations: 5.656 kB / 0.7666 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.6582, allocations: 13.23 kB / 0.7666 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005225/0.6634, allocations: 3.046 MB / 0.7696 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.6634, allocations: 3.719 kB / 0.7696 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008814/0.6643, allocations: 271.2 kB / 0.7699 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003964/0.6647, allocations: 145.4 kB / 0.77 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.6648, allocations: 47.22 kB / 0.7701 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/0.6674, allocations: 2.285 MB / 0.7723 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.6674, allocations: 1.391 kB / 0.7723 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/0.6719, allocations: 2.609 MB / 0.7748 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.6721, allocations: 107.4 kB / 0.7749 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.6722, allocations: 35.92 kB / 0.775 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005705/0.6728, allocations: 57.98 kB / 0.775 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.673, allocations: 116.9 kB / 0.7751 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.6731, allocations: 55.88 kB / 0.7752 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006154/0.6738, allocations: 483.2 kB / 0.7757 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/0.6738, allocations: 2.406 kB / 0.7757 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001399/0.6752, allocations: 0.5121 MB / 0.7762 GB, free: 1.816 MB / 0.6075 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.0008928/0.6761, allocations: 0.5742 MB / 0.7767 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002761/0.6788, allocations: 1.584 MB / 0.7783 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6788, allocations: 0.7188 kB / 0.7783 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.6804, allocations: 0.9341 MB / 0.7792 GB, free: 276 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.6818, allocations: 346.3 kB / 0.7795 GB, free: 84 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.6864, allocations: 2.658 MB / 0.7821 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007016/0.6871, allocations: 0.6012 MB / 0.7827 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0009956/0.6881, allocations: 337.8 kB / 0.783 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003928/0.6885, allocations: 144.4 kB / 0.7832 GB, free: 13 MB / 0.6231 GB Notification: Performance of SimCode: time 3.71e-07/0.6885, allocations: 7.938 kB / 0.7832 GB, free: 13 MB / 0.6231 GB Notification: Performance of Templates: time 0.04291/0.7314, allocations: 25.64 MB / 0.8082 GB, free: 3.785 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.481774713844061]