Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009521/0.009521, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.452/1.452, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7822/0.7822, allocations: 91.33 MB / 382.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003864, allocations: 10.53 kB / 462.7 MB, free: 23.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1514, allocations: 69.21 MB / 0.5195 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4788/0.6302, allocations: 140.1 MB / 0.6562 GB, free: 6.621 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004946/0.6352, allocations: 3.606 MB / 0.6598 GB, free: 3.703 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004983/0.6358, allocations: 16 kB / 0.6598 GB, free: 3.695 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006453/0.6364, allocations: 153.9 kB / 0.6599 GB, free: 3.574 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.6375, allocations: 340.5 kB / 0.6602 GB, free: 3.305 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000786/0.6383, allocations: 247.2 kB / 0.6605 GB, free: 3.121 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006599/0.6389, allocations: 0.5981 MB / 0.6611 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.6391, allocations: 80.02 kB / 0.6611 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005122/0.6396, allocations: 209.5 kB / 0.6613 GB, free: 2.617 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.64, allocations: 221.2 kB / 0.6615 GB, free: 2.488 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.379e-05/0.64, allocations: 10.5 kB / 0.6616 GB, free: 2.488 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009981/0.641, allocations: 488.2 kB / 0.662 GB, free: 2.258 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.306e-05/0.6411, allocations: 50.56 kB / 0.6621 GB, free: 2.219 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.6413, allocations: 188 kB / 0.6622 GB, free: 2.082 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007502/0.6421, allocations: 0.5016 MB / 0.6627 GB, free: 1.762 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6421, allocations: 2.469 kB / 0.6627 GB, free: 1.762 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6421, allocations: 0 / 0.6627 GB, free: 1.762 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.6421, allocations: 0 / 0.6627 GB, free: 1.762 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001305/0.6434, allocations: 0.6763 MB / 0.6634 GB, free: 1.152 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.6435, allocations: 8 kB / 0.6634 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.444e-05/0.6436, allocations: 47.41 kB / 0.6635 GB, free: 1.125 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004848/0.6441, allocations: 352.9 kB / 0.6638 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.6441, allocations: 16.83 kB / 0.6638 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.334e-05/0.6442, allocations: 29.69 kB / 0.6638 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.6447, allocations: 262.4 kB / 0.6641 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.6447, allocations: 3.938 kB / 0.6641 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.6447, allocations: 10.09 kB / 0.6641 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.6448, allocations: 9.812 kB / 0.6641 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.6452, allocations: 229.3 kB / 0.6643 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.6468, allocations: 1.107 MB / 0.6654 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.6473, allocations: 235.8 kB / 0.6656 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002427/0.6476, allocations: 119.6 kB / 0.6657 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/0.6486, allocations: 0.9772 MB / 0.6667 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.649, allocations: 160.3 kB / 0.6669 GB, free: 14.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.6491, allocations: 4 kB / 0.6669 GB, free: 14.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001219/0.6503, allocations: 479.8 kB / 0.6673 GB, free: 13.82 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.6503, allocations: 63.94 kB / 0.6674 GB, free: 13.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.6507, allocations: 331.2 kB / 0.6677 GB, free: 13.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.6508, allocations: 32.61 kB / 0.6677 GB, free: 13.51 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.6509, allocations: 191.2 kB / 0.6679 GB, free: 13.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/0.651, allocations: 83.08 kB / 0.668 GB, free: 13.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.907e-05/0.651, allocations: 30.52 kB / 0.668 GB, free: 13.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6512, allocations: 346.6 kB / 0.6683 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.6514, allocations: 84.5 kB / 0.6684 GB, free: 12.86 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.6517, allocations: 113.4 kB / 0.6685 GB, free: 12.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004538/0.6521, allocations: 229.7 kB / 0.6688 GB, free: 12.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.6522, allocations: 0 / 0.6688 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000717/0.6529, allocations: 354.8 kB / 0.6691 GB, free: 12.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.6529, allocations: 37.17 kB / 0.6691 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.6529, allocations: 0 / 0.6691 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000247/0.6532, allocations: 48.7 kB / 0.6692 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.6534, allocations: 47.19 kB / 0.6692 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.6547, allocations: 1.416 MB / 0.6706 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.655, allocations: 29.61 kB / 0.6706 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.655, allocations: 9.75 kB / 0.6706 GB, free: 10.91 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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.0002009/0.6552, allocations: 156.2 kB / 0.6708 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/0.6553, allocations: 47.27 kB / 0.6708 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007844/0.6561, allocations: 338 kB / 0.6712 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.6561, allocations: 1.781 kB / 0.6712 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.6561, allocations: 3.312 kB / 0.6712 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.6561, allocations: 8.984 kB / 0.6712 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.6573, allocations: 0.7627 MB / 0.6719 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.6573, allocations: 0 / 0.6719 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.6575, allocations: 48.31 kB / 0.672 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.6577, allocations: 33.73 kB / 0.672 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.6577, allocations: 10.8 kB / 0.672 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.6589, allocations: 1.428 MB / 0.6734 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6589, allocations: 2.969 kB / 0.6734 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009091/0.6598, allocations: 0.514 MB / 0.6739 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.6599, allocations: 115.4 kB / 0.674 GB, free: 7.973 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/0.66, allocations: 6.938 kB / 0.674 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.6602, allocations: 18.83 kB / 0.674 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.6603, allocations: 30.77 kB / 0.6741 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.6603, allocations: 5.875 kB / 0.6741 GB, free: 7.941 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.6606, allocations: 246.1 kB / 0.6743 GB, free: 7.781 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6606, allocations: 0 / 0.6743 GB, free: 7.781 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.6611, allocations: 126.9 kB / 0.6744 GB, free: 7.746 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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.0003408/0.6614, allocations: 212.3 kB / 0.6746 GB, free: 7.605 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000795/0.6622, allocations: 405 kB / 0.675 GB, free: 7.324 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.6622, allocations: 2.125 kB / 0.675 GB, free: 7.324 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000404/0.6627, allocations: 253.6 kB / 0.6753 GB, free: 7.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007225/0.6634, allocations: 97.59 kB / 0.6754 GB, free: 7.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.6649, allocations: 0.8448 MB / 0.6762 GB, free: 6.246 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.6653, allocations: 0.7797 MB / 0.6769 GB, free: 5.441 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002093/0.6655, allocations: 51.72 kB / 0.677 GB, free: 5.391 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.6656, allocations: 39.42 kB / 0.677 GB, free: 5.352 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.6656, allocations: 0 / 0.677 GB, free: 5.352 MB / 494.1 MB Notification: Performance of Templates: time 0.01312/0.6787, allocations: 6.045 MB / 0.6829 GB, free: 15.35 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches