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.001486/0.001486, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001893/0.001893, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.444/1.444, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6946/0.6946, allocations: 91.19 MB / 381.3 MB, free: 9.555 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 77.34 kB / 459.8 MB, free: 23.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1247, allocations: 67.69 MB / 0.5151 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4344/0.5592, allocations: 163.1 MB / 0.6744 GB, free: 7.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.5753, allocations: 12.97 MB / 0.6871 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.5769, allocations: 44.53 kB / 0.6872 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001872/0.5788, allocations: 0.525 MB / 0.6877 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00284/0.5817, allocations: 0.7921 MB / 0.6884 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.5842, allocations: 0.7456 MB / 0.6892 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002081/0.5863, allocations: 1.338 MB / 0.6905 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006281/0.5869, allocations: 316.4 kB / 0.6908 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.5881, allocations: 0.5484 MB / 0.6913 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.5896, allocations: 0.6723 MB / 0.692 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002837/0.5899, allocations: 75.81 kB / 0.692 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.5938, allocations: 1.404 MB / 0.6934 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002838/0.5941, allocations: 197.8 kB / 0.6936 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008269/0.595, allocations: 0.5136 MB / 0.6941 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.5985, allocations: 1.527 MB / 0.6956 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.5985, allocations: 0 / 0.6956 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.5985, allocations: 0 / 0.6956 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.207e-05/0.5986, allocations: 0 / 0.6956 GB, free: 7.258 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002941/0.6015, allocations: 1.433 MB / 0.697 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.6016, allocations: 8.031 kB / 0.697 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.6018, allocations: 119.5 kB / 0.6971 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.6031, allocations: 0.7097 MB / 0.6978 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/0.6031, allocations: 50 kB / 0.6979 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.6032, allocations: 71.91 kB / 0.6979 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.6046, allocations: 0.7353 MB / 0.6986 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.6046, allocations: 0 / 0.6986 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.6047, allocations: 28 kB / 0.6987 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.543e-05/0.6048, allocations: 23.94 kB / 0.6987 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.606, allocations: 0.6286 MB / 0.6993 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004918/0.6109, allocations: 3.121 MB / 0.7024 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.6124, allocations: 0.5675 MB / 0.7029 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005194/0.613, allocations: 256 kB / 0.7032 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003612/0.6166, allocations: 2.592 MB / 0.7057 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/0.6167, allocations: 43.06 kB / 0.7057 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=55): time 2.405e-06/0.6167, allocations: 0 / 0.7057 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.004062/0.6208, allocations: 1.777 MB / 0.7075 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.6208, allocations: 55.97 kB / 0.7075 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009285/0.6218, allocations: 0.6927 MB / 0.7082 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.6218, allocations: 37.7 kB / 0.7082 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003294/0.6222, allocations: 432.3 kB / 0.7086 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.6223, allocations: 185.2 kB / 0.7088 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.6225, allocations: 94.23 kB / 0.7089 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.6226, allocations: 322 kB / 0.7092 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.623, allocations: 171.4 kB / 0.7094 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.6234, allocations: 235.2 kB / 0.7096 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.6242, allocations: 423.8 kB / 0.71 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6242, allocations: 0 / 0.71 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001341/0.6255, allocations: 0.6586 MB / 0.7106 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.6256, allocations: 4 kB / 0.7106 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.6256, allocations: 0 / 0.7106 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000475/0.6261, allocations: 120.8 kB / 0.7108 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.6264, allocations: 95.88 kB / 0.7109 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.6288, allocations: 2.045 MB / 0.7129 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.6293, allocations: 39.97 kB / 0.7129 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.304e-05/0.6294, allocations: 20 kB / 0.7129 GB, free: 4.332 MB / 0.5137 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.0003597/0.6298, allocations: 213.6 kB / 0.7131 GB, free: 4.113 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.63, allocations: 94.56 kB / 0.7132 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.6317, allocations: 0.8719 MB / 0.7141 GB, free: 3.129 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.6317, allocations: 4 kB / 0.7141 GB, free: 3.125 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.6317, allocations: 4 kB / 0.7141 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.6318, allocations: 7.984 kB / 0.7141 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.6345, allocations: 1.528 MB / 0.7156 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.6345, allocations: 0 / 0.7156 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003567/0.6349, allocations: 91.83 kB / 0.7157 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004155/0.6353, allocations: 124.7 kB / 0.7158 GB, free: 1.297 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.6354, allocations: 19.98 kB / 0.7158 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.6377, allocations: 2.047 MB / 0.7178 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.6377, allocations: 4.031 kB / 0.7178 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.6395, allocations: 0.9753 MB / 0.7187 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/0.6398, allocations: 164 kB / 0.7189 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.64, allocations: 12 kB / 0.7189 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.6404, allocations: 31.97 kB / 0.7189 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.6405, allocations: 48.56 kB / 0.719 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.6406, allocations: 19.94 kB / 0.719 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006837/0.6413, allocations: 0.5068 MB / 0.7195 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.555e-06/0.6413, allocations: 0 / 0.7195 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001014/0.6423, allocations: 331.7 kB / 0.7198 GB, free: 12.97 MB / 0.5294 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.0008404/0.6431, allocations: 483.4 kB / 0.7203 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001506/0.6447, allocations: 0.6309 MB / 0.7209 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6447, allocations: 4 kB / 0.7209 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008126/0.6455, allocations: 438.1 kB / 0.7213 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.6469, allocations: 273.4 kB / 0.7216 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.6503, allocations: 1.95 MB / 0.7235 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006615/0.651, allocations: 0.9968 MB / 0.7245 GB, free: 8.133 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005855/0.6516, allocations: 149.8 kB / 0.7246 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.6518, allocations: 75.41 kB / 0.7247 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of SimCode: time 5.92e-07/0.6518, allocations: 0 / 0.7247 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of Templates: time 0.0294/0.6812, allocations: 16.43 MB / 0.7407 GB, free: 7.578 MB / 0.545 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