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.001003/0.001002, allocations: 174.1 kB / 12.73 MB, free: 2.59 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.354/1.354, allocations: 205.2 MB / 218.5 MB, free: 9.215 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.0007947/0.0007947, allocations: 90.58 kB / 266.6 MB, free: 9.281 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.7063/0.7063, allocations: 90.34 MB / 405 MB, free: 8.621 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.043e-05, allocations: 8 kB / 479.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 66.25 MB / 0.5326 GB, free: 28.57 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.397, allocations: 437.1 MB / 0.9595 GB, free: 157.2 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/1.397, allocations: 81.47 kB / 0.9596 GB, free: 157.2 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1934/1.591, allocations: 101.5 MB / 1.059 GB, free: 89.45 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.854e-06/1.591, allocations: 0 / 1.059 GB, free: 89.45 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.987e-05/1.591, allocations: 19.98 kB / 1.059 GB, free: 89.43 MB / 0.5886 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.001722/1.592, allocations: 0.7984 MB / 1.06 GB, free: 88.59 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/1.592, allocations: 15.97 kB / 1.06 GB, free: 88.57 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/1.593, allocations: 83.2 kB / 1.06 GB, free: 88.49 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/1.594, allocations: 375.5 kB / 1.06 GB, free: 88.08 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/1.594, allocations: 37 kB / 1.06 GB, free: 88.05 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/1.594, allocations: 40 kB / 1.06 GB, free: 88.01 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006634/1.594, allocations: 450.4 kB / 1.061 GB, free: 87.56 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/1.594, allocations: 0 / 1.061 GB, free: 87.56 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/1.594, allocations: 16 kB / 1.061 GB, free: 87.55 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/1.594, allocations: 15.98 kB / 1.061 GB, free: 87.53 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005852/1.595, allocations: 471.8 kB / 1.061 GB, free: 87.07 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/1.597, allocations: 2.213 MB / 1.063 GB, free: 84.61 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007136/1.598, allocations: 0.521 MB / 1.064 GB, free: 84.08 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/1.598, allocations: 250.5 kB / 1.064 GB, free: 83.83 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001917/1.6, allocations: 1.842 MB / 1.066 GB, free: 81.78 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/1.6, allocations: 42.95 kB / 1.066 GB, free: 81.72 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=55): time 2.275e-06/1.6, allocations: 0 / 1.066 GB, free: 81.72 MB / 0.5886 GB Notification: Performance of matching and sorting (n=55): time 0.0009199/1.601, allocations: 0.5228 MB / 1.066 GB, free: 81.19 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/1.601, allocations: 59.84 kB / 1.066 GB, free: 81.12 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/1.601, allocations: 283.7 kB / 1.067 GB, free: 80.84 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/1.601, allocations: 33.7 kB / 1.067 GB, free: 80.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/1.601, allocations: 216.6 kB / 1.067 GB, free: 80.58 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.39e-05/1.602, allocations: 193.2 kB / 1.067 GB, free: 80.39 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/1.602, allocations: 12 kB / 1.067 GB, free: 80.38 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.204e-05/1.602, allocations: 358.8 kB / 1.067 GB, free: 80.02 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/1.602, allocations: 161.1 kB / 1.068 GB, free: 79.86 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/1.602, allocations: 218.3 kB / 1.068 GB, free: 79.64 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/1.602, allocations: 195.1 kB / 1.068 GB, free: 79.45 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.602, allocations: 3.938 kB / 1.068 GB, free: 79.44 MB / 0.5886 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007738/1.603, allocations: 0.554 MB / 1.068 GB, free: 78.87 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.603, allocations: 8 kB / 1.068 GB, free: 78.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.603, allocations: 0 / 1.068 GB, free: 78.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/1.604, allocations: 69.73 kB / 1.069 GB, free: 78.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/1.604, allocations: 83.89 kB / 1.069 GB, free: 78.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/1.605, allocations: 2.722 MB / 1.071 GB, free: 75.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/1.606, allocations: 47.56 kB / 1.071 GB, free: 75.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/1.606, allocations: 19.98 kB / 1.071 GB, free: 75.64 MB / 0.5886 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 () * 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 8.97e-05/1.606, allocations: 128.9 kB / 1.071 GB, free: 75.51 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.738e-05/1.606, allocations: 51.5 kB / 1.071 GB, free: 75.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/1.607, allocations: 0.6772 MB / 1.072 GB, free: 74.77 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/1.607, allocations: 11.95 kB / 1.072 GB, free: 74.76 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/1.607, allocations: 0 / 1.072 GB, free: 74.76 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/1.607, allocations: 3.984 kB / 1.072 GB, free: 74.75 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/1.608, allocations: 1.311 MB / 1.073 GB, free: 73.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.608, allocations: 0 / 1.073 GB, free: 73.38 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/1.609, allocations: 87.83 kB / 1.074 GB, free: 73.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001799/1.609, allocations: 61.58 kB / 1.074 GB, free: 73.22 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/1.609, allocations: 19.98 kB / 1.074 GB, free: 73.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/1.61, allocations: 2.718 MB / 1.076 GB, free: 70.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.61, allocations: 3.938 kB / 1.076 GB, free: 70.22 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/1.611, allocations: 0.9355 MB / 1.077 GB, free: 69.24 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.442e-05/1.612, allocations: 124.5 kB / 1.077 GB, free: 69.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/1.612, allocations: 12 kB / 1.077 GB, free: 69.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/1.612, allocations: 23.95 kB / 1.077 GB, free: 69.07 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.433e-05/1.612, allocations: 52.27 kB / 1.077 GB, free: 69.02 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/1.612, allocations: 23.98 kB / 1.077 GB, free: 68.99 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001876/1.612, allocations: 222.2 kB / 1.078 GB, free: 68.78 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.7e-07/1.612, allocations: 0 / 1.078 GB, free: 68.78 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0006277/1.613, allocations: 219.6 kB / 1.078 GB, free: 68.56 MB / 0.5886 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 () * 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.0004163/1.613, allocations: 373.7 kB / 1.078 GB, free: 68.19 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0007508/1.614, allocations: 0.6755 MB / 1.079 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/1.614, allocations: 0 / 1.079 GB, free: 67.49 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0004853/1.615, allocations: 0.4961 MB / 1.079 GB, free: 66.97 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/1.615, allocations: 152.4 kB / 1.079 GB, free: 66.82 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/1.616, allocations: 0.7251 MB / 1.08 GB, free: 66.07 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/1.617, allocations: 0.8476 MB / 1.081 GB, free: 65.19 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0003298/1.617, allocations: 95.84 kB / 1.081 GB, free: 65.09 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/1.617, allocations: 47.42 kB / 1.081 GB, free: 65.04 MB / 0.5886 GB Notification: Performance of SimCode: time 5.61e-07/1.617, allocations: 0 / 1.081 GB, free: 65.04 MB / 0.5886 GB Notification: Performance of Templates: time 0.01534/1.632, allocations: 11.25 MB / 1.092 GB, free: 53.84 MB / 0.5886 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