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 dev (/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.001116/0.001115, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001361/0.001361, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7869/0.7869, allocations: 89.61 MB / 380.6 MB, free: 11.47 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.0003621, allocations: 12.94 kB / 459.9 MB, free: 24.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1553, allocations: 68.83 MB / 0.5163 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5714/0.7268, allocations: 139.4 MB / 0.6525 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01464/0.7415, allocations: 10.78 MB / 0.663 GB, free: 1.867 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.743, allocations: 17.06 kB / 0.663 GB, free: 1.863 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.7448, allocations: 0.4953 MB / 0.6635 GB, free: 1.449 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002915/0.7478, allocations: 0.8365 MB / 0.6643 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002339/0.7501, allocations: 0.6261 MB / 0.6649 GB, free: 244 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.7521, allocations: 0.8512 MB / 0.6658 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004701/0.7526, allocations: 256.3 kB / 0.666 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008416/0.7534, allocations: 393.8 kB / 0.6664 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006909/0.7541, allocations: 0.4995 MB / 0.6669 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.863e-05/0.7542, allocations: 36.41 kB / 0.6669 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003626/0.7579, allocations: 1.311 MB / 0.6682 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.758, allocations: 127.4 kB / 0.6683 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.7583, allocations: 193.3 kB / 0.6685 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00197/0.7603, allocations: 0.9816 MB / 0.6695 GB, free: 13.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.7603, allocations: 0 / 0.6695 GB, free: 13.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.7603, allocations: 0 / 0.6695 GB, free: 13.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.7604, allocations: 0 / 0.6695 GB, free: 13.19 MB / 494.1 MB 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.002626/0.763, allocations: 1.154 MB / 0.6706 GB, free: 11.98 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.763, allocations: 8.031 kB / 0.6706 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.7633, allocations: 102.8 kB / 0.6707 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000938/0.7642, allocations: 0.5336 MB / 0.6712 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.497e-05/0.7643, allocations: 53.95 kB / 0.6713 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.7644, allocations: 79.92 kB / 0.6713 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.7656, allocations: 0.7235 MB / 0.672 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.7657, allocations: 4 kB / 0.672 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/0.7657, allocations: 28 kB / 0.6721 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.7657, allocations: 20 kB / 0.6721 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.7668, allocations: 0.6369 MB / 0.6727 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004122/0.771, allocations: 3.149 MB / 0.6758 GB, free: 6.281 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.7722, allocations: 0.5755 MB / 0.6764 GB, free: 5.699 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003026/0.7753, allocations: 2.647 MB / 0.6789 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.7753, allocations: 39.12 kB / 0.679 GB, free: 2.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=55): time 2.625e-06/0.7754, allocations: 0 / 0.679 GB, free: 2.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=56): time 0.003441/0.7788, allocations: 1.748 MB / 0.6807 GB, free: 0.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.7789, allocations: 67.91 kB / 0.6807 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000656/0.7795, allocations: 0.5628 MB / 0.6813 GB, free: 100 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.7796, allocations: 37.7 kB / 0.6813 GB, free: 56 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002963/0.7799, allocations: 384.2 kB / 0.6817 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.78, allocations: 193.1 kB / 0.6819 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.78, allocations: 15.94 kB / 0.6819 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002513/0.7803, allocations: 378.8 kB / 0.6823 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.7806, allocations: 169 kB / 0.6824 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.7811, allocations: 227.2 kB / 0.6826 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004218/0.7815, allocations: 198.2 kB / 0.6828 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.7815, allocations: 3.953 kB / 0.6828 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001183/0.7827, allocations: 0.6316 MB / 0.6834 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.7827, allocations: 4 kB / 0.6835 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.7827, allocations: 128 / 0.6835 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004662/0.7832, allocations: 118.8 kB / 0.6836 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/0.7836, allocations: 99.88 kB / 0.6837 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.7858, allocations: 1.938 MB / 0.6856 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.7863, allocations: 44.02 kB / 0.6856 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.72e-05/0.7864, allocations: 20 kB / 0.6856 GB, free: 11.5 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.7867, allocations: 193.8 kB / 0.6858 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.7869, allocations: 67.16 kB / 0.6859 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.7886, allocations: 0.8777 MB / 0.6867 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.7887, allocations: 11.89 kB / 0.6867 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.7887, allocations: 4 kB / 0.6867 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.7887, allocations: 7.984 kB / 0.6867 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/0.7913, allocations: 1.535 MB / 0.6882 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.7913, allocations: 0 / 0.6882 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.7916, allocations: 87.88 kB / 0.6883 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003916/0.792, allocations: 116.8 kB / 0.6884 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.7921, allocations: 19.98 kB / 0.6885 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.794, allocations: 1.934 MB / 0.6903 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.7941, allocations: 4.031 kB / 0.6903 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.7957, allocations: 1.008 MB / 0.6913 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.7959, allocations: 148.3 kB / 0.6915 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.239e-05/0.796, allocations: 16.05 kB / 0.6915 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.7963, allocations: 51.81 kB / 0.6915 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.333e-05/0.7964, allocations: 48.48 kB / 0.6916 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.7965, allocations: 15.98 kB / 0.6916 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005121/0.797, allocations: 427.1 kB / 0.692 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.797, allocations: 0 / 0.692 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001053/0.7981, allocations: 327.8 kB / 0.6923 GB, free: 4.312 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007811/0.7988, allocations: 486.4 kB / 0.6928 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001322/0.8002, allocations: 0.6271 MB / 0.6934 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.8002, allocations: 7.875 kB / 0.6934 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007982/0.801, allocations: 434 kB / 0.6938 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.8022, allocations: 224.7 kB / 0.694 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.8052, allocations: 1.758 MB / 0.6958 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/0.8058, allocations: 0.9771 MB / 0.6967 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004544/0.8063, allocations: 132.7 kB / 0.6968 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.8065, allocations: 59.42 kB / 0.6969 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of SimCode: time 8.72e-07/0.8065, allocations: 0 / 0.6969 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of Templates: time 0.02551/0.832, allocations: 15.04 MB / 0.7116 GB, free: 0.6055 MB / 0.5137 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","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches