Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.001217/0.001217, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001176/0.001176, allocations: 192.9 kB / 16.14 MB, free: 6.711 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.179/1.179, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5498/0.5498, allocations: 89.52 MB / 379.5 MB, free: 11.26 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 75.28 kB / 457.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09302, allocations: 67.32 MB / 0.5127 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3242/0.4173, allocations: 171.5 MB / 0.6802 GB, free: 3.777 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.4289, allocations: 11.14 MB / 0.6911 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008717/0.4298, allocations: 25.88 kB / 0.6911 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.4313, allocations: 0.6972 MB / 0.6918 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002548/0.4338, allocations: 1.517 MB / 0.6933 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.4357, allocations: 0.9745 MB / 0.6942 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002135/0.4379, allocations: 3.232 MB / 0.6974 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.4383, allocations: 415.5 kB / 0.6978 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009604/0.4393, allocations: 0.8794 MB / 0.6986 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.4405, allocations: 1.328 MB / 0.6999 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.4407, allocations: 92 kB / 0.7 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.4436, allocations: 1.887 MB / 0.7018 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002212/0.4438, allocations: 302.8 kB / 0.7021 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000569/0.4444, allocations: 0.723 MB / 0.7028 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002272/0.4467, allocations: 2.388 MB / 0.7052 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4467, allocations: 4 kB / 0.7052 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.62e-07/0.4467, allocations: 4 kB / 0.7052 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.4467, allocations: 0 / 0.7052 GB, free: 14.19 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003044/0.4498, allocations: 1.887 MB / 0.707 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.4498, allocations: 12.03 kB / 0.707 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001793/0.45, allocations: 177.8 kB / 0.7072 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.4502, allocations: 147.2 kB / 0.7073 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008251/0.4511, allocations: 0.7328 MB / 0.7081 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.905e-05/0.4511, allocations: 86.78 kB / 0.7081 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.4513, allocations: 120.4 kB / 0.7083 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.4535, allocations: 1.536 MB / 0.7098 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.4535, allocations: 0 / 0.7098 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.034e-05/0.4536, allocations: 48 kB / 0.7098 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.4536, allocations: 28 kB / 0.7098 GB, free: 9.27 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002426/0.4561, allocations: 1.668 MB / 0.7115 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005733/0.4618, allocations: 6.203 MB / 0.7175 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/0.4639, allocations: 1.276 MB / 0.7188 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009873/0.4649, allocations: 0.6997 MB / 0.7194 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004041/0.4689, allocations: 4.025 MB / 0.7234 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.4701, allocations: 0.7239 MB / 0.7241 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.275e-06/0.4701, allocations: 0 / 0.7241 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.0066/0.4767, allocations: 3.931 MB / 0.7279 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.4767, allocations: 64.72 kB / 0.728 GB, free: 5.484 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.4773, allocations: 0.5786 MB / 0.7286 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.856e-05/0.4774, allocations: 53.69 kB / 0.7286 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/0.4777, allocations: 468.5 kB / 0.729 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/0.478, allocations: 445.5 kB / 0.7295 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.4783, allocations: 202.9 kB / 0.7297 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4784, allocations: 353.9 kB / 0.73 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008821/0.4793, allocations: 0.5179 MB / 0.7305 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009786/0.4803, allocations: 0.6173 MB / 0.7311 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/0.4823, allocations: 1.248 MB / 0.7323 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.4823, allocations: 0 / 0.7323 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002675/0.4849, allocations: 1.576 MB / 0.7339 GB, free: 15.35 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.485, allocations: 37.7 kB / 0.7339 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.485, allocations: 3.984 kB / 0.7339 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004594/0.4855, allocations: 152.8 kB / 0.7341 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008466/0.4863, allocations: 247.7 kB / 0.7343 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/0.4897, allocations: 2.506 MB / 0.7367 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005687/0.4903, allocations: 87.91 kB / 0.7368 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4904, allocations: 51.98 kB / 0.7369 GB, free: 12.14 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003672/0.4908, allocations: 281.5 kB / 0.7371 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.491, allocations: 94.78 kB / 0.7372 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003738/0.4947, allocations: 2.31 MB / 0.7395 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4947, allocations: 12 kB / 0.7395 GB, free: 9.449 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4947, allocations: 4 kB / 0.7395 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.4948, allocations: 7.969 kB / 0.7395 GB, free: 9.438 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.4995, allocations: 3.372 MB / 0.7428 GB, free: 5.988 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4995, allocations: 7.938 kB / 0.7428 GB, free: 5.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008556/0.5004, allocations: 263.7 kB / 0.7431 GB, free: 5.723 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003647/0.5008, allocations: 145.1 kB / 0.7432 GB, free: 5.578 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-05/0.5009, allocations: 47.97 kB / 0.7432 GB, free: 5.531 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/0.5031, allocations: 2.236 MB / 0.7454 GB, free: 3.164 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5031, allocations: 4 kB / 0.7454 GB, free: 3.16 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003834/0.5069, allocations: 2.567 MB / 0.7479 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.5071, allocations: 171.8 kB / 0.7481 GB, free: 388 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.5072, allocations: 39.94 kB / 0.7481 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006105/0.5078, allocations: 87.77 kB / 0.7482 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.508, allocations: 113.1 kB / 0.7483 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.389e-05/0.5081, allocations: 55.97 kB / 0.7484 GB, free: 88 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004592/0.5086, allocations: 443 kB / 0.7488 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5086, allocations: 0 / 0.7488 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001158/0.5098, allocations: 0.5116 MB / 0.7493 GB, free: 15.15 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.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 (141): * Single equations (assignments): 138 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004822/0.5146, allocations: 3.589 MB / 0.7528 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002494/0.5171, allocations: 1.626 MB / 0.7544 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5171, allocations: 384 / 0.7544 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.5186, allocations: 0.9899 MB / 0.7554 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.5201, allocations: 366.7 kB / 0.7557 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.5336, allocations: 10.53 MB / 0.766 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.5342, allocations: 1.133 MB / 0.7671 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000876/0.5351, allocations: 332.4 kB / 0.7674 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/0.5357, allocations: 0.511 MB / 0.7679 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/0.5357, allocations: 0 / 0.7679 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/0.6897, allocations: 35 MB / 0.8021 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.69, allocations: 239.3 kB / 0.8023 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/3.137, allocations: 0 / 0.8023 GB, free: 8.746 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches