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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.001613/0.001613, 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.002093/0.002094, allocations: 196.2 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.654/1.654, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9331/0.9331, allocations: 91.2 MB / 381.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002262, allocations: 83.88 kB / 460.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2172, allocations: 67.69 MB / 0.5157 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.7378/0.955, allocations: 143.8 MB / 0.6561 GB, free: 6.91 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006437/0.9616, allocations: 3.603 MB / 0.6597 GB, free: 3.988 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005775/0.9622, allocations: 10.81 kB / 0.6597 GB, free: 3.984 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.9633, allocations: 183.7 kB / 0.6599 GB, free: 3.832 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00172/0.9651, allocations: 370.2 kB / 0.6602 GB, free: 3.535 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.9666, allocations: 293.4 kB / 0.6605 GB, free: 3.32 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.9676, allocations: 0.4956 MB / 0.661 GB, free: 3.031 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.9679, allocations: 87.11 kB / 0.6611 GB, free: 2.984 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007496/0.9687, allocations: 240.1 kB / 0.6613 GB, free: 2.84 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000328/0.969, allocations: 225.9 kB / 0.6615 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.9691, allocations: 24.88 kB / 0.6615 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.9705, allocations: 494.2 kB / 0.662 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.9706, allocations: 65.8 kB / 0.6621 GB, free: 2.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.9708, allocations: 177.7 kB / 0.6622 GB, free: 2.309 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.972, allocations: 0.5273 MB / 0.6627 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.972, allocations: 0 / 0.6627 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.972, allocations: 0 / 0.6627 GB, free: 1.977 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.972, allocations: 0 / 0.6627 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001851/0.9739, allocations: 0.7355 MB / 0.6635 GB, free: 1.324 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/0.974, allocations: 9.594 kB / 0.6635 GB, free: 1.324 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.156e-05/0.974, allocations: 52.52 kB / 0.6635 GB, free: 1.27 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.971e-05/0.9742, allocations: 44.38 kB / 0.6636 GB, free: 1.246 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006001/0.9748, allocations: 360.3 kB / 0.6639 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.904e-05/0.9748, allocations: 22.47 kB / 0.6639 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.9749, allocations: 18.94 kB / 0.6639 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007513/0.9756, allocations: 259.8 kB / 0.6642 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.9757, allocations: 3.984 kB / 0.6642 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.9757, allocations: 10.06 kB / 0.6642 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.9757, allocations: 5.688 kB / 0.6642 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005116/0.9762, allocations: 218.7 kB / 0.6644 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.9781, allocations: 1.096 MB / 0.6655 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/0.9787, allocations: 226.4 kB / 0.6657 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.979, allocations: 112.5 kB / 0.6658 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001393/0.9804, allocations: 0.979 MB / 0.6668 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007962/0.9812, allocations: 156.4 kB / 0.6669 GB, free: 14.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.9812, allocations: 4 kB / 0.6669 GB, free: 14.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001557/0.9828, allocations: 464.6 kB / 0.6674 GB, free: 13.94 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.9829, allocations: 58.44 kB / 0.6674 GB, free: 13.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.9833, allocations: 336.5 kB / 0.6677 GB, free: 13.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.9834, allocations: 32.27 kB / 0.6678 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.9835, allocations: 194.2 kB / 0.668 GB, free: 13.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.9836, allocations: 84.58 kB / 0.668 GB, free: 13.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.834e-05/0.9838, allocations: 47.84 kB / 0.6681 GB, free: 13.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.984, allocations: 345 kB / 0.6684 GB, free: 13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.9843, allocations: 81.09 kB / 0.6685 GB, free: 12.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000385/0.9848, allocations: 114.5 kB / 0.6686 GB, free: 12.89 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.9852, allocations: 219.3 kB / 0.6688 GB, free: 12.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.9853, allocations: 0 / 0.6688 GB, free: 12.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000872/0.9861, allocations: 348.4 kB / 0.6691 GB, free: 12.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.9863, allocations: 33.48 kB / 0.6692 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.9863, allocations: 0 / 0.6692 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003034/0.9866, allocations: 40.58 kB / 0.6692 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.9869, allocations: 53.22 kB / 0.6693 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.9887, allocations: 1.521 MB / 0.6707 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.989, allocations: 26.08 kB / 0.6708 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.989, allocations: 14.62 kB / 0.6708 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.0002164/0.9892, allocations: 153.4 kB / 0.6709 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.04e-05/0.9893, allocations: 34.78 kB / 0.671 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.9904, allocations: 337 kB / 0.6713 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.9904, allocations: 5.688 kB / 0.6713 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.9904, allocations: 3.984 kB / 0.6713 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.9904, allocations: 4 kB / 0.6713 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.9919, allocations: 0.7436 MB / 0.672 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.9919, allocations: 6.656 kB / 0.672 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.9921, allocations: 35.25 kB / 0.6721 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001561/0.9922, allocations: 46.72 kB / 0.6721 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.9923, allocations: 6.75 kB / 0.6721 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.9939, allocations: 1.522 MB / 0.6736 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.9939, allocations: 0 / 0.6736 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.995, allocations: 0.502 MB / 0.6741 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.9951, allocations: 118 kB / 0.6742 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.762e-05/0.9952, allocations: 13.62 kB / 0.6742 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.9955, allocations: 12.7 kB / 0.6742 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.9957, allocations: 24.19 kB / 0.6742 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.9957, allocations: 13.94 kB / 0.6743 GB, free: 7.852 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.996, allocations: 239.3 kB / 0.6745 GB, free: 7.695 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.996, allocations: 0 / 0.6745 GB, free: 7.695 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006578/0.9967, allocations: 129.9 kB / 0.6746 GB, free: 7.656 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.001682/0.9984, allocations: 1.135 MB / 0.6757 GB, free: 6.75 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009168/0.9993, allocations: 395.6 kB / 0.6761 GB, free: 6.469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.9993, allocations: 4.062 kB / 0.6761 GB, free: 6.465 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004549/0.9998, allocations: 253.3 kB / 0.6763 GB, free: 6.281 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007062/1.001, allocations: 115.1 kB / 0.6765 GB, free: 6.219 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/1.006, allocations: 3.209 MB / 0.6796 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/1.006, allocations: 0.7818 MB / 0.6804 GB, free: 3.176 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002492/1.007, allocations: 61.05 kB / 0.6804 GB, free: 3.141 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/1.007, allocations: 118.9 kB / 0.6805 GB, free: 3.043 MB / 494.1 MB Notification: Performance of SimCode: time 9.92e-07/1.007, allocations: 0 / 0.6805 GB, free: 3.043 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0487/1.056, allocations: 10.1 MB / 0.6904 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/12.32, allocations: 11.98 kB / 0.6904 GB, free: 11.91 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.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_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv","/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