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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007864/0.0007864, allocations: 181.2 kB / 15.45 MB, free: 6.227 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.069/1.069, allocations: 205 MB / 221.2 MB, free: 13.8 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.0006502/0.0006501, allocations: 86.34 kB / 269.2 MB, free: 13.69 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.5658/0.5658, allocations: 90.52 MB / 407.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002474, allocations: 11.98 kB / 484.3 MB, free: 2.609 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.08927, allocations: 65.81 MB / 0.5372 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.2849/0.3742, allocations: 155.9 MB / 0.6894 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.007097/0.3814, allocations: 7.475 MB / 0.6967 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004188/0.3818, allocations: 11.94 kB / 0.6968 GB, free: 9.395 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.3829, allocations: 426 kB / 0.6972 GB, free: 8.977 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.3842, allocations: 0.649 MB / 0.6978 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.3853, allocations: 459.3 kB / 0.6982 GB, free: 7.875 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001141/0.3864, allocations: 1.312 MB / 0.6995 GB, free: 6.559 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000368/0.3868, allocations: 303.3 kB / 0.6998 GB, free: 6.266 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005324/0.3873, allocations: 358.6 kB / 0.7001 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007302/0.3881, allocations: 0.5762 MB / 0.7007 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.928e-05/0.3882, allocations: 32 kB / 0.7007 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.3897, allocations: 0.92 MB / 0.7016 GB, free: 4.383 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3898, allocations: 131.4 kB / 0.7018 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.3901, allocations: 339.8 kB / 0.7021 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.3913, allocations: 1.164 MB / 0.7032 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.3914, allocations: 0 / 0.7032 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3914, allocations: 0 / 0.7032 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.3914, allocations: 0 / 0.7032 GB, free: 2.754 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001518/0.3929, allocations: 0.9557 MB / 0.7042 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3929, allocations: 8.031 kB / 0.7042 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.393, allocations: 111.7 kB / 0.7043 GB, free: 1.629 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.3932, allocations: 72.09 kB / 0.7043 GB, free: 1.559 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.3937, allocations: 439 kB / 0.7048 GB, free: 1.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.3937, allocations: 41.69 kB / 0.7048 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.113e-05/0.3938, allocations: 68.27 kB / 0.7049 GB, free: 0.9844 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009954/0.3948, allocations: 0.752 MB / 0.7056 GB, free: 232 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3948, allocations: 0 / 0.7056 GB, free: 232 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.3949, allocations: 20 kB / 0.7056 GB, free: 212 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-05/0.3949, allocations: 30.05 kB / 0.7056 GB, free: 184 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.396, allocations: 0.86 MB / 0.7065 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.3991, allocations: 3.264 MB / 0.7097 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009769/0.4001, allocations: 0.6979 MB / 0.7104 GB, free: 11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005236/0.4006, allocations: 418.8 kB / 0.7108 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001965/0.4026, allocations: 2.195 MB / 0.7129 GB, free: 8.129 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.4027, allocations: 44.56 kB / 0.7129 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 1.613e-06/0.4027, allocations: 0 / 0.7129 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61): time 0.003495/0.4062, allocations: 2.323 MB / 0.7152 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.4062, allocations: 55.97 kB / 0.7153 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/0.4065, allocations: 300.6 kB / 0.7155 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.621e-05/0.4065, allocations: 33.7 kB / 0.7156 GB, free: 5.234 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.4066, allocations: 260.5 kB / 0.7158 GB, free: 4.973 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.4068, allocations: 208.9 kB / 0.716 GB, free: 4.766 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.4068, allocations: 12 kB / 0.716 GB, free: 4.754 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4069, allocations: 350.8 kB / 0.7164 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.4073, allocations: 261 kB / 0.7166 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.4077, allocations: 317.5 kB / 0.7169 GB, free: 3.824 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008309/0.4085, allocations: 0.6195 MB / 0.7175 GB, free: 3.195 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.4085, allocations: 0 / 0.7175 GB, free: 3.195 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001274/0.4098, allocations: 0.878 MB / 0.7184 GB, free: 2.305 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.4099, allocations: 5.406 kB / 0.7184 GB, free: 2.301 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4099, allocations: 3.656 kB / 0.7184 GB, free: 2.301 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.4113, allocations: 417.5 kB / 0.7188 GB, free: 1.891 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.4115, allocations: 67.89 kB / 0.7189 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.4126, allocations: 1.084 MB / 0.7199 GB, free: 0.7148 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.4129, allocations: 27.98 kB / 0.7199 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.4129, allocations: 35.97 kB / 0.72 GB, free: 0.6523 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 (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.0002117/0.4132, allocations: 197.8 kB / 0.7202 GB, free: 460 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.393e-05/0.4133, allocations: 43.52 kB / 0.7202 GB, free: 416 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.4149, allocations: 1.016 MB / 0.7212 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4149, allocations: 8 kB / 0.7212 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.4149, allocations: 4 kB / 0.7212 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.4149, allocations: 3.984 kB / 0.7212 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.4173, allocations: 1.847 MB / 0.723 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4173, allocations: 3.656 kB / 0.723 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.4176, allocations: 95.86 kB / 0.7231 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004467/0.4181, allocations: 197.8 kB / 0.7233 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.4182, allocations: 23.97 kB / 0.7233 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/0.4207, allocations: 2.482 MB / 0.7257 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4207, allocations: 0 / 0.7257 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.4225, allocations: 1.381 MB / 0.7271 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.059e-05/0.4226, allocations: 116.7 kB / 0.7272 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.548e-05/0.4227, allocations: 8 kB / 0.7272 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.423, allocations: 39.89 kB / 0.7273 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.44e-05/0.4231, allocations: 56.47 kB / 0.7273 GB, free: 8.926 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.4231, allocations: 27.91 kB / 0.7273 GB, free: 8.898 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001732/0.4233, allocations: 207.1 kB / 0.7275 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4233, allocations: 0 / 0.7275 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0005966/0.4239, allocations: 259.8 kB / 0.7278 GB, free: 8.441 MB / 0.5417 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.002307/0.4262, allocations: 2.142 MB / 0.7299 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001198/0.4274, allocations: 0.7504 MB / 0.7306 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4274, allocations: 0 / 0.7306 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009251/0.4284, allocations: 0.6534 MB / 0.7312 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.4291, allocations: 136.6 kB / 0.7314 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.4355, allocations: 5.689 MB / 0.7369 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.4359, allocations: 0.9065 MB / 0.7378 GB, free: 14 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003431/0.4362, allocations: 136.4 kB / 0.7379 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.4365, allocations: 219.3 kB / 0.7382 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of SimCode: time 3.8e-07/0.4365, allocations: 0 / 0.7382 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1838/0.6204, allocations: 18.06 MB / 0.7558 GB, free: 182.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001202/0.6205, allocations: 255.8 kB / 0.756 GB, free: 182.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.707, allocations: 0.5 kB / 0.756 GB, free: 182.2 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > 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