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.0012/0.0012, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00126/0.00126, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.17/1.17, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5493/0.5493, allocations: 91.2 MB / 381.3 MB, free: 9.547 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 86.34 kB / 459.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.09059, allocations: 67.7 MB / 0.5153 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3271/0.4177, allocations: 171.8 MB / 0.6831 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.4289, allocations: 11.08 MB / 0.6939 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.4301, allocations: 58.91 kB / 0.6939 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.4318, allocations: 0.7132 MB / 0.6946 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003245/0.4351, allocations: 1.54 MB / 0.6961 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002165/0.4373, allocations: 1.03 MB / 0.6971 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002326/0.4397, allocations: 2.529 MB / 0.6996 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005414/0.4402, allocations: 479.8 kB / 0.7001 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.4413, allocations: 1.043 MB / 0.7011 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.4427, allocations: 1.386 MB / 0.7024 GB, free: 212 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.4428, allocations: 140 kB / 0.7026 GB, free: 72 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/0.4458, allocations: 1.953 MB / 0.7045 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.446, allocations: 358.7 kB / 0.7048 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005982/0.4466, allocations: 0.8163 MB / 0.7056 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002372/0.449, allocations: 2.555 MB / 0.7081 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.449, allocations: 0 / 0.7081 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.163e-06/0.449, allocations: 0 / 0.7081 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.449, allocations: 0 / 0.7081 GB, free: 10.38 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.003145/0.4522, allocations: 2.026 MB / 0.7101 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.4522, allocations: 8.031 kB / 0.7101 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.4524, allocations: 181.8 kB / 0.7103 GB, free: 8.094 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.4527, allocations: 167 kB / 0.7104 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.4537, allocations: 0.9161 MB / 0.7113 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.4538, allocations: 90.97 kB / 0.7114 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.454, allocations: 123.9 kB / 0.7115 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.4561, allocations: 1.52 MB / 0.713 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.4562, allocations: 4 kB / 0.713 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.4563, allocations: 48 kB / 0.7131 GB, free: 5.145 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.4563, allocations: 35.92 kB / 0.7131 GB, free: 5.109 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/0.4586, allocations: 1.661 MB / 0.7147 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005739/0.4644, allocations: 6.24 MB / 0.7208 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.4664, allocations: 1.291 MB / 0.7221 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009884/0.4674, allocations: 0.6958 MB / 0.7228 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004021/0.4714, allocations: 4.021 MB / 0.7267 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.4726, allocations: 0.7356 MB / 0.7274 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.454e-06/0.4726, allocations: 0 / 0.7274 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.00646/0.4791, allocations: 3.958 MB / 0.7313 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.4791, allocations: 64.72 kB / 0.7313 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000683/0.4798, allocations: 0.7243 MB / 0.732 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.98e-05/0.4799, allocations: 45.7 kB / 0.7321 GB, free: 468 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.4802, allocations: 0.5278 MB / 0.7326 GB, free: 15.92 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/0.4805, allocations: 425.7 kB / 0.733 GB, free: 15.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/0.4808, allocations: 214.8 kB / 0.7332 GB, free: 15.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4809, allocations: 345.9 kB / 0.7335 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008352/0.4818, allocations: 0.5101 MB / 0.734 GB, free: 14.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009323/0.4827, allocations: 0.629 MB / 0.7346 GB, free: 13.79 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.4846, allocations: 1.244 MB / 0.7359 GB, free: 12.51 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.4846, allocations: 4 kB / 0.7359 GB, free: 12.51 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002605/0.4872, allocations: 1.591 MB / 0.7374 GB, free: 10.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.4873, allocations: 33.7 kB / 0.7375 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4873, allocations: 0 / 0.7375 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004429/0.4877, allocations: 156.8 kB / 0.7376 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.4886, allocations: 251.6 kB / 0.7378 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003481/0.492, allocations: 2.709 MB / 0.7405 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/0.4927, allocations: 99.75 kB / 0.7406 GB, free: 7.516 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.4928, allocations: 51.98 kB / 0.7406 GB, free: 7.465 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.0003824/0.4932, allocations: 285.6 kB / 0.7409 GB, free: 7.176 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.4933, allocations: 114.6 kB / 0.741 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/0.497, allocations: 2.332 MB / 0.7433 GB, free: 4.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.4971, allocations: 16 kB / 0.7433 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4971, allocations: 4 kB / 0.7433 GB, free: 4.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.4971, allocations: 7.969 kB / 0.7433 GB, free: 4.723 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004751/0.5018, allocations: 3.419 MB / 0.7467 GB, free: 1.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5019, allocations: 0 / 0.7467 GB, free: 1.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008685/0.5027, allocations: 271.6 kB / 0.7469 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000369/0.5031, allocations: 148.9 kB / 0.7471 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.658e-05/0.5032, allocations: 47.97 kB / 0.7471 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.5055, allocations: 2.443 MB / 0.7495 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5055, allocations: 3.938 kB / 0.7495 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003802/0.5094, allocations: 2.595 MB / 0.752 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.5095, allocations: 191.4 kB / 0.7522 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.5097, allocations: 28 kB / 0.7522 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.5103, allocations: 91.83 kB / 0.7523 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.5105, allocations: 113.2 kB / 0.7524 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.544e-05/0.5106, allocations: 59.91 kB / 0.7525 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005266/0.5111, allocations: 0.5116 MB / 0.753 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5112, allocations: 0 / 0.753 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001159/0.5123, allocations: 0.5156 MB / 0.7535 GB, free: 10.02 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.004688/0.517, allocations: 3.612 MB / 0.757 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003769/0.5208, allocations: 1.844 MB / 0.7588 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5208, allocations: 4.125 kB / 0.7588 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.5223, allocations: 0.986 MB / 0.7598 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.5238, allocations: 399 kB / 0.7602 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/0.538, allocations: 11.31 MB / 0.7712 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006527/0.5386, allocations: 1.195 MB / 0.7724 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009026/0.5395, allocations: 347.5 kB / 0.7727 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/0.5402, allocations: 0.5813 MB / 0.7733 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of SimCode: time 3.71e-07/0.5402, allocations: 4 kB / 0.7733 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.421/2.961, allocations: 37.65 MB / 0.8101 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/2.961, allocations: 233.6 kB / 0.8103 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/5.532, allocations: 7.938 kB / 0.8103 GB, free: 15.73 MB / 0.6231 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