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.001304/0.001304, allocations: 174.6 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.437/1.437, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0008513/0.0008514, allocations: 89.17 kB / 266.6 MB, free: 9.27 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.8045/0.8045, allocations: 90.34 MB / 405 MB, free: 8.633 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.365e-05, allocations: 4 kB / 479.2 MB, free: 14.33 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4095, allocations: 66.25 MB / 0.5326 GB, free: 28.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.198/1.607, allocations: 436.4 MB / 0.9587 GB, free: 158 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/1.608, allocations: 79.11 kB / 0.9588 GB, free: 158 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1524/1.76, allocations: 69.97 MB / 1.027 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.442e-06/1.76, allocations: 0 / 1.027 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.217e-05/1.76, allocations: 8 kB / 1.027 GB, free: 122.1 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.001442/1.762, allocations: 0.6291 MB / 1.028 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/1.762, allocations: 11.97 kB / 1.028 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/1.762, allocations: 31.62 kB / 1.028 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/1.762, allocations: 277.5 kB / 1.028 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/1.762, allocations: 12.44 kB / 1.028 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.701e-05/1.763, allocations: 20 kB / 1.028 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/1.763, allocations: 215.2 kB / 1.028 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/1.763, allocations: 4 kB / 1.028 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/1.763, allocations: 12 kB / 1.028 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/1.763, allocations: 4 kB / 1.028 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004133/1.764, allocations: 193.6 kB / 1.029 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/1.765, allocations: 1.041 MB / 1.03 GB, free: 119.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/1.766, allocations: 222.9 kB / 1.03 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/1.766, allocations: 104.8 kB / 1.03 GB, free: 119.2 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001036/1.767, allocations: 0.853 MB / 1.031 GB, free: 118.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003179/1.767, allocations: 153 kB / 1.031 GB, free: 118 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 2.815e-06/1.767, allocations: 0 / 1.031 GB, free: 118 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.0007544/1.768, allocations: 266.5 kB / 1.031 GB, free: 117.8 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/1.768, allocations: 55.41 kB / 1.031 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/1.768, allocations: 205.1 kB / 1.031 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/1.768, allocations: 29.7 kB / 1.031 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/1.768, allocations: 160.3 kB / 1.032 GB, free: 117.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 6.196e-05/1.768, allocations: 86.75 kB / 1.032 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/1.768, allocations: 4 kB / 1.032 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.957e-05/1.769, allocations: 334.8 kB / 1.032 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/1.769, allocations: 79.97 kB / 1.032 GB, free: 116.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/1.769, allocations: 107.8 kB / 1.032 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/1.769, allocations: 106.2 kB / 1.032 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/1.769, allocations: 0 / 1.032 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006865/1.77, allocations: 328.9 kB / 1.033 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/1.77, allocations: 33.7 kB / 1.033 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/1.77, allocations: 3.984 kB / 1.033 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/1.77, allocations: 40.91 kB / 1.033 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/1.77, allocations: 47.91 kB / 1.033 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/1.772, allocations: 1.413 MB / 1.034 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/1.772, allocations: 35.81 kB / 1.034 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/1.772, allocations: 11.98 kB / 1.034 GB, free: 114.5 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 9.801e-05/1.772, allocations: 116.8 kB / 1.034 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.327e-05/1.772, allocations: 27.78 kB / 1.034 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007071/1.773, allocations: 326.3 kB / 1.035 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/1.773, allocations: 3.984 kB / 1.035 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/1.773, allocations: 7.938 kB / 1.035 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/1.773, allocations: 0 / 1.035 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/1.774, allocations: 0.7302 MB / 1.035 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.774, allocations: 7.938 kB / 1.035 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/1.774, allocations: 39.91 kB / 1.035 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001612/1.774, allocations: 40.83 kB / 1.035 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/1.774, allocations: 12.03 kB / 1.035 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009878/1.775, allocations: 1.414 MB / 1.037 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.775, allocations: 3.953 kB / 1.037 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007643/1.776, allocations: 0.4906 MB / 1.037 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-05/1.776, allocations: 100.8 kB / 1.037 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/1.776, allocations: 11.98 kB / 1.037 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/1.777, allocations: 20.05 kB / 1.037 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/1.777, allocations: 23.97 kB / 1.037 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/1.777, allocations: 11.98 kB / 1.037 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.000149/1.777, allocations: 161.4 kB / 1.038 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.3e-07/1.777, allocations: 0 / 1.038 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000668/1.778, allocations: 139.8 kB / 1.038 GB, free: 110.6 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.000482/1.778, allocations: 308.1 kB / 1.038 GB, free: 110.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006546/1.779, allocations: 407.6 kB / 1.038 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.779, allocations: 0 / 1.038 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003576/1.779, allocations: 272.1 kB / 1.039 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/1.78, allocations: 80.5 kB / 1.039 GB, free: 109.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000954/1.781, allocations: 414.3 kB / 1.039 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/1.781, allocations: 0.7716 MB / 1.04 GB, free: 108.3 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.000197/1.781, allocations: 37.94 kB / 1.04 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/1.781, allocations: 31.42 kB / 1.04 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of SimCode: time 3.3e-07/1.781, allocations: 0 / 1.04 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.01342/1.795, allocations: 6.857 MB / 1.047 GB, free: 101.4 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