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.3.1-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.000867/0.0008673, allocations: 175.3 kB / 16.12 MB, free: 5.699 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.364/1.364, allocations: 205.4 MB / 222.3 MB, free: 8.938 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.0008227/0.0008228, allocations: 90.36 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/package.mo): time 0.7167/0.7167, allocations: 89.61 MB / 408.5 MB, free: 4.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003466, allocations: 12.22 kB / 485.2 MB, free: 7.629 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3175, allocations: 66 MB / 0.5383 GB, free: 34.55 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9598/1.277, allocations: 436.3 MB / 0.9644 GB, free: 193.3 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/1.278, allocations: 83.94 kB / 0.9645 GB, free: 193.2 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.124/1.402, allocations: 69.65 MB / 1.032 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.194e-06/1.402, allocations: 0 / 1.032 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 2.369e-05/1.402, allocations: 4 kB / 1.032 GB, free: 122.9 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.00112/1.403, allocations: 0.6609 MB / 1.033 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.403, allocations: 8.031 kB / 1.033 GB, free: 122.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/1.403, allocations: 36.5 kB / 1.033 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/1.403, allocations: 286.7 kB / 1.033 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/1.403, allocations: 13.56 kB / 1.033 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/1.403, allocations: 24 kB / 1.033 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004217/1.404, allocations: 247.2 kB / 1.034 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/1.404, allocations: 0 / 1.034 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/1.404, allocations: 4 kB / 1.034 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/1.404, allocations: 4 kB / 1.034 GB, free: 121.5 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004184/1.404, allocations: 237.6 kB / 1.034 GB, free: 121.3 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/1.406, allocations: 1.03 MB / 1.035 GB, free: 120.1 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004604/1.406, allocations: 263.1 kB / 1.035 GB, free: 119.9 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/1.406, allocations: 128.8 kB / 1.035 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007287/1.407, allocations: 0.8332 MB / 1.036 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/1.407, allocations: 183.2 kB / 1.036 GB, free: 118.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/1.407, allocations: 0 / 1.036 GB, free: 118.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.001033/1.408, allocations: 0.4967 MB / 1.037 GB, free: 118.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/1.408, allocations: 55.39 kB / 1.037 GB, free: 118 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/1.409, allocations: 229 kB / 1.037 GB, free: 117.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/1.409, allocations: 29.7 kB / 1.037 GB, free: 117.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/1.409, allocations: 160.3 kB / 1.037 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/1.409, allocations: 82.83 kB / 1.037 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/1.409, allocations: 4 kB / 1.037 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.17e-05/1.409, allocations: 342.8 kB / 1.038 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/1.409, allocations: 91.94 kB / 1.038 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/1.409, allocations: 130.7 kB / 1.038 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/1.41, allocations: 257.4 kB / 1.038 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.41, allocations: 0 / 1.038 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006004/1.41, allocations: 360.9 kB / 1.038 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/1.41, allocations: 37.77 kB / 1.039 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/1.41, allocations: 3.938 kB / 1.039 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/1.41, allocations: 40.83 kB / 1.039 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/1.411, allocations: 47.91 kB / 1.039 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008597/1.411, allocations: 1.413 MB / 1.04 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/1.412, allocations: 31.73 kB / 1.04 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/1.412, allocations: 12 kB / 1.04 GB, free: 114.6 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 () * Number of clocked 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 0.0001178/1.412, allocations: 153.5 kB / 1.04 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/1.412, allocations: 23.72 kB / 1.04 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006677/1.413, allocations: 358.2 kB / 1.041 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/1.413, allocations: 4 kB / 1.041 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/1.413, allocations: 3.938 kB / 1.041 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.413, allocations: 3.984 kB / 1.041 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009225/1.414, allocations: 0.7573 MB / 1.041 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/1.414, allocations: 3.984 kB / 1.041 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/1.414, allocations: 51.86 kB / 1.041 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/1.414, allocations: 44.78 kB / 1.041 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/1.414, allocations: 8 kB / 1.041 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007571/1.415, allocations: 1.421 MB / 1.043 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.415, allocations: 4.031 kB / 1.043 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000783/1.415, allocations: 0.5319 MB / 1.043 GB, free: 111 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/1.416, allocations: 104.8 kB / 1.043 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/1.416, allocations: 8 kB / 1.043 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/1.416, allocations: 19.89 kB / 1.043 GB, free: 110.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/1.416, allocations: 28.03 kB / 1.043 GB, free: 110.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/1.416, allocations: 15.98 kB / 1.043 GB, free: 110.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001166/1.416, allocations: 164.5 kB / 1.044 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1e-07/1.416, allocations: 0 / 1.044 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000478/1.416, allocations: 135.9 kB / 1.044 GB, free: 110.5 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) * Number of clocked states: 0 () * 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.0004482/1.417, allocations: 295 kB / 1.044 GB, free: 110.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0007192/1.418, allocations: 460.4 kB / 1.044 GB, free: 109.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.418, allocations: 3.938 kB / 1.044 GB, free: 109.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003618/1.418, allocations: 293.7 kB / 1.045 GB, free: 109.4 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000543/1.419, allocations: 84.73 kB / 1.045 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/1.42, allocations: 0.7131 MB / 1.046 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/1.42, allocations: 0.7599 MB / 1.046 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001684/1.42, allocations: 42.16 kB / 1.046 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.724e-05/1.42, allocations: 23.44 kB / 1.046 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of SimCode: time 2.21e-07/1.42, allocations: 0 / 1.046 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of Templates: time 0.01047/1.431, allocations: 6.651 MB / 1.053 GB, free: 101.1 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