Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007235/0.007235, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001658/0.001658, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.563/1.563, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7461/0.7461, allocations: 91.18 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 79.88 kB / 0.5168 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.162, allocations: 67.69 MB / 0.5829 GB, free: 5.223 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6258/0.7879, allocations: 164.4 MB / 0.7435 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01561/0.8035, allocations: 12.91 MB / 0.7561 GB, free: 6.727 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.8047, allocations: 35.75 kB / 0.7561 GB, free: 6.691 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.8066, allocations: 0.5824 MB / 0.7567 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.8093, allocations: 0.8735 MB / 0.7575 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002588/0.8119, allocations: 0.8214 MB / 0.7583 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00181/0.8137, allocations: 1.333 MB / 0.7596 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006159/0.8143, allocations: 318.6 kB / 0.7599 GB, free: 2.738 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009657/0.8153, allocations: 0.5485 MB / 0.7605 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008548/0.8162, allocations: 0.6691 MB / 0.7611 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.8163, allocations: 76 kB / 0.7612 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003581/0.8199, allocations: 1.388 MB / 0.7625 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.8201, allocations: 195.2 kB / 0.7627 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000591/0.8207, allocations: 0.5167 MB / 0.7632 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002801/0.8235, allocations: 1.564 MB / 0.7648 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.8235, allocations: 0 / 0.7648 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.324e-06/0.8236, allocations: 0 / 0.7648 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.8236, allocations: 0 / 0.7648 GB, free: 13.77 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002494/0.8261, allocations: 1.433 MB / 0.7662 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.8261, allocations: 12.03 kB / 0.7662 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.8263, allocations: 119.4 kB / 0.7663 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.8276, allocations: 0.7721 MB / 0.767 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.326e-05/0.8276, allocations: 50 kB / 0.7671 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.8277, allocations: 68 kB / 0.7672 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.829, allocations: 0.7352 MB / 0.7679 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.829, allocations: 0 / 0.7679 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.8291, allocations: 31.98 kB / 0.7679 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.8291, allocations: 16 kB / 0.7679 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.8302, allocations: 0.6325 MB / 0.7685 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.8339, allocations: 3.105 MB / 0.7716 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.8352, allocations: 0.5713 MB / 0.7721 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.8356, allocations: 259.1 kB / 0.7724 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0029/0.8385, allocations: 2.588 MB / 0.7749 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.8386, allocations: 39.12 kB / 0.7749 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 1.893e-06/0.8386, allocations: 0 / 0.7749 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003764/0.8424, allocations: 1.773 MB / 0.7767 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.8425, allocations: 59.97 kB / 0.7767 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008766/0.8434, allocations: 0.6849 MB / 0.7774 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.8434, allocations: 37.7 kB / 0.7774 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.8438, allocations: 444.2 kB / 0.7779 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.8439, allocations: 193.1 kB / 0.778 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.8441, allocations: 94.25 kB / 0.7781 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8442, allocations: 326 kB / 0.7784 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.8445, allocations: 161.9 kB / 0.7786 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.8449, allocations: 231.2 kB / 0.7788 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/0.8457, allocations: 427.8 kB / 0.7792 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.8457, allocations: 0 / 0.7792 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001221/0.8469, allocations: 0.6508 MB / 0.7799 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.8469, allocations: 4 kB / 0.7799 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.847, allocations: 4 kB / 0.7799 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000426/0.8474, allocations: 112.9 kB / 0.78 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.8478, allocations: 99.06 kB / 0.7801 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/0.8502, allocations: 2.045 MB / 0.7821 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.8505, allocations: 23.95 kB / 0.7821 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.8506, allocations: 16.06 kB / 0.7821 GB, free: 10.83 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003225/0.8509, allocations: 217.6 kB / 0.7823 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.851, allocations: 90.81 kB / 0.7824 GB, free: 10.52 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.8527, allocations: 0.869 MB / 0.7833 GB, free: 9.621 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.8527, allocations: 8 kB / 0.7833 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.8527, allocations: 0 / 0.7833 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.8527, allocations: 3.984 kB / 0.7833 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.8551, allocations: 1.535 MB / 0.7848 GB, free: 8.008 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.8551, allocations: 4 kB / 0.7848 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.8554, allocations: 103.8 kB / 0.7849 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000356/0.8558, allocations: 108.8 kB / 0.785 GB, free: 7.793 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/0.8558, allocations: 19.98 kB / 0.785 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002161/0.858, allocations: 2.05 MB / 0.787 GB, free: 5.586 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.858, allocations: 0 / 0.787 GB, free: 5.586 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.8596, allocations: 0.9801 MB / 0.7879 GB, free: 4.57 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.8598, allocations: 156 kB / 0.7881 GB, free: 4.398 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.99e-05/0.8599, allocations: 12 kB / 0.7881 GB, free: 4.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003137/0.8602, allocations: 15.98 kB / 0.7881 GB, free: 4.371 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.8604, allocations: 48.44 kB / 0.7882 GB, free: 4.324 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.786e-05/0.8604, allocations: 23.94 kB / 0.7882 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006192/0.861, allocations: 0.5029 MB / 0.7887 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.8e-07/0.861, allocations: 4.062 kB / 0.7887 GB, free: 3.801 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009278/0.862, allocations: 327.8 kB / 0.789 GB, free: 3.48 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008019/0.8628, allocations: 491 kB / 0.7895 GB, free: 2.988 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001273/0.8641, allocations: 0.6194 MB / 0.7901 GB, free: 2.359 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.8641, allocations: 0 / 0.7901 GB, free: 2.359 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0007542/0.8648, allocations: 434 kB / 0.7905 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.8661, allocations: 270.8 kB / 0.7907 GB, free: 1.676 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.8689, allocations: 1.567 MB / 0.7923 GB, free: 68 kB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006474/0.8696, allocations: 1.005 MB / 0.7933 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004627/0.87, allocations: 145.8 kB / 0.7934 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.8702, allocations: 75.42 kB / 0.7935 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of SimCode: time 1.763e-06/0.8702, allocations: 0 / 0.7935 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of Templates: time 0.02887/0.8991, allocations: 16.58 MB / 0.8097 GB, free: 14.34 MB / 0.6544 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches