Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_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_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.001651/0.001651, 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.002029/0.00203, allocations: 197.8 kB / 16.14 MB, free: 6.711 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6859/0.6859, allocations: 91.2 MB / 381.2 MB, free: 9.609 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 85.44 kB / 459.6 MB, free: 23.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1101, allocations: 67.7 MB / 0.515 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3757/0.4859, allocations: 143.4 MB / 0.655 GB, free: 7.41 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004342/0.4903, allocations: 3.399 MB / 0.6584 GB, free: 4.66 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005103/0.4908, allocations: 23.47 kB / 0.6584 GB, free: 4.648 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006687/0.4915, allocations: 181.4 kB / 0.6586 GB, free: 4.504 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.4926, allocations: 463.9 kB / 0.659 GB, free: 4.137 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009066/0.4935, allocations: 337.6 kB / 0.6593 GB, free: 3.887 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009502/0.4945, allocations: 0.937 MB / 0.6602 GB, free: 3.363 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.4947, allocations: 120.3 kB / 0.6604 GB, free: 3.297 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006508/0.4954, allocations: 337.1 kB / 0.6607 GB, free: 3.102 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004092/0.4958, allocations: 349.2 kB / 0.661 GB, free: 2.906 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.4959, allocations: 22.22 kB / 0.661 GB, free: 2.906 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.497, allocations: 0.564 MB / 0.6616 GB, free: 2.637 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.4972, allocations: 86.48 kB / 0.6617 GB, free: 2.566 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.4974, allocations: 227.2 kB / 0.6619 GB, free: 2.422 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009199/0.4983, allocations: 0.6882 MB / 0.6626 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4983, allocations: 0 / 0.6626 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.4984, allocations: 0 / 0.6626 GB, free: 1.977 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.4984, allocations: 0 / 0.6626 GB, free: 1.977 MB / 478.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.001502/0.4999, allocations: 0.8402 MB / 0.6634 GB, free: 1.25 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4999, allocations: 9.5 kB / 0.6634 GB, free: 1.25 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.5, allocations: 54 kB / 0.6634 GB, free: 1.223 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.5005, allocations: 393.3 kB / 0.6638 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.5006, allocations: 28.94 kB / 0.6638 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.5006, allocations: 40.59 kB / 0.6639 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000713/0.5014, allocations: 423.2 kB / 0.6643 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5014, allocations: 0 / 0.6643 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.5014, allocations: 16.72 kB / 0.6643 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.5014, allocations: 7.688 kB / 0.6643 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007058/0.5022, allocations: 369.3 kB / 0.6647 GB, free: 384 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.5043, allocations: 1.86 MB / 0.6665 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007754/0.5051, allocations: 341 kB / 0.6668 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.5055, allocations: 170.2 kB / 0.667 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00206/0.5075, allocations: 1.524 MB / 0.6684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005119/0.5081, allocations: 206.7 kB / 0.6686 GB, free: 12.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.635e-06/0.5081, allocations: 4 kB / 0.6686 GB, free: 12.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001415/0.5095, allocations: 0.5986 MB / 0.6692 GB, free: 12.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.5096, allocations: 60.11 kB / 0.6693 GB, free: 12.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.51, allocations: 363.8 kB / 0.6696 GB, free: 11.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.51, allocations: 32.23 kB / 0.6697 GB, free: 11.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.5102, allocations: 220.4 kB / 0.6699 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.585e-05/0.5103, allocations: 129.2 kB / 0.67 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.5104, allocations: 76.25 kB / 0.6701 GB, free: 11.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.5105, allocations: 360.5 kB / 0.6704 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.5108, allocations: 117.2 kB / 0.6705 GB, free: 11.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/0.5112, allocations: 175 kB / 0.6707 GB, free: 11.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006182/0.5118, allocations: 333.9 kB / 0.671 GB, free: 10.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.5118, allocations: 2 kB / 0.671 GB, free: 10.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009391/0.5127, allocations: 473.3 kB / 0.6715 GB, free: 10.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.5128, allocations: 33.14 kB / 0.6715 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.5128, allocations: 3.938 kB / 0.6715 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002439/0.5131, allocations: 44.61 kB / 0.6715 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.5134, allocations: 75.92 kB / 0.6716 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.5147, allocations: 1.428 MB / 0.673 GB, free: 9.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003316/0.5151, allocations: 36.23 kB / 0.673 GB, free: 9.031 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.5151, allocations: 21.67 kB / 0.6731 GB, free: 9.023 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.5154, allocations: 161.3 kB / 0.6732 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.416e-05/0.5154, allocations: 47.41 kB / 0.6733 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.5165, allocations: 0.5195 MB / 0.6738 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.5166, allocations: 9.344 kB / 0.6738 GB, free: 8.527 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.5166, allocations: 0 / 0.6738 GB, free: 8.527 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.5166, allocations: 3.938 kB / 0.6738 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.5182, allocations: 0.9679 MB / 0.6747 GB, free: 7.777 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.5182, allocations: 4 kB / 0.6747 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002435/0.5184, allocations: 61.03 kB / 0.6748 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001539/0.5186, allocations: 40.62 kB / 0.6748 GB, free: 7.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.5186, allocations: 17.62 kB / 0.6748 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.5198, allocations: 1.421 MB / 0.6762 GB, free: 6.289 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.5199, allocations: 3.062 kB / 0.6762 GB, free: 6.289 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.5211, allocations: 0.647 MB / 0.6769 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.5212, allocations: 121 kB / 0.677 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.638e-05/0.5213, allocations: 9.188 kB / 0.677 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.5216, allocations: 22.77 kB / 0.677 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.5217, allocations: 39.03 kB / 0.6771 GB, free: 5.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.5218, allocations: 18.17 kB / 0.6771 GB, free: 5.695 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002873/0.522, allocations: 266.8 kB / 0.6773 GB, free: 5.531 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5221, allocations: 0 / 0.6773 GB, free: 5.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005842/0.5226, allocations: 163 kB / 0.6775 GB, free: 5.492 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.0003984/0.5231, allocations: 235.9 kB / 0.6777 GB, free: 5.336 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009659/0.524, allocations: 499 kB / 0.6782 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5241, allocations: 0 / 0.6782 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.5245, allocations: 294.7 kB / 0.6785 GB, free: 4.816 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008533/0.5254, allocations: 149.6 kB / 0.6786 GB, free: 4.734 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.5272, allocations: 1.007 MB / 0.6796 GB, free: 4.016 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.5277, allocations: 0.8183 MB / 0.6804 GB, free: 3.262 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003236/0.528, allocations: 78.7 kB / 0.6805 GB, free: 3.234 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5281, allocations: 46.05 kB / 0.6805 GB, free: 3.219 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5281, allocations: 0 / 0.6805 GB, free: 3.219 MB / 494.1 MB Notification: Performance of Templates: time 0.01458/0.5427, allocations: 7.81 MB / 0.6881 GB, free: 13.86 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches