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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009541/0.000954, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 186.7 kB / 16.92 MB, free: 6.746 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.334/1.334, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6159/0.6159, allocations: 89.63 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003664, allocations: 17.56 kB / 461.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 68.83 MB / 0.5177 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3921/0.5, allocations: 169.2 MB / 0.683 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01238/0.5124, allocations: 10.99 MB / 0.6937 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009916/0.5134, allocations: 27.81 kB / 0.6937 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.515, allocations: 0.7036 MB / 0.6944 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003293/0.5183, allocations: 1.5 MB / 0.6959 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.5207, allocations: 0.9815 MB / 0.6969 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002919/0.5236, allocations: 3.232 MB / 0.7 GB, free: 288 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.5242, allocations: 414 kB / 0.7004 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.5253, allocations: 0.8248 MB / 0.7012 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.5268, allocations: 1.253 MB / 0.7024 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.5269, allocations: 64 kB / 0.7025 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.5304, allocations: 1.852 MB / 0.7043 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002345/0.5306, allocations: 250.8 kB / 0.7045 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006302/0.5312, allocations: 0.7013 MB / 0.7052 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.5331, allocations: 1.765 MB / 0.707 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.5331, allocations: 0 / 0.707 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.442e-06/0.5331, allocations: 0 / 0.707 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.5331, allocations: 0 / 0.707 GB, free: 9.133 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.002966/0.5361, allocations: 1.645 MB / 0.7086 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.5361, allocations: 8.031 kB / 0.7086 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.5363, allocations: 151.2 kB / 0.7087 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/0.5372, allocations: 0.729 MB / 0.7094 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-05/0.5373, allocations: 90.78 kB / 0.7095 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.5375, allocations: 124.5 kB / 0.7096 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.5398, allocations: 1.536 MB / 0.7111 GB, free: 4.711 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.5398, allocations: 0 / 0.7111 GB, free: 4.711 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.5399, allocations: 52 kB / 0.7112 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.54, allocations: 32 kB / 0.7112 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/0.5426, allocations: 1.684 MB / 0.7129 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006169/0.5487, allocations: 6.213 MB / 0.7189 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002235/0.551, allocations: 1.311 MB / 0.7202 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.5521, allocations: 0.7114 MB / 0.7209 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004482/0.5566, allocations: 4.033 MB / 0.7248 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/0.5578, allocations: 0.7395 MB / 0.7256 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.985e-06/0.5578, allocations: 4 kB / 0.7256 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.007183/0.565, allocations: 3.97 MB / 0.7294 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.5651, allocations: 72.72 kB / 0.7295 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006334/0.5657, allocations: 0.5903 MB / 0.7301 GB, free: 96 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.118e-05/0.5658, allocations: 45.7 kB / 0.7301 GB, free: 44 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.5662, allocations: 472.5 kB / 0.7306 GB, free: 15.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.5665, allocations: 429.6 kB / 0.731 GB, free: 15.15 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.5666, allocations: 89.67 kB / 0.7311 GB, free: 15.05 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.5667, allocations: 353.9 kB / 0.7314 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.5677, allocations: 0.5219 MB / 0.7319 GB, free: 14.18 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.5687, allocations: 0.6407 MB / 0.7325 GB, free: 13.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.5711, allocations: 1.263 MB / 0.7338 GB, free: 12.23 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5711, allocations: 7.938 kB / 0.7338 GB, free: 12.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002766/0.5739, allocations: 1.592 MB / 0.7353 GB, free: 10.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.5739, allocations: 41.69 kB / 0.7354 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5739, allocations: 0 / 0.7354 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004735/0.5744, allocations: 156.8 kB / 0.7355 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009047/0.5753, allocations: 255.6 kB / 0.7358 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.5791, allocations: 2.534 MB / 0.7382 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000731/0.5798, allocations: 99.81 kB / 0.7383 GB, free: 7.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.5799, allocations: 55.97 kB / 0.7384 GB, free: 7.34 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.0004559/0.5804, allocations: 273.6 kB / 0.7387 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.5806, allocations: 90.88 kB / 0.7387 GB, free: 6.973 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/0.5847, allocations: 2.325 MB / 0.741 GB, free: 4.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.5848, allocations: 20 kB / 0.741 GB, free: 4.641 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.5848, allocations: 4 kB / 0.741 GB, free: 4.637 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.5848, allocations: 15.91 kB / 0.7411 GB, free: 4.621 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005352/0.5901, allocations: 3.404 MB / 0.7444 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5902, allocations: 3.938 kB / 0.7444 GB, free: 1.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009558/0.5911, allocations: 271.8 kB / 0.7446 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004199/0.5916, allocations: 144.8 kB / 0.7448 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5917, allocations: 47.97 kB / 0.7448 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002475/0.5942, allocations: 2.232 MB / 0.747 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5942, allocations: 0 / 0.747 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004206/0.5984, allocations: 2.614 MB / 0.7496 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.5986, allocations: 179.7 kB / 0.7497 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.5988, allocations: 32 kB / 0.7498 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007231/0.5995, allocations: 103.8 kB / 0.7499 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.5997, allocations: 109.2 kB / 0.75 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.5999, allocations: 55.97 kB / 0.75 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000514/0.6004, allocations: 439 kB / 0.7504 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6004, allocations: 0 / 0.7504 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001354/0.6017, allocations: 0.5116 MB / 0.7509 GB, free: 10.25 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.0008914/0.6026, allocations: 0.5715 MB / 0.7515 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002842/0.6055, allocations: 1.653 MB / 0.7531 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.6055, allocations: 0 / 0.7531 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001613/0.6071, allocations: 0.9983 MB / 0.7541 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.609, allocations: 361.3 kB / 0.7544 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.6137, allocations: 3.118 MB / 0.7575 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006888/0.6144, allocations: 1.137 MB / 0.7586 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/0.6149, allocations: 147.4 kB / 0.7587 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.6149, allocations: 0 / 0.7587 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of Templates: time 0.03514/0.65, allocations: 27.94 MB / 0.786 GB, free: 6.301 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (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 & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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