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.001181/0.001181, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001321/0.001321, allocations: 193.9 kB / 16.14 MB, free: 6.648 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.368/1.368, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6838/0.6838, allocations: 91.19 MB / 381.2 MB, free: 9.621 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001719, allocations: 77.41 kB / 459.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1256, allocations: 67.69 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3752/0.5008, allocations: 143.4 MB / 0.655 GB, free: 7.41 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004316/0.5051, allocations: 3.396 MB / 0.6584 GB, free: 4.66 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005842/0.5057, allocations: 19.28 kB / 0.6584 GB, free: 4.652 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000782/0.5065, allocations: 185.8 kB / 0.6586 GB, free: 4.504 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.5078, allocations: 464.5 kB / 0.659 GB, free: 4.137 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009824/0.5088, allocations: 355.9 kB / 0.6593 GB, free: 3.871 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.5099, allocations: 0.932 MB / 0.6603 GB, free: 3.352 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.5102, allocations: 111.6 kB / 0.6604 GB, free: 3.293 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007396/0.5109, allocations: 329.5 kB / 0.6607 GB, free: 3.105 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000521/0.5115, allocations: 359.1 kB / 0.661 GB, free: 2.898 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.647e-05/0.5115, allocations: 23.91 kB / 0.661 GB, free: 2.898 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.5127, allocations: 0.5657 MB / 0.6616 GB, free: 2.629 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.5128, allocations: 79.23 kB / 0.6617 GB, free: 2.566 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002825/0.5131, allocations: 226.6 kB / 0.6619 GB, free: 2.422 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.5142, allocations: 0.6903 MB / 0.6626 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5142, allocations: 0 / 0.6626 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.5142, allocations: 0 / 0.6626 GB, free: 1.973 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.5143, allocations: 0 / 0.6626 GB, free: 1.973 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.001603/0.5159, allocations: 0.8401 MB / 0.6634 GB, free: 1.246 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.5159, allocations: 10.22 kB / 0.6634 GB, free: 1.246 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.516, allocations: 49.44 kB / 0.6634 GB, free: 1.223 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.5166, allocations: 398.2 kB / 0.6638 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.5166, allocations: 28.38 kB / 0.6638 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.456e-05/0.5167, allocations: 38.88 kB / 0.6639 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000722/0.5174, allocations: 419.2 kB / 0.6643 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.5174, allocations: 0 / 0.6643 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.5175, allocations: 16.72 kB / 0.6643 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.5175, allocations: 11.78 kB / 0.6643 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007299/0.5182, allocations: 373.2 kB / 0.6647 GB, free: 376 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.5205, allocations: 1.861 MB / 0.6665 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000797/0.5213, allocations: 333.7 kB / 0.6668 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003347/0.5216, allocations: 173.7 kB / 0.667 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002043/0.5237, allocations: 1.524 MB / 0.6685 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005023/0.5242, allocations: 210.4 kB / 0.6687 GB, free: 12.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.534e-06/0.5242, allocations: 0 / 0.6687 GB, free: 12.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001459/0.5257, allocations: 0.6045 MB / 0.6692 GB, free: 12.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.5257, allocations: 62.19 kB / 0.6693 GB, free: 12.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.5261, allocations: 359.7 kB / 0.6696 GB, free: 11.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.5262, allocations: 32.52 kB / 0.6697 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.5263, allocations: 220.3 kB / 0.6699 GB, free: 11.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.961e-05/0.5264, allocations: 125.4 kB / 0.67 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.5266, allocations: 71.58 kB / 0.6701 GB, free: 11.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5267, allocations: 364.8 kB / 0.6704 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.527, allocations: 117.2 kB / 0.6705 GB, free: 11.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.5273, allocations: 171.9 kB / 0.6707 GB, free: 11.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006215/0.528, allocations: 333.5 kB / 0.671 GB, free: 10.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.528, allocations: 2.688 kB / 0.671 GB, free: 10.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001042/0.529, allocations: 473 kB / 0.6715 GB, free: 10.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.5291, allocations: 36.91 kB / 0.6715 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5291, allocations: 2.094 kB / 0.6715 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.5293, allocations: 45.27 kB / 0.6715 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.5297, allocations: 75.47 kB / 0.6716 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.531, allocations: 1.429 MB / 0.673 GB, free: 9.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.5313, allocations: 40.34 kB / 0.6731 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.5314, allocations: 20.67 kB / 0.6731 GB, free: 9.02 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.0002151/0.5316, allocations: 157.9 kB / 0.6732 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-05/0.5317, allocations: 47.22 kB / 0.6733 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.5328, allocations: 0.5187 MB / 0.6738 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.5328, allocations: 2.781 kB / 0.6738 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5328, allocations: 2.75 kB / 0.6738 GB, free: 8.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.5328, allocations: 7.938 kB / 0.6738 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.5345, allocations: 0.9659 MB / 0.6747 GB, free: 7.777 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5345, allocations: 2.75 kB / 0.6747 GB, free: 7.777 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.5347, allocations: 65.25 kB / 0.6748 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001649/0.5349, allocations: 46.06 kB / 0.6748 GB, free: 7.727 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.535, allocations: 9.281 kB / 0.6749 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.5361, allocations: 1.433 MB / 0.6762 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5361, allocations: 2.844 kB / 0.6763 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.5373, allocations: 0.639 MB / 0.6769 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.5374, allocations: 121.4 kB / 0.677 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.975e-05/0.5375, allocations: 12.67 kB / 0.677 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.5378, allocations: 23.23 kB / 0.677 GB, free: 5.719 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.5379, allocations: 42 kB / 0.6771 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.5379, allocations: 14.84 kB / 0.6771 GB, free: 5.688 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.5382, allocations: 266.8 kB / 0.6773 GB, free: 5.523 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5382, allocations: 0 / 0.6773 GB, free: 5.523 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.5388, allocations: 159.6 kB / 0.6775 GB, free: 5.488 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.0004322/0.5393, allocations: 238.5 kB / 0.6777 GB, free: 5.332 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009913/0.5403, allocations: 498.8 kB / 0.6782 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5403, allocations: 2.688 kB / 0.6782 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005018/0.5408, allocations: 298.6 kB / 0.6785 GB, free: 4.809 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008365/0.5417, allocations: 136.4 kB / 0.6786 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.5435, allocations: 1 MB / 0.6796 GB, free: 4.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.5439, allocations: 0.8237 MB / 0.6804 GB, free: 3.262 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.5442, allocations: 80.41 kB / 0.6805 GB, free: 3.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.5443, allocations: 49.3 kB / 0.6805 GB, free: 3.211 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5443, allocations: 0 / 0.6805 GB, free: 3.211 MB / 494.1 MB Notification: Performance of Templates: time 0.01416/0.5585, allocations: 7.814 MB / 0.6881 GB, free: 13.84 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