Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001435/0.001435, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.3 MB / 213.4 MB, free: 13.76 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.0008022/0.0008023, allocations: 83.83 kB / 261.4 MB, free: 13.45 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.7682/0.7682, allocations: 90.36 MB / 399.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.805e-05, allocations: 4 kB / 472.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4028, allocations: 66.26 MB / 0.5258 GB, free: 29.01 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.159/1.562, allocations: 435.7 MB / 0.9513 GB, free: 220 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/1.563, allocations: 75.95 kB / 0.9514 GB, free: 219.9 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1318/1.694, allocations: 69.63 MB / 1.019 GB, free: 149.6 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.425e-06/1.694, allocations: 0 / 1.019 GB, free: 149.6 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.945e-05/1.694, allocations: 7.984 kB / 1.019 GB, free: 149.6 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001012/1.695, allocations: 0.6291 MB / 1.02 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/1.696, allocations: 12.03 kB / 1.02 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/1.696, allocations: 31.62 kB / 1.02 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/1.696, allocations: 269.6 kB / 1.02 GB, free: 148.6 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/1.696, allocations: 4 kB / 1.02 GB, free: 148.6 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/1.696, allocations: 12 kB / 1.02 GB, free: 148.6 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002731/1.696, allocations: 188.7 kB / 1.021 GB, free: 148.4 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/1.697, allocations: 182.4 kB / 1.021 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/1.697, allocations: 0 / 1.021 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/1.697, allocations: 0 / 1.021 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/1.697, allocations: 8 kB / 1.021 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/1.698, allocations: 0.9865 MB / 1.022 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/1.698, allocations: 218.6 kB / 1.022 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/1.698, allocations: 100.8 kB / 1.022 GB, free: 146.8 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007462/1.699, allocations: 0.8411 MB / 1.023 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/1.699, allocations: 155.3 kB / 1.023 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/1.699, allocations: 0 / 1.023 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.0006221/1.7, allocations: 246.5 kB / 1.023 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/1.7, allocations: 51.41 kB / 1.023 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/1.7, allocations: 188.5 kB / 1.023 GB, free: 145.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/1.7, allocations: 25.7 kB / 1.023 GB, free: 145.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/1.7, allocations: 156.4 kB / 1.024 GB, free: 145 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/1.7, allocations: 86.69 kB / 1.024 GB, free: 144.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/1.7, allocations: 4 kB / 1.024 GB, free: 144.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.785e-05/1.7, allocations: 334.8 kB / 1.024 GB, free: 144.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/1.7, allocations: 75.97 kB / 1.024 GB, free: 144.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/1.7, allocations: 94.8 kB / 1.024 GB, free: 144.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/1.701, allocations: 84.88 kB / 1.024 GB, free: 144.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/1.701, allocations: 0 / 1.024 GB, free: 144.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004954/1.701, allocations: 279.2 kB / 1.024 GB, free: 144 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/1.701, allocations: 34.73 kB / 1.025 GB, free: 144 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/1.701, allocations: 4 kB / 1.025 GB, free: 144 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/1.701, allocations: 36.83 kB / 1.025 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/1.702, allocations: 47.91 kB / 1.025 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008522/1.703, allocations: 1.354 MB / 1.026 GB, free: 142.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/1.703, allocations: 31.8 kB / 1.026 GB, free: 142.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/1.703, allocations: 11.98 kB / 1.026 GB, free: 142.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.424e-05/1.703, allocations: 112.9 kB / 1.026 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.532e-05/1.703, allocations: 23.72 kB / 1.026 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005764/1.703, allocations: 298.5 kB / 1.026 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/1.703, allocations: 4 kB / 1.026 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/1.703, allocations: 3.953 kB / 1.026 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/1.703, allocations: 0 / 1.026 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008504/1.704, allocations: 0.6733 MB / 1.027 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.704, allocations: 0 / 1.027 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/1.705, allocations: 47.94 kB / 1.027 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/1.705, allocations: 36.83 kB / 1.027 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/1.705, allocations: 7.984 kB / 1.027 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007102/1.705, allocations: 1.358 MB / 1.028 GB, free: 139.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.705, allocations: 0 / 1.028 GB, free: 139.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006077/1.706, allocations: 498.9 kB / 1.029 GB, free: 139.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/1.706, allocations: 112.7 kB / 1.029 GB, free: 139 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/1.706, allocations: 0 / 1.029 GB, free: 139 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/1.706, allocations: 19.94 kB / 1.029 GB, free: 139 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/1.706, allocations: 27.95 kB / 1.029 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/1.706, allocations: 8 kB / 1.029 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 9.121e-05/1.707, allocations: 152.6 kB / 1.029 GB, free: 138.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.41e-07/1.707, allocations: 0 / 1.029 GB, free: 138.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004806/1.707, allocations: 127.8 kB / 1.029 GB, free: 138.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004059/1.707, allocations: 326.9 kB / 1.03 GB, free: 138.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004936/1.708, allocations: 382.8 kB / 1.03 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/1.708, allocations: 0 / 1.03 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002527/1.708, allocations: 263.4 kB / 1.03 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/1.709, allocations: 66.61 kB / 1.03 GB, free: 137.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007052/1.709, allocations: 390.3 kB / 1.031 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/1.71, allocations: 0.7755 MB / 1.031 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001401/1.71, allocations: 37.94 kB / 1.032 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.797e-05/1.71, allocations: 23.44 kB / 1.032 GB, free: 136.3 MB / 0.5886 GB Notification: Performance of SimCode: time 2.4e-07/1.71, allocations: 3.938 kB / 1.032 GB, free: 136.3 MB / 0.5886 GB Notification: Performance of Templates: time 0.008503/1.718, allocations: 5.539 MB / 1.037 GB, free: 130.8 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches