Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01019/0.01019, allocations: 169.3 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 223.2 MB / 239 MB, free: 1.809 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009746/0.0009748, allocations: 93.14 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01413/0.01413, allocations: 1.547 MB / 342.9 MB, free: 9.293 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7818/0.7818, allocations: 90.31 MB / 484.6 MB, free: 21.93 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004775, allocations: 17.09 kB / 0.5527 GB, free: 30.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1517, allocations: 69.37 MB / 0.6204 GB, free: 5.559 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.369/1.521, allocations: 437.3 MB / 1.047 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/1.521, allocations: 81.73 kB / 1.048 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.2227/1.744, allocations: 104 MB / 1.149 GB, free: 8.898 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.996e-06/1.744, allocations: 0 / 1.149 GB, free: 8.898 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.498e-05/1.744, allocations: 8 kB / 1.149 GB, free: 8.891 MB / 0.6042 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.002402/1.746, allocations: 0.8649 MB / 1.15 GB, free: 7.977 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/1.746, allocations: 11.98 kB / 1.15 GB, free: 7.965 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002054/1.747, allocations: 78.52 kB / 1.15 GB, free: 7.879 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005694/1.747, allocations: 79.31 kB / 1.15 GB, free: 7.801 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/1.748, allocations: 378.6 kB / 1.151 GB, free: 7.387 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/1.748, allocations: 36.94 kB / 1.151 GB, free: 7.352 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-05/1.748, allocations: 47.91 kB / 1.151 GB, free: 7.305 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/1.749, allocations: 450.4 kB / 1.151 GB, free: 6.859 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/1.749, allocations: 0 / 1.151 GB, free: 6.859 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/1.749, allocations: 19.95 kB / 1.151 GB, free: 6.84 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/1.749, allocations: 12 kB / 1.151 GB, free: 6.828 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007974/1.75, allocations: 491.7 kB / 1.152 GB, free: 6.348 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/1.753, allocations: 2.213 MB / 1.154 GB, free: 3.879 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009279/1.754, allocations: 0.5327 MB / 1.154 GB, free: 3.332 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002605/1.756, allocations: 1.802 MB / 1.156 GB, free: 1.32 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/1.756, allocations: 39 kB / 1.156 GB, free: 1.273 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=55): time 3.647e-06/1.756, allocations: 4 kB / 1.156 GB, free: 1.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=55): time 0.4103/2.166, allocations: 1.223 MB / 1.157 GB, free: 172.6 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/2.167, allocations: 58.12 kB / 1.157 GB, free: 172.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006358/2.167, allocations: 296.3 kB / 1.158 GB, free: 172.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001707/2.167, allocations: 35.02 kB / 1.158 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/2.168, allocations: 215.8 kB / 1.158 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/2.168, allocations: 194.3 kB / 1.158 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/2.168, allocations: 12.66 kB / 1.158 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001434/2.168, allocations: 357.2 kB / 1.158 GB, free: 172 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/2.169, allocations: 171.2 kB / 1.158 GB, free: 172 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000517/2.169, allocations: 227.5 kB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005705/2.17, allocations: 201.8 kB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/2.17, allocations: 0.6562 kB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001757/2.171, allocations: 0.5765 MB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/2.172, allocations: 5.594 kB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/2.172, allocations: 1.812 kB / 1.159 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004144/2.172, allocations: 71.39 kB / 1.16 GB, free: 171.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004637/2.172, allocations: 87.61 kB / 1.16 GB, free: 171.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/2.175, allocations: 2.733 MB / 1.162 GB, free: 169.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004522/2.175, allocations: 46.56 kB / 1.162 GB, free: 169.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/2.175, allocations: 21.5 kB / 1.162 GB, free: 169.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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.0002759/2.176, allocations: 164.5 kB / 1.163 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/2.176, allocations: 48.16 kB / 1.163 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/2.178, allocations: 0.6944 MB / 1.163 GB, free: 169.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/2.178, allocations: 11.62 kB / 1.163 GB, free: 169.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/2.178, allocations: 7.188 kB / 1.163 GB, free: 169.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/2.178, allocations: 4.703 kB / 1.163 GB, free: 169.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/2.18, allocations: 1.333 MB / 1.165 GB, free: 168.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/2.18, allocations: 0.8125 kB / 1.165 GB, free: 168.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/2.181, allocations: 89.5 kB / 1.165 GB, free: 168.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/2.181, allocations: 70.86 kB / 1.165 GB, free: 168.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/2.181, allocations: 17.55 kB / 1.165 GB, free: 168.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/2.183, allocations: 2.73 MB / 1.167 GB, free: 166.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/2.183, allocations: 3.031 kB / 1.167 GB, free: 166.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/2.184, allocations: 0.9762 MB / 1.168 GB, free: 166 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/2.184, allocations: 121.7 kB / 1.168 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.689e-05/2.184, allocations: 17.09 kB / 1.168 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/2.185, allocations: 25.7 kB / 1.169 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/2.185, allocations: 51.2 kB / 1.169 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/2.185, allocations: 14.95 kB / 1.169 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002481/2.185, allocations: 240.1 kB / 1.169 GB, free: 165.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.51e-07/2.185, allocations: 0 / 1.169 GB, free: 165.8 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0008824/2.186, allocations: 207.6 kB / 1.169 GB, free: 165.8 MB / 0.6042 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 (51): * Single equations (assignments): 45 * 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.002289/2.188, allocations: 1.917 MB / 1.171 GB, free: 164.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001207/2.19, allocations: 0.6987 MB / 1.172 GB, free: 164.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/2.19, allocations: 0 / 1.172 GB, free: 164.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006287/2.19, allocations: 0.5083 MB / 1.172 GB, free: 164.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007689/2.191, allocations: 142.3 kB / 1.172 GB, free: 164.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/2.196, allocations: 3.498 MB / 1.176 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/2.196, allocations: 0.8581 MB / 1.176 GB, free: 162.2 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004159/2.196, allocations: 88.23 kB / 1.177 GB, free: 162.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/2.197, allocations: 180.6 kB / 1.177 GB, free: 162.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.352e-06/2.197, allocations: 0 / 1.177 GB, free: 162.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04075/2.237, allocations: 16.08 MB / 1.192 GB, free: 161.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/2.238, allocations: 234.5 kB / 1.193 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/5.066, allocations: 0 / 1.193 GB, free: 161.4 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat does not exist to compare? outputFormat=mat