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.001637/0.001637, allocations: 108.9 kB / 16.37 MB, free: 6.473 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.00176/0.00176, allocations: 190.6 kB / 17.31 MB, free: 5.828 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6728/0.6728, allocations: 89.49 MB / 380.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 83.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1293, allocations: 67.31 MB / 0.5146 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3644/0.4937, allocations: 143.7 MB / 0.655 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004288/0.498, allocations: 3.567 MB / 0.6584 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/0.4984, allocations: 4 kB / 0.6584 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006941/0.4991, allocations: 174.9 kB / 0.6586 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0009738/0.5001, allocations: 357.9 kB / 0.6589 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008385/0.501, allocations: 298.9 kB / 0.6592 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006328/0.5016, allocations: 459 kB / 0.6597 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.5018, allocations: 75.7 kB / 0.6597 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000511/0.5023, allocations: 219.1 kB / 0.66 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003928/0.5028, allocations: 219.2 kB / 0.6602 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.457e-05/0.5028, allocations: 24 kB / 0.6602 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009978/0.5038, allocations: 495 kB / 0.6607 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.5039, allocations: 63.75 kB / 0.6607 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.5041, allocations: 159.1 kB / 0.6609 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.5049, allocations: 0.4886 MB / 0.6613 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.505, allocations: 0 / 0.6613 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.485e-06/0.505, allocations: 0 / 0.6613 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.615e-05/0.505, allocations: 0 / 0.6613 GB, free: 1.035 MB / 0.4981 GB 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.001361/0.5064, allocations: 0.6694 MB / 0.662 GB, free: 324 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.5064, allocations: 12.03 kB / 0.662 GB, free: 312 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.5065, allocations: 32.56 kB / 0.662 GB, free: 280 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.5069, allocations: 303.3 kB / 0.6623 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.507, allocations: 20.81 kB / 0.6624 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.507, allocations: 16.38 kB / 0.6624 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.5075, allocations: 266.7 kB / 0.6626 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.5075, allocations: 0.5625 kB / 0.6626 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.5076, allocations: 12 kB / 0.6626 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.5076, allocations: 8 kB / 0.6626 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004779/0.5081, allocations: 221.5 kB / 0.6629 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.5095, allocations: 1.067 MB / 0.6639 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005383/0.5101, allocations: 234.9 kB / 0.6641 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.5103, allocations: 113.4 kB / 0.6642 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001017/0.5114, allocations: 0.9868 MB / 0.6652 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003434/0.5117, allocations: 147.3 kB / 0.6653 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.5117, allocations: 1.031 kB / 0.6653 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=23): time 0.001127/0.5129, allocations: 450 kB / 0.6658 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.5129, allocations: 59.39 kB / 0.6658 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.5132, allocations: 278.9 kB / 0.6661 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.5133, allocations: 29.7 kB / 0.6661 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.5134, allocations: 172.2 kB / 0.6663 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.188e-05/0.5135, allocations: 70.94 kB / 0.6663 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.5136, allocations: 57.88 kB / 0.6664 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5137, allocations: 334.8 kB / 0.6667 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.5139, allocations: 76.19 kB / 0.6668 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.5142, allocations: 117.1 kB / 0.6669 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004445/0.5146, allocations: 221.5 kB / 0.6671 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.5146, allocations: 0 / 0.6671 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006851/0.5153, allocations: 338.8 kB / 0.6674 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.5154, allocations: 33.7 kB / 0.6675 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5154, allocations: 4.062 kB / 0.6675 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.5156, allocations: 48.75 kB / 0.6675 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.5158, allocations: 43.92 kB / 0.6676 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.5171, allocations: 1.528 MB / 0.6691 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.5173, allocations: 23.86 kB / 0.6691 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.5174, allocations: 12 kB / 0.6691 GB, free: 8.484 MB / 0.5137 GB 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.0001545/0.5175, allocations: 147.8 kB / 0.6692 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.5176, allocations: 36.25 kB / 0.6693 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007461/0.5183, allocations: 322.3 kB / 0.6696 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.5184, allocations: 7.938 kB / 0.6696 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.5184, allocations: 3.984 kB / 0.6696 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.5184, allocations: 0 / 0.6696 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.5195, allocations: 0.7303 MB / 0.6703 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5196, allocations: 0.6875 kB / 0.6703 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.5197, allocations: 39.91 kB / 0.6703 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.5199, allocations: 59.12 kB / 0.6704 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.5199, allocations: 4 kB / 0.6704 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.5212, allocations: 1.525 MB / 0.6719 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5212, allocations: 1.312 kB / 0.6719 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008623/0.522, allocations: 0.4919 MB / 0.6724 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.178e-05/0.5221, allocations: 108.7 kB / 0.6725 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.5222, allocations: 7.938 kB / 0.6725 GB, free: 4.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.5224, allocations: 15.98 kB / 0.6725 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.223e-05/0.5225, allocations: 23.97 kB / 0.6725 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.5225, allocations: 18.89 kB / 0.6725 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001904/0.5227, allocations: 190 kB / 0.6727 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5227, allocations: 0 / 0.6727 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004772/0.5232, allocations: 127.8 kB / 0.6728 GB, free: 4.398 MB / 0.5137 GB 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.0003508/0.5236, allocations: 217.5 kB / 0.673 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007729/0.5244, allocations: 386.4 kB / 0.6734 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5244, allocations: 0 / 0.6734 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.5248, allocations: 246.1 kB / 0.6736 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.5254, allocations: 100.6 kB / 0.6737 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.5267, allocations: 0.6136 MB / 0.6743 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.527, allocations: 0.7638 MB / 0.6751 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001701/0.5272, allocations: 50.11 kB / 0.6751 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.24e-05/0.5272, allocations: 31.44 kB / 0.6752 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of SimCode: time 3.11e-07/0.5272, allocations: 0 / 0.6752 GB, free: 1.949 MB / 0.5137 GB Notification: Performance of Templates: time 0.01184/0.5391, allocations: 6.21 MB / 0.6812 GB, free: 11.88 MB / 0.5294 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches