Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.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.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 169.7 kB / 16.1 MB, free: 5.688 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.223/1.223, allocations: 205 MB / 221.9 MB, free: 9.145 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.0007163/0.0007163, allocations: 85 kB / 269.9 MB, free: 8.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.635/0.635, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003007, allocations: 12 kB / 484.8 MB, free: 7.215 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2701, allocations: 65.81 MB / 0.5378 GB, free: 34.92 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.4017/0.6718, allocations: 155.9 MB / 0.69 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.008249/0.6801, allocations: 7.486 MB / 0.6973 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005699/0.6807, allocations: 11.03 kB / 0.6973 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.682, allocations: 425.2 kB / 0.6977 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.6836, allocations: 0.6543 MB / 0.6983 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.6848, allocations: 452.6 kB / 0.6988 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001131/0.686, allocations: 1.317 MB / 0.7001 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003569/0.6863, allocations: 308.9 kB / 0.7003 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004308/0.6868, allocations: 356.1 kB / 0.7007 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006364/0.6874, allocations: 0.5762 MB / 0.7012 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.6875, allocations: 36.38 kB / 0.7013 GB, free: 1.188 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002008/0.6895, allocations: 0.9064 MB / 0.7022 GB, free: 1.172 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.6897, allocations: 138.7 kB / 0.7023 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.69, allocations: 336.9 kB / 0.7026 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0009927/0.691, allocations: 0.8867 MB / 0.7035 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.691, allocations: 0.6562 kB / 0.7035 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.286e-06/0.691, allocations: 3.516 kB / 0.7035 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.347e-06/0.6911, allocations: 2.406 kB / 0.7035 GB, free: 1.094 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001966/0.693, allocations: 0.9573 MB / 0.7044 GB, free: 16.51 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.6931, allocations: 9.438 kB / 0.7044 GB, free: 16.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.6932, allocations: 77.17 kB / 0.7045 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.6938, allocations: 434.1 kB / 0.7049 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.6939, allocations: 46.53 kB / 0.705 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.694, allocations: 67.09 kB / 0.705 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.6952, allocations: 0.7491 MB / 0.7058 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.6952, allocations: 0 / 0.7058 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.6953, allocations: 24.69 kB / 0.7058 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.661e-05/0.6953, allocations: 27.25 kB / 0.7058 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.6966, allocations: 0.8592 MB / 0.7067 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003972/0.7006, allocations: 3.263 MB / 0.7098 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.7016, allocations: 0.7008 MB / 0.7105 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005503/0.7022, allocations: 414.1 kB / 0.7109 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002288/0.7045, allocations: 2.206 MB / 0.7131 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.7045, allocations: 37.12 kB / 0.7131 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 2.144e-06/0.7045, allocations: 0 / 0.7131 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.003791/0.7083, allocations: 2.328 MB / 0.7154 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.7084, allocations: 57.22 kB / 0.7154 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.7086, allocations: 295.7 kB / 0.7157 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.7087, allocations: 33.08 kB / 0.7158 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.7088, allocations: 257.6 kB / 0.716 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.7089, allocations: 212.1 kB / 0.7162 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.709, allocations: 9.688 kB / 0.7162 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7091, allocations: 353.2 kB / 0.7165 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.7094, allocations: 262 kB / 0.7168 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003666/0.7098, allocations: 322.1 kB / 0.7171 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007613/0.7106, allocations: 0.6182 MB / 0.7177 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.7106, allocations: 2.844 kB / 0.7177 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001197/0.7118, allocations: 0.8773 MB / 0.7186 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.7118, allocations: 6.469 kB / 0.7186 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.7118, allocations: 0 / 0.7186 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.7133, allocations: 414.7 kB / 0.719 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.7136, allocations: 72.67 kB / 0.719 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.7147, allocations: 1.072 MB / 0.7201 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.715, allocations: 42.36 kB / 0.7201 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.715, allocations: 29.28 kB / 0.7202 GB, free: 10.4 MB / 0.5105 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.7153, allocations: 207.8 kB / 0.7203 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.364e-05/0.7154, allocations: 39.56 kB / 0.7204 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.717, allocations: 1.015 MB / 0.7214 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.717, allocations: 7.156 kB / 0.7214 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.717, allocations: 2.938 kB / 0.7214 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.717, allocations: 6.984 kB / 0.7214 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.7193, allocations: 1.838 MB / 0.7232 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.7193, allocations: 0 / 0.7232 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.7197, allocations: 98.27 kB / 0.7233 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00045/0.7201, allocations: 188.9 kB / 0.7235 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.7202, allocations: 26.62 kB / 0.7235 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.7227, allocations: 2.504 MB / 0.7259 GB, free: 8.414 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7227, allocations: 0 / 0.7259 GB, free: 8.414 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.7244, allocations: 1.371 MB / 0.7273 GB, free: 8.219 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.903e-05/0.7245, allocations: 115 kB / 0.7274 GB, free: 8.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/0.7246, allocations: 9.688 kB / 0.7274 GB, free: 8.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.7249, allocations: 38.62 kB / 0.7274 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.725, allocations: 50.89 kB / 0.7275 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.7251, allocations: 33.19 kB / 0.7275 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001677/0.7252, allocations: 208.1 kB / 0.7277 GB, free: 8.016 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.61e-07/0.7252, allocations: 0 / 0.7277 GB, free: 8.016 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000733/0.726, allocations: 259.7 kB / 0.728 GB, free: 7.992 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (flowResistance.m_flow,flowResistance1.m_flow,flowResistance2.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 (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(4,13,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004192/0.7264, allocations: 323.2 kB / 0.7283 GB, free: 7.848 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001191/0.7276, allocations: 0.7656 MB / 0.729 GB, free: 7.789 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7276, allocations: 0 / 0.729 GB, free: 7.789 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009471/0.7286, allocations: 0.6362 MB / 0.7296 GB, free: 7.617 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/0.7293, allocations: 145.1 kB / 0.7298 GB, free: 7.602 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.7313, allocations: 1.622 MB / 0.7314 GB, free: 6.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.7318, allocations: 0.9026 MB / 0.7322 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.7319, allocations: 64.88 kB / 0.7323 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of SimCode: time 2.31e-07/0.7319, allocations: 0 / 0.7323 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of Templates: time 0.01506/0.747, allocations: 13.07 MB / 0.7451 GB, free: 0.8281 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.Flow_Resistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches