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.001079/0.001079, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008967/0.008967, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.472/1.472, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7681/0.7681, allocations: 91.33 MB / 382.8 MB, free: 9.656 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004218/0.0004218, allocations: 13.03 kB / 462.7 MB, free: 23.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.137, allocations: 69.21 MB / 0.5195 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5301/0.6672, allocations: 160.8 MB / 0.6765 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.6864, allocations: 12.9 MB / 0.6891 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00171/0.6882, allocations: 43.69 kB / 0.6892 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001956/0.6902, allocations: 0.5169 MB / 0.6897 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003256/0.6935, allocations: 0.8003 MB / 0.6905 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.696, allocations: 0.693 MB / 0.6911 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002116/0.6981, allocations: 1.505 MB / 0.6926 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005118/0.6986, allocations: 282.9 kB / 0.6929 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009727/0.6996, allocations: 473.6 kB / 0.6933 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008708/0.7005, allocations: 0.6222 MB / 0.6939 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.044e-05/0.7006, allocations: 32 kB / 0.694 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003075/0.7036, allocations: 1.353 MB / 0.6953 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.7038, allocations: 143.2 kB / 0.6954 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000563/0.7044, allocations: 498.8 kB / 0.6959 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002502/0.7069, allocations: 1.437 MB / 0.6973 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.7069, allocations: 4 kB / 0.6973 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.644e-06/0.707, allocations: 4 kB / 0.6973 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.253e-05/0.707, allocations: 0 / 0.6973 GB, free: 1.391 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.002387/0.7094, allocations: 1.258 MB / 0.6985 GB, free: 84 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.7094, allocations: 8.031 kB / 0.6986 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00021/0.7096, allocations: 123.6 kB / 0.6987 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.7108, allocations: 0.7058 MB / 0.6994 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.615e-05/0.7108, allocations: 50 kB / 0.6994 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.711, allocations: 75.98 kB / 0.6995 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.7123, allocations: 0.743 MB / 0.7002 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.7123, allocations: 0 / 0.7002 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.301e-05/0.7124, allocations: 32 kB / 0.7002 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.7124, allocations: 16 kB / 0.7003 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.7135, allocations: 0.6442 MB / 0.7009 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003974/0.7175, allocations: 3.112 MB / 0.7039 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.7189, allocations: 0.5948 MB / 0.7045 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004963/0.7194, allocations: 264 kB / 0.7048 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003261/0.7227, allocations: 2.588 MB / 0.7073 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.7228, allocations: 39.12 kB / 0.7073 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=55): time 2.374e-06/0.7228, allocations: 4 kB / 0.7073 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.003817/0.7266, allocations: 1.793 MB / 0.7091 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.7267, allocations: 59.97 kB / 0.7091 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009059/0.7276, allocations: 0.6927 MB / 0.7098 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.7276, allocations: 41.64 kB / 0.7098 GB, free: 3.574 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.728, allocations: 436.2 kB / 0.7103 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.7281, allocations: 189.2 kB / 0.7104 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.851e-05/0.7282, allocations: 45.7 kB / 0.7105 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.7284, allocations: 329.9 kB / 0.7108 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.7287, allocations: 173 kB / 0.711 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.7291, allocations: 235.2 kB / 0.7112 GB, free: 2.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007618/0.7299, allocations: 435.8 kB / 0.7116 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7299, allocations: 0 / 0.7116 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001236/0.7312, allocations: 0.6587 MB / 0.7122 GB, free: 1.051 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.7312, allocations: 11.98 kB / 0.7123 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.7312, allocations: 0 / 0.7123 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/0.7317, allocations: 116.8 kB / 0.7124 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.732, allocations: 99.89 kB / 0.7125 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.7342, allocations: 1.9 MB / 0.7143 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.7347, allocations: 39.98 kB / 0.7144 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.7347, allocations: 28.55 kB / 0.7144 GB, free: 14.73 MB / 0.5294 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.0003718/0.7351, allocations: 205.7 kB / 0.7146 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.7352, allocations: 94.86 kB / 0.7147 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.7369, allocations: 0.8837 MB / 0.7155 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.737, allocations: 4 kB / 0.7155 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.737, allocations: 4 kB / 0.7155 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.737, allocations: 0 / 0.7155 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.7395, allocations: 1.555 MB / 0.7171 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.7395, allocations: 4 kB / 0.7171 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.7398, allocations: 91.83 kB / 0.7172 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004106/0.7403, allocations: 116.8 kB / 0.7173 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.7403, allocations: 23.98 kB / 0.7173 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.7424, allocations: 1.886 MB / 0.7191 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7425, allocations: 0 / 0.7191 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.7442, allocations: 0.9988 MB / 0.7201 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.7444, allocations: 167.9 kB / 0.7203 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.7446, allocations: 15.94 kB / 0.7203 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.745, allocations: 43.94 kB / 0.7203 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.7451, allocations: 48.5 kB / 0.7204 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.7451, allocations: 19.98 kB / 0.7204 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006869/0.7458, allocations: 0.5029 MB / 0.7209 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7459, allocations: 4 kB / 0.7209 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001197/0.7471, allocations: 335.8 kB / 0.7212 GB, free: 7.453 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.000977/0.748, allocations: 485.5 kB / 0.7217 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001382/0.7494, allocations: 0.6271 MB / 0.7223 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7495, allocations: 0 / 0.7223 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007839/0.7502, allocations: 430.1 kB / 0.7227 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.7518, allocations: 252.8 kB / 0.7229 GB, free: 5.652 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.755, allocations: 2.001 MB / 0.7249 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/0.7557, allocations: 1.001 MB / 0.7259 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005773/0.7562, allocations: 153.7 kB / 0.726 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.7565, allocations: 71.42 kB / 0.7261 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/0.7565, allocations: 0 / 0.7261 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of Templates: time 0.03094/0.7874, allocations: 15.83 MB / 0.7415 GB, free: 2.629 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