Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",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.007368/0.007368, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.002009/0.002009, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.782/0.782, allocations: 93.71 MB / 384.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003369/0.003369, allocations: 83.86 kB / 0.52 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1609, allocations: 68.26 MB / 0.5866 GB, free: 1.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.3692/0.5302, allocations: 65.09 MB / 0.6502 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02618/0.5564, allocations: 17.61 MB / 0.6674 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003353/0.5598, allocations: 81.62 kB / 0.6675 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004041/0.5639, allocations: 1.19 MB / 0.6686 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00961/0.5736, allocations: 2.813 MB / 0.6714 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005567/0.5792, allocations: 1.543 MB / 0.6729 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007518/0.5867, allocations: 3.89 MB / 0.6767 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001729/0.5885, allocations: 0.6201 MB / 0.6773 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004758/0.5933, allocations: 1.6 MB / 0.6789 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004147/0.5975, allocations: 1.53 MB / 0.6804 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.5986, allocations: 188 kB / 0.6805 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007196/0.6058, allocations: 1.678 MB / 0.6822 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.6069, allocations: 497.8 kB / 0.6826 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003081/0.61, allocations: 1.255 MB / 0.6839 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.009979/0.62, allocations: 3.841 MB / 0.6876 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.62, allocations: 0 / 0.6876 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.044e-06/0.6201, allocations: 0 / 0.6876 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001247/0.6202, allocations: 0 / 0.6876 GB, free: 11.49 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.007445/0.6276, allocations: 3.08 MB / 0.6906 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.6277, allocations: 8.031 kB / 0.6906 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004163/0.6281, allocations: 262.3 kB / 0.6909 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006312/0.6288, allocations: 295.1 kB / 0.6912 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.6318, allocations: 1.493 MB / 0.6926 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.6319, allocations: 144.1 kB / 0.6928 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003128/0.6323, allocations: 192.3 kB / 0.693 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004304/0.6366, allocations: 2.163 MB / 0.6951 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.6367, allocations: 4 kB / 0.6951 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/0.6368, allocations: 79.98 kB / 0.6951 GB, free: 3.629 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.301e-05/0.6369, allocations: 48 kB / 0.6952 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004131/0.641, allocations: 2.263 MB / 0.6974 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/0.654, allocations: 8.978 MB / 0.7062 GB, free: 7.465 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/0.6576, allocations: 1.914 MB / 0.708 GB, free: 5.551 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001806/0.6594, allocations: 0.9828 MB / 0.709 GB, free: 4.562 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009245/0.6687, allocations: 6.781 MB / 0.7156 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001918/0.6706, allocations: 0.96 MB / 0.7166 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=200): time 4.558e-06/0.6706, allocations: 0 / 0.7166 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=200): time 0.006462/0.6771, allocations: 3.014 MB / 0.7195 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/0.6773, allocations: 73.41 kB / 0.7196 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.6789, allocations: 1.233 MB / 0.7208 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003038/0.6793, allocations: 61.7 kB / 0.7208 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007879/0.6801, allocations: 0.8724 MB / 0.7217 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007113/0.6808, allocations: 0.697 MB / 0.7224 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006088/0.6814, allocations: 331.5 kB / 0.7227 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.6815, allocations: 305.1 kB / 0.723 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.6829, allocations: 0.6481 MB / 0.7236 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.6845, allocations: 0.895 MB / 0.7245 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.6877, allocations: 1.665 MB / 0.7261 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.6878, allocations: 4 kB / 0.7261 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.0047/0.6925, allocations: 2.16 MB / 0.7282 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.638e-05/0.6925, allocations: 39.36 kB / 0.7283 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.6926, allocations: 4 kB / 0.7283 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/0.6932, allocations: 166.4 kB / 0.7284 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.6947, allocations: 395.5 kB / 0.7288 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/0.6996, allocations: 4.837 MB / 0.7335 GB, free: 9.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.7011, allocations: 166.8 kB / 0.7337 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/0.7015, allocations: 87.95 kB / 0.7338 GB, free: 9.566 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008271/0.7023, allocations: 369.3 kB / 0.7341 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005957/0.7029, allocations: 210.6 kB / 0.7343 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006598/0.7095, allocations: 3.41 MB / 0.7376 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/0.7096, allocations: 20 kB / 0.7377 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.7096, allocations: 8 kB / 0.7377 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.7097, allocations: 15.89 kB / 0.7377 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009592/0.7193, allocations: 4.768 MB / 0.7423 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.7193, allocations: 7.984 kB / 0.7424 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.7208, allocations: 403.5 kB / 0.7427 GB, free: 348 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000545/0.7213, allocations: 174.5 kB / 0.7429 GB, free: 164 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/0.7215, allocations: 71.95 kB / 0.743 GB, free: 92 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004789/0.7263, allocations: 4.837 MB / 0.7477 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7264, allocations: 3.938 kB / 0.7477 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006965/0.7333, allocations: 3.328 MB / 0.751 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.7346, allocations: 0.5378 MB / 0.7515 GB, free: 6.895 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.7349, allocations: 55.98 kB / 0.7515 GB, free: 6.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009051/0.7359, allocations: 47.98 kB / 0.7516 GB, free: 6.793 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/0.7362, allocations: 177.7 kB / 0.7517 GB, free: 6.621 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/0.7364, allocations: 87.95 kB / 0.7518 GB, free: 6.535 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001319/0.7377, allocations: 0.8627 MB / 0.7527 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7377, allocations: 0 / 0.7527 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002726/0.7405, allocations: 0.8691 MB / 0.7535 GB, free: 4.809 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008311/0.7488, allocations: 4.621 MB / 0.758 GB, free: 148 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.004731/0.7536, allocations: 2.27 MB / 0.7602 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.7536, allocations: 0 / 0.7602 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002703/0.7563, allocations: 1.449 MB / 0.7617 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.7598, allocations: 0.6552 MB / 0.7623 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02693/0.7867, allocations: 14.58 MB / 0.7765 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.7881, allocations: 1.471 MB / 0.778 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001985/0.7901, allocations: 0.5128 MB / 0.7785 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/0.7916, allocations: 0.9913 MB / 0.7795 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of SimCode: time 9.42e-07/0.7916, allocations: 0 / 0.7795 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/0.9199, allocations: 60.4 MB / 0.8384 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.56, allocations: 7.922 kB / 0.8384 GB, free: 13.69 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.csv --start-time 0 --stop-time 20 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches