Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 169.3 kB / 16.1 MB, free: 5.688 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.136/1.136, allocations: 205 MB / 221.9 MB, free: 9.059 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.0007135/0.0007135, allocations: 93.73 kB / 269.9 MB, free: 8.652 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.6005/0.6005, allocations: 90.51 MB / 408.3 MB, free: 3.93 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 8 kB / 484.9 MB, free: 7.188 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2356, allocations: 65.8 MB / 0.5378 GB, free: 34.97 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1196/0.3552, allocations: 141.6 MB / 0.6761 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003341/0.3586, allocations: 3.326 MB / 0.6793 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.3588, allocations: 4 kB / 0.6793 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004915/0.3593, allocations: 171.1 kB / 0.6795 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0007498/0.36, allocations: 465.6 kB / 0.6799 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006172/0.3607, allocations: 334.9 kB / 0.6802 GB, free: 4.555 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006669/0.3613, allocations: 0.934 MB / 0.6812 GB, free: 3.617 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.3615, allocations: 102 kB / 0.6813 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004333/0.3619, allocations: 306.7 kB / 0.6815 GB, free: 3.215 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003474/0.3623, allocations: 342.7 kB / 0.6819 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.3624, allocations: 16 kB / 0.6819 GB, free: 2.863 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009378/0.3633, allocations: 0.6354 MB / 0.6825 GB, free: 2.227 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.3634, allocations: 67.56 kB / 0.6826 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3635, allocations: 202.9 kB / 0.6828 GB, free: 1.961 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.3641, allocations: 0.5066 MB / 0.6833 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3641, allocations: 0 / 0.6833 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3641, allocations: 0 / 0.6833 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.3641, allocations: 4 kB / 0.6833 GB, free: 1.449 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001111/0.3652, allocations: 0.7042 MB / 0.684 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.3652, allocations: 16.03 kB / 0.684 GB, free: 0.6758 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.27e-05/0.3653, allocations: 48.38 kB / 0.684 GB, free: 0.6289 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.3656, allocations: 311.4 kB / 0.6843 GB, free: 292 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.3657, allocations: 33.02 kB / 0.6843 GB, free: 260 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.232e-05/0.3657, allocations: 40.22 kB / 0.6844 GB, free: 220 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1827/0.5484, allocations: 410.2 kB / 0.6848 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.5485, allocations: 5.125 kB / 0.6848 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.5485, allocations: 12.88 kB / 0.6848 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.5485, allocations: 9.516 kB / 0.6848 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.5493, allocations: 386.3 kB / 0.6852 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.5511, allocations: 1.851 MB / 0.687 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007874/0.5519, allocations: 426.1 kB / 0.6874 GB, free: 143 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.5522, allocations: 203.9 kB / 0.6876 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001623/0.5539, allocations: 1.614 MB / 0.6892 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.5543, allocations: 236 kB / 0.6894 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=41): time 2.415e-06/0.5543, allocations: 0 / 0.6894 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=41): time 0.001335/0.5557, allocations: 0.6756 MB / 0.69 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.556e-05/0.5557, allocations: 56.69 kB / 0.6901 GB, free: 141 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.556, allocations: 269.2 kB / 0.6903 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.556, allocations: 32.86 kB / 0.6904 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/0.5561, allocations: 198.8 kB / 0.6906 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.121e-05/0.5562, allocations: 134.6 kB / 0.6907 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.5562, allocations: 13.41 kB / 0.6907 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.5563, allocations: 345.9 kB / 0.691 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.5565, allocations: 145.2 kB / 0.6912 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.5569, allocations: 197.7 kB / 0.6914 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.5575, allocations: 393.2 kB / 0.6917 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5575, allocations: 0.7812 kB / 0.6917 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008706/0.5584, allocations: 0.5021 MB / 0.6922 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.5584, allocations: 37.75 kB / 0.6923 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5584, allocations: 1.344 kB / 0.6923 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.5586, allocations: 53.38 kB / 0.6923 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.5589, allocations: 81.14 kB / 0.6924 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008293/0.5597, allocations: 1.422 MB / 0.6938 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.56, allocations: 46.12 kB / 0.6938 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.56, allocations: 17.5 kB / 0.6938 GB, free: 138.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.5602, allocations: 158 kB / 0.694 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.5602, allocations: 36.22 kB / 0.694 GB, free: 138 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.5614, allocations: 0.5455 MB / 0.6946 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.5614, allocations: 5.094 kB / 0.6946 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.5614, allocations: 1.062 kB / 0.6946 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.5614, allocations: 6.672 kB / 0.6946 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.5631, allocations: 1.062 MB / 0.6956 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.5631, allocations: 0.6562 kB / 0.6956 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.5634, allocations: 67.61 kB / 0.6957 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.5635, allocations: 47.7 kB / 0.6957 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.5636, allocations: 14.94 kB / 0.6957 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007409/0.5643, allocations: 1.421 MB / 0.6971 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.5643, allocations: 3.938 kB / 0.6971 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.5654, allocations: 0.7552 MB / 0.6979 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.376e-05/0.5655, allocations: 126.5 kB / 0.698 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.56e-05/0.5655, allocations: 7.953 kB / 0.698 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.5658, allocations: 23.06 kB / 0.698 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.131e-05/0.5659, allocations: 39.75 kB / 0.6981 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.5659, allocations: 16.12 kB / 0.6981 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000144/0.5661, allocations: 196.1 kB / 0.6983 GB, free: 135 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5661, allocations: 4 kB / 0.6983 GB, free: 135 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004474/0.5665, allocations: 166.6 kB / 0.6984 GB, free: 135 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.rear.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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002842/0.5668, allocations: 251.4 kB / 0.6987 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008731/0.5677, allocations: 0.5591 MB / 0.6992 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5677, allocations: 1.625 kB / 0.6992 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.5682, allocations: 339.7 kB / 0.6995 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.5688, allocations: 114.8 kB / 0.6996 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.57, allocations: 0.9406 MB / 0.7006 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.5702, allocations: 0.7961 MB / 0.7013 GB, free: 133 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.5703, allocations: 47.31 kB / 0.7014 GB, free: 133 MB / 0.4948 GB Notification: Performance of SimCode: time 2.21e-07/0.5703, allocations: 0 / 0.7014 GB, free: 133 MB / 0.4948 GB Notification: Performance of Templates: time 0.007919/0.5782, allocations: 8.308 MB / 0.7095 GB, free: 127.5 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches