Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_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.008823/0.008823, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.001494/0.001494, allocations: 199.2 kB / 16.68 MB, free: 5.977 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.943/1.943, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9816/0.9816, allocations: 93.71 MB / 384.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002391/0.002391, allocations: 87.88 kB / 0.5199 GB, free: 6.332 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2082, allocations: 68.26 MB / 0.5866 GB, free: 2 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.7713/0.9796, allocations: 143.8 MB / 0.727 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00593/0.9856, allocations: 3.614 MB / 0.7306 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004549/0.9861, allocations: 15.88 kB / 0.7306 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000776/0.9869, allocations: 174.9 kB / 0.7307 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.9881, allocations: 377.8 kB / 0.7311 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009426/0.9891, allocations: 298.8 kB / 0.7314 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000766/0.9899, allocations: 0.5212 MB / 0.7319 GB, free: 14 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.9901, allocations: 89.64 kB / 0.732 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005278/0.9906, allocations: 254.9 kB / 0.7322 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005113/0.9912, allocations: 227.1 kB / 0.7324 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.187e-05/0.9912, allocations: 24 kB / 0.7325 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.9926, allocations: 491.1 kB / 0.7329 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.9928, allocations: 71.62 kB / 0.733 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.993, allocations: 178.9 kB / 0.7332 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.9944, allocations: 0.5524 MB / 0.7337 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.9944, allocations: 0 / 0.7337 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.715e-06/0.9944, allocations: 0 / 0.7337 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.9945, allocations: 0 / 0.7337 GB, free: 12.13 MB / 0.5762 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.00209/0.9965, allocations: 0.7495 MB / 0.7344 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.942e-05/0.9966, allocations: 8.031 kB / 0.7344 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.528e-05/0.9967, allocations: 62.73 kB / 0.7345 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.9968, allocations: 48.64 kB / 0.7346 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000948/0.9978, allocations: 394.4 kB / 0.7349 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.9979, allocations: 28.31 kB / 0.735 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.9979, allocations: 16 kB / 0.735 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.9985, allocations: 257.8 kB / 0.7352 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.9985, allocations: 0 / 0.7352 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.9985, allocations: 15.98 kB / 0.7352 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.9986, allocations: 4 kB / 0.7352 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006665/0.9992, allocations: 217.6 kB / 0.7354 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/1.001, allocations: 1.097 MB / 0.7365 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007267/1.002, allocations: 226.5 kB / 0.7367 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/1.002, allocations: 112.8 kB / 0.7368 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/1.003, allocations: 0.9799 MB / 0.7378 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004636/1.004, allocations: 147.9 kB / 0.7379 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/1.004, allocations: 0 / 0.7379 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001228/1.005, allocations: 474.8 kB / 0.7384 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/1.005, allocations: 55.41 kB / 0.7384 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/1.006, allocations: 345.7 kB / 0.7388 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/1.006, allocations: 29.7 kB / 0.7388 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/1.006, allocations: 196.4 kB / 0.739 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/1.006, allocations: 79.36 kB / 0.7391 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/1.006, allocations: 53.89 kB / 0.7391 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001745/1.006, allocations: 346.8 kB / 0.7394 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/1.007, allocations: 88.11 kB / 0.7395 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/1.007, allocations: 114.9 kB / 0.7396 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/1.007, allocations: 213.2 kB / 0.7398 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.007, allocations: 4 kB / 0.7398 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007339/1.008, allocations: 350.7 kB / 0.7402 GB, free: 5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.72e-05/1.008, allocations: 29.7 kB / 0.7402 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/1.008, allocations: 7.938 kB / 0.7402 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/1.009, allocations: 40.89 kB / 0.7403 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/1.009, allocations: 47.91 kB / 0.7403 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/1.011, allocations: 1.524 MB / 0.7418 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/1.011, allocations: 31.84 kB / 0.7418 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/1.011, allocations: 12 kB / 0.7418 GB, free: 3.164 MB / 0.5762 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.0001799/1.011, allocations: 143.3 kB / 0.742 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/1.011, allocations: 51.8 kB / 0.742 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008209/1.012, allocations: 338.9 kB / 0.7423 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/1.012, allocations: 4 kB / 0.7423 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/1.012, allocations: 0 / 0.7423 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/1.012, allocations: 3.984 kB / 0.7423 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/1.013, allocations: 0.7583 MB / 0.7431 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.013, allocations: 0 / 0.7431 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/1.013, allocations: 35.97 kB / 0.7431 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/1.014, allocations: 52.7 kB / 0.7432 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/1.014, allocations: 12.03 kB / 0.7432 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/1.015, allocations: 1.524 MB / 0.7447 GB, free: 32 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.015, allocations: 3.938 kB / 0.7447 GB, free: 28 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000998/1.016, allocations: 0.4936 MB / 0.7452 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/1.016, allocations: 117.5 kB / 0.7453 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.401e-05/1.016, allocations: 8.141 kB / 0.7453 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/1.017, allocations: 15.98 kB / 0.7453 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/1.017, allocations: 23.95 kB / 0.7453 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/1.017, allocations: 8 kB / 0.7453 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003071/1.017, allocations: 251.2 kB / 0.7456 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/1.017, allocations: 0 / 0.7456 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005092/1.018, allocations: 123.7 kB / 0.7457 GB, free: 14.96 MB / 0.5919 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.001694/1.019, allocations: 1.164 MB / 0.7468 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009781/1.02, allocations: 397.8 kB / 0.7472 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/1.02, allocations: 0 / 0.7472 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004367/1.021, allocations: 246.6 kB / 0.7474 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/1.022, allocations: 111.1 kB / 0.7475 GB, free: 13 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/1.027, allocations: 3.235 MB / 0.7507 GB, free: 9.656 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/1.028, allocations: 0.791 MB / 0.7515 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002109/1.028, allocations: 54.77 kB / 0.7515 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/1.028, allocations: 131.4 kB / 0.7516 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of SimCode: time 5.81e-07/1.028, allocations: 4 kB / 0.7516 GB, free: 8.652 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04692/1.075, allocations: 10.34 MB / 0.7617 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/13.22, allocations: 10.86 kB / 0.7618 GB, free: 14.48 MB / 0.6075 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches