Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_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.007688/0.007688, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001804/0.001804, allocations: 189.7 kB / 16.67 MB, free: 5.934 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7686/0.7686, allocations: 93.69 MB / 384.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002372, allocations: 71.88 kB / 0.5199 GB, free: 1.098 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3505, allocations: 68.25 MB / 0.5866 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1704/0.5209, allocations: 145.3 MB / 0.7285 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004549/0.5255, allocations: 3.326 MB / 0.7318 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004608/0.526, allocations: 15.94 kB / 0.7318 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006991/0.5268, allocations: 218.6 kB / 0.732 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.5281, allocations: 493.1 kB / 0.7325 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.5291, allocations: 394.6 kB / 0.7328 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008908/0.53, allocations: 0.7156 MB / 0.7335 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.5303, allocations: 121.7 kB / 0.7337 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006511/0.5309, allocations: 362.4 kB / 0.734 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004576/0.5314, allocations: 346.6 kB / 0.7343 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.438e-05/0.5314, allocations: 32 kB / 0.7344 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.5327, allocations: 0.5809 MB / 0.7349 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.5329, allocations: 91.62 kB / 0.735 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.5331, allocations: 234.8 kB / 0.7352 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.5343, allocations: 0.744 MB / 0.736 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.5343, allocations: 0 / 0.736 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.353e-06/0.5343, allocations: 0 / 0.736 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.5343, allocations: 3.938 kB / 0.736 GB, free: 0.6992 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.3047/0.839, allocations: 0.8466 MB / 0.7368 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.8391, allocations: 10.03 kB / 0.7368 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.515e-05/0.8392, allocations: 72.08 kB / 0.7369 GB, free: 152 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.8394, allocations: 55.11 kB / 0.7369 GB, free: 152 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/0.8401, allocations: 428.4 kB / 0.7373 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.8401, allocations: 28.09 kB / 0.7374 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.617e-05/0.8402, allocations: 39.72 kB / 0.7374 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007807/0.841, allocations: 417.9 kB / 0.7378 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.841, allocations: 5.516 kB / 0.7378 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.8411, allocations: 15.94 kB / 0.7378 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.8411, allocations: 8.125 kB / 0.7378 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007391/0.8418, allocations: 369.4 kB / 0.7382 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.8438, allocations: 1.847 MB / 0.74 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007792/0.8446, allocations: 346.8 kB / 0.7403 GB, free: 149.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.8449, allocations: 171.2 kB / 0.7405 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001646/0.8465, allocations: 1.53 MB / 0.742 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000507/0.8471, allocations: 209.9 kB / 0.7422 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.585e-06/0.8471, allocations: 0 / 0.7422 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001419/0.8485, allocations: 0.6047 MB / 0.7428 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.8486, allocations: 56.5 kB / 0.7428 GB, free: 147.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.8489, allocations: 366.1 kB / 0.7432 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.849, allocations: 34.56 kB / 0.7432 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.8491, allocations: 221.7 kB / 0.7434 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.8492, allocations: 132.4 kB / 0.7435 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.8494, allocations: 71.88 kB / 0.7436 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.8494, allocations: 355.4 kB / 0.7439 GB, free: 147 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.8497, allocations: 118.8 kB / 0.7441 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.8501, allocations: 178.1 kB / 0.7442 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006012/0.8507, allocations: 336.5 kB / 0.7445 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8507, allocations: 3.906 kB / 0.7446 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009809/0.8517, allocations: 474.8 kB / 0.745 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.8517, allocations: 33.23 kB / 0.745 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.8517, allocations: 2.188 kB / 0.745 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002233/0.852, allocations: 45.27 kB / 0.7451 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.8523, allocations: 78.91 kB / 0.7452 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.8534, allocations: 1.535 MB / 0.7467 GB, free: 144.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.8537, allocations: 36.39 kB / 0.7467 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.8538, allocations: 16.69 kB / 0.7467 GB, free: 144.8 MB / 0.5762 GB 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.0001915/0.854, allocations: 167.5 kB / 0.7469 GB, free: 144.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.553e-05/0.854, allocations: 51.75 kB / 0.7469 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.8552, allocations: 0.5248 MB / 0.7474 GB, free: 144.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.8552, allocations: 11.81 kB / 0.7474 GB, free: 144.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.8552, allocations: 0 / 0.7474 GB, free: 144.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.8552, allocations: 9.125 kB / 0.7474 GB, free: 144.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.8567, allocations: 0.9595 MB / 0.7484 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.8567, allocations: 1.188 kB / 0.7484 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.857, allocations: 57.53 kB / 0.7484 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001534/0.8571, allocations: 47.44 kB / 0.7485 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.8572, allocations: 16.75 kB / 0.7485 GB, free: 143.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009368/0.8581, allocations: 1.537 MB / 0.75 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8581, allocations: 4.938 kB / 0.75 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.8593, allocations: 0.6454 MB / 0.7506 GB, free: 141.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-05/0.8594, allocations: 121.3 kB / 0.7508 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.8595, allocations: 11.64 kB / 0.7508 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.8597, allocations: 14.8 kB / 0.7508 GB, free: 141.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.8598, allocations: 40.7 kB / 0.7508 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.8599, allocations: 17.5 kB / 0.7508 GB, free: 141.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002715/0.8602, allocations: 269.5 kB / 0.7511 GB, free: 141.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8602, allocations: 0 / 0.7511 GB, free: 141.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005349/0.8607, allocations: 167.4 kB / 0.7513 GB, free: 141.3 MB / 0.5762 GB 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.001334/0.862, allocations: 1.319 MB / 0.7525 GB, free: 140.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008077/0.8629, allocations: 495 kB / 0.753 GB, free: 140 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8629, allocations: 0 / 0.753 GB, free: 140 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004057/0.8633, allocations: 302.4 kB / 0.7533 GB, free: 139.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007361/0.864, allocations: 148 kB / 0.7534 GB, free: 139.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.8685, allocations: 3.86 MB / 0.7572 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.8687, allocations: 0.8157 MB / 0.758 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002675/0.869, allocations: 82.94 kB / 0.7581 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.8692, allocations: 167.4 kB / 0.7582 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of SimCode: time 4.91e-07/0.8692, allocations: 0 / 0.7582 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.9074, allocations: 12.72 MB / 0.7707 GB, free: 122 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.83, allocations: 12 kB / 0.7707 GB, free: 122 MB / 0.5762 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches