Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009302/0.0009303, allocations: 176.5 kB / 15.78 MB, free: 6.348 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.532/1.532, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.0008111/0.0008109, allocations: 86.33 kB / 270.3 MB, free: 13.34 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.7922/0.7922, allocations: 90.6 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.0003191, allocations: 8 kB / 485.9 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4518/0.4521, allocations: 66.28 MB / 0.5392 GB, free: 45.52 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.196/0.6481, allocations: 135.9 MB / 0.6719 GB, free: 3.734 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.007389/0.6556, allocations: 4.283 MB / 0.6761 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000701/0.6564, allocations: 4 kB / 0.6761 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0009776/0.6573, allocations: 238.6 kB / 0.6764 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001784/0.6591, allocations: 0.6215 MB / 0.677 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.6604, allocations: 358.6 kB / 0.6773 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001187/0.6616, allocations: 1.06 MB / 0.6783 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002948/0.6619, allocations: 127 kB / 0.6785 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008752/0.6628, allocations: 402.2 kB / 0.6788 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005806/0.6634, allocations: 438.4 kB / 0.6793 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.6635, allocations: 20 kB / 0.6793 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.665, allocations: 0.7056 MB / 0.68 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.868e-05/0.6651, allocations: 79.61 kB / 0.68 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.6652, allocations: 125.4 kB / 0.6802 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007763/0.666, allocations: 0.5983 MB / 0.6807 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.666, allocations: 0 / 0.6807 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.254e-06/0.666, allocations: 0 / 0.6807 GB, free: 10.69 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.666, allocations: 0 / 0.6807 GB, free: 10.69 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001476/0.6675, allocations: 0.7991 MB / 0.6815 GB, free: 9.848 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.6676, allocations: 8.031 kB / 0.6815 GB, free: 9.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.6677, allocations: 59.28 kB / 0.6816 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.6682, allocations: 366.6 kB / 0.6819 GB, free: 9.383 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.6682, allocations: 30.41 kB / 0.682 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.927e-05/0.6683, allocations: 48 kB / 0.682 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008348/0.6692, allocations: 450.4 kB / 0.6824 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.6692, allocations: 7.938 kB / 0.6825 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.6692, allocations: 12 kB / 0.6825 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.6693, allocations: 16 kB / 0.6825 GB, free: 8.828 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008682/0.6701, allocations: 491.8 kB / 0.683 GB, free: 8.344 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.6731, allocations: 2.176 MB / 0.6851 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.6742, allocations: 0.5522 MB / 0.6856 GB, free: 5.363 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.6746, allocations: 267.8 kB / 0.6859 GB, free: 5.102 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/0.6757, allocations: 0.5928 MB / 0.6865 GB, free: 4.398 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.6757, allocations: 43.12 kB / 0.6865 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 2.384e-06/0.6757, allocations: 0 / 0.6865 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.001884/0.6776, allocations: 0.9864 MB / 0.6875 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.6777, allocations: 63.91 kB / 0.6875 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.6781, allocations: 326.5 kB / 0.6878 GB, free: 2.91 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.6781, allocations: 33.7 kB / 0.6879 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.6783, allocations: 204.8 kB / 0.6881 GB, free: 2.668 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.6784, allocations: 205 kB / 0.6883 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.6785, allocations: 4 kB / 0.6883 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.6786, allocations: 362.8 kB / 0.6886 GB, free: 2.098 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.679, allocations: 189 kB / 0.6888 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.6793, allocations: 201 kB / 0.689 GB, free: 1.715 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.6797, allocations: 211.3 kB / 0.6892 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.6797, allocations: 0 / 0.6892 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001046/0.6808, allocations: 0.6055 MB / 0.6898 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6808, allocations: 8 kB / 0.6898 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.6808, allocations: 0 / 0.6898 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003112/0.6811, allocations: 65.67 kB / 0.6898 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.6815, allocations: 91.83 kB / 0.6899 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.6839, allocations: 2.707 MB / 0.6926 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.6842, allocations: 43.75 kB / 0.6926 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.6843, allocations: 19.98 kB / 0.6926 GB, free: 13.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002483/0.6845, allocations: 161.8 kB / 0.6928 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.035e-05/0.6846, allocations: 51.58 kB / 0.6928 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.6862, allocations: 0.7843 MB / 0.6936 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.6862, allocations: 15.92 kB / 0.6936 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6862, allocations: 3.953 kB / 0.6936 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.6862, allocations: 3.984 kB / 0.6936 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.6886, allocations: 1.451 MB / 0.695 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.6886, allocations: 0.9375 kB / 0.695 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.6889, allocations: 99.83 kB / 0.6951 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002185/0.6891, allocations: 69.72 kB / 0.6952 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.157e-05/0.6892, allocations: 19.98 kB / 0.6952 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.6915, allocations: 2.728 MB / 0.6979 GB, free: 7.961 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6915, allocations: 4.125 kB / 0.6979 GB, free: 7.957 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.6931, allocations: 1.042 MB / 0.6989 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.6933, allocations: 124.5 kB / 0.699 GB, free: 6.746 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.894e-05/0.6934, allocations: 15.98 kB / 0.699 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.6936, allocations: 23.84 kB / 0.6991 GB, free: 6.707 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.6937, allocations: 48.5 kB / 0.6991 GB, free: 6.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.6938, allocations: 28.05 kB / 0.6991 GB, free: 6.633 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002469/0.694, allocations: 231.2 kB / 0.6994 GB, free: 6.414 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2e-07/0.694, allocations: 0 / 0.6994 GB, free: 6.414 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007115/0.6948, allocations: 211.6 kB / 0.6996 GB, free: 6.207 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004988/0.6953, allocations: 296.1 kB / 0.6998 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.6966, allocations: 0.8011 MB / 0.7006 GB, free: 5.074 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.6966, allocations: 9.438 kB / 0.7006 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008155/0.6974, allocations: 0.5992 MB / 0.7012 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.6983, allocations: 157.9 kB / 0.7014 GB, free: 4.281 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.7003, allocations: 1.287 MB / 0.7026 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.7008, allocations: 0.848 MB / 0.7034 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.7009, allocations: 67.42 kB / 0.7035 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of SimCode: time 7.22e-07/0.701, allocations: 0 / 0.7035 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of Templates: time 0.0186/0.7196, allocations: 13.36 MB / 0.7166 GB, free: 4.875 MB / 0.5261 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches