Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",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.007758/0.007758, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.002021/0.002021, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7924/0.7924, allocations: 93.69 MB / 384.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003182/0.003182, allocations: 83.86 kB / 0.52 GB, free: 1.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3562, allocations: 68.26 MB / 0.5866 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.04432/0.4006, allocations: 44.95 MB / 0.6305 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01666/0.4173, allocations: 12.3 MB / 0.6425 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002048/0.4194, allocations: 51.69 kB / 0.6426 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003081/0.4225, allocations: 1.158 MB / 0.6437 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006579/0.4291, allocations: 2.059 MB / 0.6457 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003722/0.4329, allocations: 1.176 MB / 0.6469 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004761/0.4377, allocations: 2.817 MB / 0.6496 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000854/0.4385, allocations: 465 kB / 0.65 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.4412, allocations: 1.331 MB / 0.6513 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.4429, allocations: 1.089 MB / 0.6524 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.4432, allocations: 135.9 kB / 0.6525 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003541/0.4468, allocations: 1.151 MB / 0.6537 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004571/0.4472, allocations: 430.2 kB / 0.6541 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.4483, allocations: 0.9595 MB / 0.655 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.006506/0.4549, allocations: 2.904 MB / 0.6578 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4549, allocations: 0 / 0.6578 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.515e-06/0.4549, allocations: 7.938 kB / 0.6579 GB, free: 1 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.983e-05/0.455, allocations: 0 / 0.6579 GB, free: 1 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.00515/0.4602, allocations: 2.537 MB / 0.6603 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4602, allocations: 12.03 kB / 0.6603 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002205/0.4604, allocations: 190.4 kB / 0.6605 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004577/0.4609, allocations: 243.4 kB / 0.6608 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002387/0.4633, allocations: 1.36 MB / 0.6621 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.649e-05/0.4634, allocations: 99.72 kB / 0.6622 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.4636, allocations: 128 kB / 0.6623 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/0.4663, allocations: 1.497 MB / 0.6638 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.4663, allocations: 7.938 kB / 0.6638 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.4665, allocations: 51.98 kB / 0.6638 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.4665, allocations: 32 kB / 0.6639 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00273/0.4692, allocations: 1.556 MB / 0.6654 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008424/0.4777, allocations: 6.261 MB / 0.6715 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.4802, allocations: 1.305 MB / 0.6728 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.4814, allocations: 0.675 MB / 0.6734 GB, free: 276 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00617/0.4876, allocations: 4.593 MB / 0.6779 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/0.489, allocations: 0.6731 MB / 0.6786 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=139): time 4.308e-06/0.489, allocations: 0 / 0.6786 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=139): time 0.004631/0.4937, allocations: 2.137 MB / 0.6806 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.4938, allocations: 68.72 kB / 0.6807 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/0.4956, allocations: 1.297 MB / 0.682 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.4958, allocations: 57.7 kB / 0.682 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.4965, allocations: 0.6953 MB / 0.6827 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/0.4969, allocations: 495.7 kB / 0.6832 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003818/0.4973, allocations: 250.8 kB / 0.6834 GB, free: 5.312 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4975, allocations: 353.9 kB / 0.6838 GB, free: 4.961 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009384/0.4985, allocations: 466.4 kB / 0.6842 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.4996, allocations: 0.6124 MB / 0.6848 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.5017, allocations: 1.167 MB / 0.6859 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.5017, allocations: 0 / 0.6859 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003263/0.505, allocations: 1.546 MB / 0.6875 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.487e-05/0.5051, allocations: 35.27 kB / 0.6875 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.5051, allocations: 4 kB / 0.6875 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000478/0.5056, allocations: 101.6 kB / 0.6876 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.5066, allocations: 283.6 kB / 0.6879 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003162/0.5098, allocations: 3.223 MB / 0.691 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.511, allocations: 123.1 kB / 0.6911 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.5111, allocations: 63.91 kB / 0.6912 GB, free: 12.95 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0008453/0.512, allocations: 398.3 kB / 0.6916 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000401/0.5124, allocations: 178.8 kB / 0.6917 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004395/0.5168, allocations: 2.278 MB / 0.694 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.5169, allocations: 16 kB / 0.694 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5169, allocations: 0 / 0.694 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.5169, allocations: 7.969 kB / 0.694 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006469/0.5234, allocations: 3.465 MB / 0.6974 GB, free: 6.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.5234, allocations: 4 kB / 0.6974 GB, free: 6.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.5244, allocations: 279.6 kB / 0.6976 GB, free: 6.293 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003844/0.5248, allocations: 109.7 kB / 0.6977 GB, free: 6.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.525, allocations: 47.97 kB / 0.6978 GB, free: 6.133 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/0.528, allocations: 3.235 MB / 0.7009 GB, free: 2.621 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5281, allocations: 0 / 0.7009 GB, free: 2.621 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004726/0.5328, allocations: 2.394 MB / 0.7033 GB, free: 188 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009169/0.5337, allocations: 479.2 kB / 0.7037 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/0.534, allocations: 28 kB / 0.7038 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.5346, allocations: 51.91 kB / 0.7038 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.5349, allocations: 133.1 kB / 0.7039 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.5351, allocations: 59.97 kB / 0.704 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001325/0.5364, allocations: 0.9151 MB / 0.7049 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5364, allocations: 0 / 0.7049 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001771/0.5382, allocations: 0.6041 MB / 0.7055 GB, free: 13.91 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.rear.m_flow,flowResistance2.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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.006932/0.5451, allocations: 3.681 MB / 0.7091 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003181/0.5483, allocations: 1.581 MB / 0.7106 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5484, allocations: 0 / 0.7106 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.5502, allocations: 1.005 MB / 0.7116 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.5526, allocations: 492.1 kB / 0.7121 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/0.5732, allocations: 11.78 MB / 0.7236 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.5744, allocations: 1.345 MB / 0.7249 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001338/0.5757, allocations: 406.7 kB / 0.7253 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.5768, allocations: 0.757 MB / 0.726 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of SimCode: time 9.62e-07/0.5769, allocations: 0 / 0.726 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3603/0.9372, allocations: 44.58 MB / 0.7696 GB, free: 147 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.46, allocations: 8.5 kB / 0.7696 GB, free: 147 MB / 0.5919 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_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_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches