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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001344, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.59/1.59, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8863/0.8863, allocations: 91.21 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001772, allocations: 73.27 kB / 460.4 MB, free: 23.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1886, allocations: 67.7 MB / 0.5157 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.507/0.6957, allocations: 145.3 MB / 0.6576 GB, free: 5.609 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005034/0.7008, allocations: 3.342 MB / 0.6609 GB, free: 2.887 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.7015, allocations: 18.38 kB / 0.6609 GB, free: 2.879 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008205/0.7024, allocations: 212.2 kB / 0.6611 GB, free: 2.703 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.704, allocations: 493.5 kB / 0.6616 GB, free: 2.309 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.7052, allocations: 391.8 kB / 0.662 GB, free: 2.023 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008842/0.7061, allocations: 0.7158 MB / 0.6627 GB, free: 1.613 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.7063, allocations: 124.2 kB / 0.6628 GB, free: 1.551 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006475/0.707, allocations: 346.8 kB / 0.6631 GB, free: 1.352 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.7074, allocations: 354.2 kB / 0.6635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.7075, allocations: 33.06 kB / 0.6635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001873/0.7094, allocations: 0.5812 MB / 0.6641 GB, free: 0.875 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.7096, allocations: 95.11 kB / 0.6642 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003338/0.7099, allocations: 239.4 kB / 0.6644 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.7114, allocations: 0.7046 MB / 0.6651 GB, free: 196 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.7114, allocations: 3.984 kB / 0.6651 GB, free: 192 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.7114, allocations: 0 / 0.6651 GB, free: 192 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.7114, allocations: 4 kB / 0.6651 GB, free: 188 kB / 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.001771/0.7132, allocations: 0.8371 MB / 0.6659 GB, free: 15.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.7133, allocations: 10.09 kB / 0.6659 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.448e-05/0.7134, allocations: 72.78 kB / 0.666 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.7135, allocations: 54.5 kB / 0.666 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006167/0.7141, allocations: 398.3 kB / 0.6664 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.7142, allocations: 25.56 kB / 0.6664 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/0.7143, allocations: 43.53 kB / 0.6665 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007774/0.715, allocations: 420.5 kB / 0.6669 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.7151, allocations: 3.984 kB / 0.6669 GB, free: 14.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.7151, allocations: 16.88 kB / 0.6669 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.7151, allocations: 7.969 kB / 0.6669 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006557/0.7158, allocations: 373.1 kB / 0.6673 GB, free: 14.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.7178, allocations: 1.858 MB / 0.6691 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007266/0.7186, allocations: 333 kB / 0.6694 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.7189, allocations: 177.8 kB / 0.6696 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001856/0.7208, allocations: 1.529 MB / 0.671 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004865/0.7213, allocations: 210.7 kB / 0.6713 GB, free: 10.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/0.7213, allocations: 0 / 0.6713 GB, free: 10.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.00132/0.7226, allocations: 0.6046 MB / 0.6718 GB, free: 10.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.7227, allocations: 60.58 kB / 0.6719 GB, free: 10.33 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.723, allocations: 357.6 kB / 0.6722 GB, free: 10.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.7231, allocations: 31.52 kB / 0.6723 GB, free: 10.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.7232, allocations: 224.7 kB / 0.6725 GB, free: 9.863 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.813e-05/0.7233, allocations: 121.8 kB / 0.6726 GB, free: 9.758 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.7234, allocations: 76.38 kB / 0.6727 GB, free: 9.703 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.7236, allocations: 364.2 kB / 0.673 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.7239, allocations: 121.4 kB / 0.6731 GB, free: 9.289 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.7242, allocations: 171.3 kB / 0.6733 GB, free: 9.176 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.7248, allocations: 333.7 kB / 0.6736 GB, free: 8.961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.7249, allocations: 0 / 0.6736 GB, free: 8.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008761/0.7257, allocations: 479.2 kB / 0.6741 GB, free: 8.691 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.7258, allocations: 30.52 kB / 0.6741 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.7258, allocations: 2.844 kB / 0.6741 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002409/0.7261, allocations: 45.05 kB / 0.6741 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.7263, allocations: 78.73 kB / 0.6742 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.7277, allocations: 1.537 MB / 0.6757 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.728, allocations: 43.92 kB / 0.6758 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.7281, allocations: 12.81 kB / 0.6758 GB, free: 7.039 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.0002053/0.7283, allocations: 163.5 kB / 0.6759 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.329e-05/0.7284, allocations: 43.72 kB / 0.676 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.7294, allocations: 0.5258 MB / 0.6765 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.7294, allocations: 7.219 kB / 0.6765 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.7294, allocations: 0 / 0.6765 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.7295, allocations: 6.781 kB / 0.6765 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.731, allocations: 0.9685 MB / 0.6775 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.731, allocations: 0 / 0.6775 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.7312, allocations: 63.69 kB / 0.6775 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001595/0.7314, allocations: 41.84 kB / 0.6776 GB, free: 5.738 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.7314, allocations: 13.89 kB / 0.6776 GB, free: 5.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.7326, allocations: 1.541 MB / 0.6791 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7327, allocations: 3 kB / 0.6791 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.7337, allocations: 0.6441 MB / 0.6797 GB, free: 3.762 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.7339, allocations: 116.9 kB / 0.6798 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.7339, allocations: 13.12 kB / 0.6798 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.7342, allocations: 20.8 kB / 0.6798 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.7343, allocations: 41.09 kB / 0.6799 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.7343, allocations: 14.19 kB / 0.6799 GB, free: 3.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.7346, allocations: 268.4 kB / 0.6802 GB, free: 3.426 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7346, allocations: 0 / 0.6802 GB, free: 3.426 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.7352, allocations: 167.4 kB / 0.6803 GB, free: 3.383 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.00164/0.7368, allocations: 1.31 MB / 0.6816 GB, free: 2.387 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.7379, allocations: 0.4982 MB / 0.6821 GB, free: 2.055 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.7379, allocations: 3.938 kB / 0.6821 GB, free: 2.051 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.7384, allocations: 295 kB / 0.6824 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007645/0.7392, allocations: 140.1 kB / 0.6825 GB, free: 1.777 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005385/0.7446, allocations: 3.901 MB / 0.6863 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.745, allocations: 0.8144 MB / 0.6871 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003525/0.7453, allocations: 86.5 kB / 0.6872 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.7455, allocations: 160.7 kB / 0.6873 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of SimCode: time 6.42e-07/0.7456, allocations: 2.719 kB / 0.6873 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06033/0.8059, allocations: 12.55 MB / 0.6996 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.934/10.74, allocations: 15.97 kB / 0.6996 GB, free: 2.281 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches