Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0115/0.0115, allocations: 172.6 kB / 15.12 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 221.3 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 90.81 kB / 269.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8428/0.8428, allocations: 90.58 MB / 408.4 MB, free: 14.98 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.00036, allocations: 8 kB / 485.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4533/0.4536, allocations: 66.27 MB / 0.5386 GB, free: 45.74 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1919/0.6456, allocations: 139.2 MB / 0.6745 GB, free: 468 kB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.6608, allocations: 10.72 MB / 0.685 GB, free: 5.73 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.6621, allocations: 19.88 kB / 0.685 GB, free: 5.711 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.664, allocations: 499.4 kB / 0.6855 GB, free: 5.223 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.003073/0.6671, allocations: 0.7983 MB / 0.6863 GB, free: 4.422 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.002339/0.6695, allocations: 0.6234 MB / 0.6869 GB, free: 3.797 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.00181/0.6713, allocations: 0.7795 MB / 0.6876 GB, free: 3.016 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005356/0.6719, allocations: 257.9 kB / 0.6879 GB, free: 2.75 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008279/0.6727, allocations: 362.6 kB / 0.6882 GB, free: 2.395 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008727/0.6736, allocations: 474.2 kB / 0.6887 GB, free: 1.93 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.6737, allocations: 32 kB / 0.6887 GB, free: 1.898 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003075/0.6768, allocations: 1.323 MB / 0.69 GB, free: 0.5742 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.677, allocations: 119.5 kB / 0.6901 GB, free: 468 kB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0003038/0.6773, allocations: 185.3 kB / 0.6903 GB, free: 276 kB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.6789, allocations: 0.9363 MB / 0.6912 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.6789, allocations: 0 / 0.6912 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6789, allocations: 0 / 0.6912 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.403e-05/0.6789, allocations: 0 / 0.6912 GB, free: 15.34 MB / 0.5105 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.00194/0.6809, allocations: 1.092 MB / 0.6923 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.6809, allocations: 8.031 kB / 0.6923 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.6811, allocations: 95.53 kB / 0.6924 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007032/0.6818, allocations: 490.6 kB / 0.6928 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.6819, allocations: 50 kB / 0.6929 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.695e-05/0.682, allocations: 71.91 kB / 0.693 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.6831, allocations: 0.6555 MB / 0.6936 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.6831, allocations: 0 / 0.6936 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.617e-05/0.6831, allocations: 31.98 kB / 0.6936 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.6832, allocations: 16.75 kB / 0.6936 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.6843, allocations: 0.6442 MB / 0.6943 GB, free: 12.11 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003542/0.6878, allocations: 3.237 MB / 0.6974 GB, free: 8.508 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.6892, allocations: 0.6743 MB / 0.6981 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002495/0.6917, allocations: 2.65 MB / 0.7007 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.6917, allocations: 43.06 kB / 0.7007 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 2.605e-06/0.6918, allocations: 0 / 0.7007 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.003356/0.6951, allocations: 1.865 MB / 0.7025 GB, free: 2.738 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.6952, allocations: 55.97 kB / 0.7026 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004561/0.6957, allocations: 446.9 kB / 0.703 GB, free: 2.227 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.6957, allocations: 33.7 kB / 0.703 GB, free: 2.188 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.696, allocations: 352.2 kB / 0.7034 GB, free: 1.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.6961, allocations: 201 kB / 0.7036 GB, free: 1.641 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.6962, allocations: 12 kB / 0.7036 GB, free: 1.629 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.6963, allocations: 370.7 kB / 0.7039 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.6966, allocations: 177 kB / 0.7041 GB, free: 1.082 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.697, allocations: 233.5 kB / 0.7043 GB, free: 0.8477 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.6974, allocations: 206.2 kB / 0.7045 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.6974, allocations: 0 / 0.7045 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001175/0.6986, allocations: 0.6434 MB / 0.7052 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.6986, allocations: 4 kB / 0.7052 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.6986, allocations: 7.938 kB / 0.7052 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003816/0.699, allocations: 97.55 kB / 0.7053 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.6994, allocations: 104 kB / 0.7054 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.7016, allocations: 1.934 MB / 0.7073 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/0.702, allocations: 47.97 kB / 0.7073 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.702, allocations: 19.98 kB / 0.7073 GB, free: 13.64 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002941/0.7023, allocations: 193.7 kB / 0.7075 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.888e-05/0.7024, allocations: 63.23 kB / 0.7076 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.704, allocations: 0.8075 MB / 0.7083 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.704, allocations: 12 kB / 0.7084 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.7041, allocations: 0 / 0.7084 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.7041, allocations: 3.984 kB / 0.7084 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.7067, allocations: 1.59 MB / 0.7099 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.7067, allocations: 5.75 kB / 0.7099 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.7071, allocations: 107.9 kB / 0.71 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003795/0.7075, allocations: 109.9 kB / 0.7101 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.7075, allocations: 23.92 kB / 0.7102 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/0.7097, allocations: 1.943 MB / 0.7121 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.7097, allocations: 0.8125 kB / 0.7121 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.7116, allocations: 1.075 MB / 0.7131 GB, free: 7.492 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.7119, allocations: 128.4 kB / 0.7132 GB, free: 7.348 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/0.7119, allocations: 15.98 kB / 0.7132 GB, free: 7.332 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/0.7123, allocations: 43.94 kB / 0.7133 GB, free: 7.289 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.7124, allocations: 52.44 kB / 0.7133 GB, free: 7.234 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.7125, allocations: 23.98 kB / 0.7134 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004303/0.7129, allocations: 310.9 kB / 0.7137 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7129, allocations: 0 / 0.7137 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001341/0.7143, allocations: 319.8 kB / 0.714 GB, free: 6.598 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009236/0.7152, allocations: 0.4884 MB / 0.7144 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.7166, allocations: 0.6913 MB / 0.7151 GB, free: 5.406 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7166, allocations: 0 / 0.7151 GB, free: 5.406 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000761/0.7174, allocations: 0.4955 MB / 0.7156 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009048/0.7183, allocations: 168.2 kB / 0.7158 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.7206, allocations: 1.667 MB / 0.7174 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.7212, allocations: 0.9613 MB / 0.7183 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.000433/0.7216, allocations: 127.7 kB / 0.7184 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.7218, allocations: 59.42 kB / 0.7185 GB, free: 1.859 MB / 0.5261 GB Notification: Performance of SimCode: time 6.21e-07/0.7218, allocations: 0 / 0.7185 GB, free: 1.859 MB / 0.5261 GB Notification: Performance of Templates: time 0.02327/0.7451, allocations: 13.66 MB / 0.7318 GB, free: 4.348 MB / 0.5417 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches