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.0008235/0.0008235, allocations: 168.1 kB / 16.1 MB, free: 5.691 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.141 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.0006588/0.0006589, allocations: 82.38 kB / 269.9 MB, free: 8.668 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.5931/0.5931, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002853, allocations: 8.219 kB / 484.9 MB, free: 7.199 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2301, allocations: 65.8 MB / 0.5378 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1218/0.352, allocations: 145.9 MB / 0.6802 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.2192/0.5712, allocations: 4.59 MB / 0.6847 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005679/0.5718, allocations: 8.438 kB / 0.6847 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006597/0.5725, allocations: 245.7 kB / 0.685 GB, free: 1.469 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.5737, allocations: 0.6283 MB / 0.6856 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008308/0.5745, allocations: 434.9 kB / 0.686 GB, free: 1.438 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0008119/0.5753, allocations: 1.245 MB / 0.6872 GB, free: 1.438 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.5755, allocations: 131.5 kB / 0.6873 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000657/0.5762, allocations: 437.7 kB / 0.6877 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004952/0.5767, allocations: 452.9 kB / 0.6882 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 5.14e-05/0.5768, allocations: 21.34 kB / 0.6882 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.5781, allocations: 0.9057 MB / 0.6891 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.5782, allocations: 84.58 kB / 0.6892 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.5784, allocations: 257.4 kB / 0.6894 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000731/0.5792, allocations: 0.675 MB / 0.6901 GB, free: 1.332 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.5792, allocations: 0 / 0.6901 GB, free: 1.332 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5792, allocations: 2.828 kB / 0.6901 GB, free: 1.332 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.5792, allocations: 0 / 0.6901 GB, free: 1.332 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001251/0.5805, allocations: 0.793 MB / 0.6908 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.5805, allocations: 8.75 kB / 0.6909 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.965e-05/0.5806, allocations: 57.34 kB / 0.6909 GB, free: 16.74 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.581, allocations: 376.7 kB / 0.6913 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.581, allocations: 29.56 kB / 0.6913 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.405e-05/0.5811, allocations: 47.88 kB / 0.6913 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.5818, allocations: 460.8 kB / 0.6918 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.5818, allocations: 1.859 kB / 0.6918 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.5819, allocations: 18.44 kB / 0.6918 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.5819, allocations: 13.61 kB / 0.6918 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007107/0.5826, allocations: 497 kB / 0.6923 GB, free: 16.45 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.5847, allocations: 2.178 MB / 0.6944 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007563/0.5855, allocations: 0.5461 MB / 0.6949 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.5858, allocations: 268.2 kB / 0.6952 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008115/0.5866, allocations: 0.6039 MB / 0.6958 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.5867, allocations: 41.23 kB / 0.6958 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=59): time 2.514e-06/0.5867, allocations: 0 / 0.6958 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.001595/0.5883, allocations: 0.9995 MB / 0.6968 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.5883, allocations: 57.38 kB / 0.6969 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.5887, allocations: 324.2 kB / 0.6972 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.5887, allocations: 37.7 kB / 0.6972 GB, free: 13.94 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.5888, allocations: 203.6 kB / 0.6974 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.5889, allocations: 205.6 kB / 0.6976 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.589, allocations: 8.812 kB / 0.6976 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.5891, allocations: 355.6 kB / 0.6979 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.5894, allocations: 192.4 kB / 0.6981 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.5898, allocations: 201.5 kB / 0.6983 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006311/0.5904, allocations: 449.5 kB / 0.6987 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5904, allocations: 3.094 kB / 0.6987 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009487/0.5914, allocations: 0.6105 MB / 0.6993 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.5914, allocations: 4.969 kB / 0.6994 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.5914, allocations: 0 / 0.6994 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002451/0.5917, allocations: 70.23 kB / 0.6994 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.592, allocations: 93.78 kB / 0.6995 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.5937, allocations: 2.703 MB / 0.7021 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.594, allocations: 45.41 kB / 0.7022 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.594, allocations: 20.88 kB / 0.7022 GB, free: 10.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001708/0.5942, allocations: 166.4 kB / 0.7024 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5943, allocations: 47.72 kB / 0.7024 GB, free: 10.56 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.5957, allocations: 0.7896 MB / 0.7032 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.5957, allocations: 6.938 kB / 0.7032 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.5957, allocations: 1.188 kB / 0.7032 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.5957, allocations: 2.953 kB / 0.7032 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.5977, allocations: 1.465 MB / 0.7046 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5977, allocations: 1.031 kB / 0.7046 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.598, allocations: 94.09 kB / 0.7047 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000175/0.5981, allocations: 66.86 kB / 0.7048 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.5982, allocations: 20.31 kB / 0.7048 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.5998, allocations: 2.727 MB / 0.7075 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5998, allocations: 5.859 kB / 0.7075 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.6011, allocations: 1.05 MB / 0.7085 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.287e-05/0.6012, allocations: 129.5 kB / 0.7086 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.6013, allocations: 13.94 kB / 0.7086 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.6015, allocations: 31.03 kB / 0.7087 GB, free: 7.176 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.481e-05/0.6016, allocations: 53.8 kB / 0.7087 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.439e-05/0.6017, allocations: 25.11 kB / 0.7087 GB, free: 7.164 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001939/0.6019, allocations: 236.3 kB / 0.709 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6019, allocations: 0 / 0.709 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0005717/0.6024, allocations: 206 kB / 0.7092 GB, free: 7.062 MB / 0.5105 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003564/0.6028, allocations: 299.4 kB / 0.7094 GB, free: 6.918 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00109/0.6039, allocations: 0.813 MB / 0.7102 GB, free: 6.621 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.6039, allocations: 0 / 0.7102 GB, free: 6.621 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006726/0.6046, allocations: 0.6011 MB / 0.7108 GB, free: 6.332 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008053/0.6054, allocations: 150.5 kB / 0.711 GB, free: 6.324 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.607, allocations: 1.283 MB / 0.7122 GB, free: 5.609 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.6073, allocations: 0.8449 MB / 0.713 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.6075, allocations: 62.59 kB / 0.7131 GB, free: 4.902 MB / 0.5105 GB Notification: Performance of SimCode: time 6.32e-07/0.6075, allocations: 0 / 0.7131 GB, free: 4.902 MB / 0.5105 GB Notification: Performance of Templates: time 0.01278/0.6203, allocations: 13.36 MB / 0.7262 GB, free: 2.234 MB / 0.5105 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