Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 105.9 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002329/0.002329, allocations: 196.9 kB / 16.91 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.707/1.707, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8909/0.8909, allocations: 93.7 MB / 384.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002645/0.002645, allocations: 75.88 kB / 463.5 MB, free: 6.5 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.2005, allocations: 68.27 MB / 0.5193 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.5253/0.7259, allocations: 160.4 MB / 0.676 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01839/0.7443, allocations: 12.68 MB / 0.6883 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.746, allocations: 43.69 kB / 0.6884 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.748, allocations: 0.6147 MB / 0.689 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003917/0.752, allocations: 1.073 MB / 0.69 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003073/0.7551, allocations: 0.8148 MB / 0.6908 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00313/0.7583, allocations: 1.904 MB / 0.6927 GB, free: 13.92 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006719/0.759, allocations: 367.5 kB / 0.693 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.7606, allocations: 0.8252 MB / 0.6938 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.7622, allocations: 1.094 MB / 0.6949 GB, free: 11.65 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.7625, allocations: 128 kB / 0.695 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003903/0.7664, allocations: 1.544 MB / 0.6965 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004473/0.7669, allocations: 389.3 kB / 0.6969 GB, free: 9.598 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.7684, allocations: 0.7151 MB / 0.6976 GB, free: 8.879 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003233/0.7717, allocations: 1.594 MB / 0.6992 GB, free: 7.281 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7717, allocations: 0 / 0.6992 GB, free: 7.281 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7717, allocations: 0 / 0.6992 GB, free: 7.281 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.594e-05/0.7718, allocations: 0 / 0.6992 GB, free: 7.281 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.006847/0.7787, allocations: 2.018 MB / 0.7011 GB, free: 5.211 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.416e-05/0.7787, allocations: 12.03 kB / 0.7012 GB, free: 5.199 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006164/0.7794, allocations: 151.3 kB / 0.7013 GB, free: 5.051 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.7815, allocations: 0.9138 MB / 0.7022 GB, free: 4.094 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.7817, allocations: 103.7 kB / 0.7023 GB, free: 3.984 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000317/0.782, allocations: 99.89 kB / 0.7024 GB, free: 3.887 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.7852, allocations: 1.469 MB / 0.7038 GB, free: 2.406 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.7852, allocations: 0 / 0.7038 GB, free: 2.406 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.7854, allocations: 37.03 kB / 0.7039 GB, free: 2.371 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.13e-05/0.7854, allocations: 49.92 kB / 0.7039 GB, free: 2.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004008/0.7895, allocations: 2.053 MB / 0.7059 GB, free: 276 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.8003, allocations: 5.232 MB / 0.711 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/0.8027, allocations: 1.322 MB / 0.7123 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.8041, allocations: 0.8818 MB / 0.7132 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007324/0.8115, allocations: 4.703 MB / 0.7178 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.195e-05/0.8116, allocations: 55.48 kB / 0.7178 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=119): time 3.507e-06/0.8116, allocations: 0 / 0.7178 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of matching and sorting (n=121): time 0.01124/0.8228, allocations: 5.28 MB / 0.723 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.8229, allocations: 64.41 kB / 0.723 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.8246, allocations: 0.9062 MB / 0.7239 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.8247, allocations: 45.7 kB / 0.724 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005541/0.8253, allocations: 473 kB / 0.7244 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000454/0.8258, allocations: 421.9 kB / 0.7248 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004486/0.8262, allocations: 240.2 kB / 0.725 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002085/0.8264, allocations: 357.9 kB / 0.7254 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.8276, allocations: 0.6242 MB / 0.726 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.829, allocations: 0.7603 MB / 0.7267 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/0.8318, allocations: 1.476 MB / 0.7282 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.8318, allocations: 0 / 0.7282 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.004202/0.836, allocations: 1.98 MB / 0.7301 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.836, allocations: 4 kB / 0.7301 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.8361, allocations: 4 kB / 0.7301 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.8372, allocations: 361.5 kB / 0.7305 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.8383, allocations: 224.2 kB / 0.7307 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006373/0.8447, allocations: 3.889 MB / 0.7345 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.846, allocations: 44.86 kB / 0.7345 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003137/0.8463, allocations: 55.94 kB / 0.7346 GB, free: 1.633 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009737/0.8473, allocations: 330.5 kB / 0.7349 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004646/0.8478, allocations: 134.3 kB / 0.735 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3486/1.196, allocations: 2.767 MB / 0.7377 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/1.196, allocations: 14.34 kB / 0.7377 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/1.196, allocations: 2.906 kB / 0.7377 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/1.196, allocations: 12.56 kB / 0.7377 GB, free: 178 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005759/1.202, allocations: 3.401 MB / 0.7411 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/1.202, allocations: 5.438 kB / 0.7411 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008949/1.203, allocations: 175.1 kB / 0.7412 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009176/1.204, allocations: 404 kB / 0.7416 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/1.204, allocations: 46.52 kB / 0.7417 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/1.209, allocations: 3.89 MB / 0.7455 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.209, allocations: 2.906 kB / 0.7455 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004187/1.213, allocations: 2.806 MB / 0.7482 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/1.214, allocations: 342.5 kB / 0.7485 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/1.214, allocations: 30.66 kB / 0.7486 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000755/1.215, allocations: 37.33 kB / 0.7486 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/1.215, allocations: 93.89 kB / 0.7487 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/1.215, allocations: 50.77 kB / 0.7487 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009305/1.216, allocations: 0.7014 MB / 0.7494 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.216, allocations: 2.25 kB / 0.7494 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001426/1.217, allocations: 483.2 kB / 0.7499 GB, free: 175.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (flowResistance.m_flow,fan.m_flow,fan.phi,fan.omega,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,nozzle.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 (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002152/1.219, allocations: 0.7245 MB / 0.7506 GB, free: 175.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00409/1.224, allocations: 2.215 MB / 0.7528 GB, free: 175.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/1.224, allocations: 0 / 0.7528 GB, free: 175.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001968/1.226, allocations: 1.188 MB / 0.7539 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/1.228, allocations: 433.6 kB / 0.7543 GB, free: 175.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/1.233, allocations: 3.533 MB / 0.7578 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/1.234, allocations: 1.169 MB / 0.7589 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006446/1.234, allocations: 166.8 kB / 0.7591 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.593e-06/1.234, allocations: 2.719 kB / 0.7591 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04657/1.281, allocations: 28.66 MB / 0.7871 GB, free: 163.7 MB / 0.5762 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches