Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.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.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006589/0.006589, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001339/0.001339, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7391/0.7391, allocations: 91.19 MB / 381.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 79.89 kB / 0.5169 GB, free: 9.008 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1596, allocations: 67.69 MB / 0.583 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.DynamicBoundaries): time 0.5441/0.7037, allocations: 185.6 MB / 0.7643 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.05824/0.762, allocations: 44.86 MB / 0.8081 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/0.7667, allocations: 163 kB / 0.8082 GB, free: 1.281 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.006779/0.7735, allocations: 2.038 MB / 0.8102 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.01556/0.7892, allocations: 4.064 MB / 0.8142 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.02516/0.8144, allocations: 7.189 MB / 0.8212 GB, free: 3.953 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009242/0.8237, allocations: 4.668 MB / 0.8258 GB, free: 15.27 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003155/0.8269, allocations: 0.9549 MB / 0.8267 GB, free: 14.27 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02942/0.8563, allocations: 11.44 MB / 0.8379 GB, free: 2.66 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003729/0.8601, allocations: 1.773 MB / 0.8396 GB, free: 0.875 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001472/0.8616, allocations: 244 kB / 0.8398 GB, free: 0.6367 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4906/1.352, allocations: 10.03 MB / 0.8496 GB, free: 26.12 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001907/1.354, allocations: 0.61 MB / 0.8502 GB, free: 26.12 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.004281/1.358, allocations: 1.668 MB / 0.8518 GB, free: 26.12 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.03073/1.389, allocations: 9.437 MB / 0.8611 GB, free: 25.63 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/1.389, allocations: 0 / 0.8611 GB, free: 25.63 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.314e-06/1.389, allocations: 0 / 0.8611 GB, free: 25.63 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001392/1.389, allocations: 0.5625 kB / 0.8611 GB, free: 25.63 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 614 * Number of variables: 614 Notification: Performance of Generate backend data structure: time 0.02087/1.41, allocations: 5.176 MB / 0.8661 GB, free: 23.45 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.41, allocations: 12.09 kB / 0.8661 GB, free: 23.45 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003222/1.414, allocations: 0.6577 MB / 0.8668 GB, free: 23.23 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006003/1.42, allocations: 2.26 MB / 0.869 GB, free: 22.59 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/1.42, allocations: 181.8 kB / 0.8691 GB, free: 22.58 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004492/1.42, allocations: 249 kB / 0.8694 GB, free: 22.57 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006113/1.426, allocations: 2.843 MB / 0.8722 GB, free: 22.2 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/1.426, allocations: 6.375 kB / 0.8722 GB, free: 22.2 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/1.427, allocations: 103.5 kB / 0.8723 GB, free: 22.2 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-05/1.427, allocations: 60.72 kB / 0.8723 GB, free: 22.2 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005684/1.432, allocations: 2.376 MB / 0.8746 GB, free: 22.18 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/1.449, allocations: 13.86 MB / 0.8882 GB, free: 13.69 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004945/1.454, allocations: 2.155 MB / 0.8903 GB, free: 13.53 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/1.456, allocations: 1.056 MB / 0.8913 GB, free: 13.47 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09186/1.548, allocations: 47.82 MB / 0.938 GB, free: 10.5 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/1.548, allocations: 66 kB / 0.9381 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=208): time 4.158e-06/1.548, allocations: 0 / 0.9381 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of matching and sorting (n=208): time 0.01153/1.56, allocations: 4.396 MB / 0.9424 GB, free: 6.941 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/1.56, allocations: 209.7 kB / 0.9426 GB, free: 6.695 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003544/1.563, allocations: 2.05 MB / 0.9446 GB, free: 5.148 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002505/1.564, allocations: 56.83 kB / 0.9446 GB, free: 5.113 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001082/1.565, allocations: 1.301 MB / 0.9459 GB, free: 4.469 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008329/1.566, allocations: 0.7382 MB / 0.9466 GB, free: 3.836 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005365/1.566, allocations: 342.5 kB / 0.9469 GB, free: 3.629 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.566, allocations: 312.6 kB / 0.9472 GB, free: 3.324 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/1.568, allocations: 0.6501 MB / 0.9479 GB, free: 2.918 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/1.569, allocations: 0.9376 MB / 0.9488 GB, free: 2.176 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002957/1.572, allocations: 1.735 MB / 0.9505 GB, free: 1.051 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/1.572, allocations: 4 kB / 0.9505 GB, free: 1.047 MB / 0.7012 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005306/1.577, allocations: 2.397 MB / 0.9528 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/1.578, allocations: 8 kB / 0.9528 GB, free: 15.35 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/1.578, allocations: 4 kB / 0.9528 GB, free: 15.35 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009748/1.579, allocations: 303.7 kB / 0.9531 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/1.58, allocations: 389.6 kB / 0.9535 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/1.588, allocations: 9.628 MB / 0.9629 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002666/1.591, allocations: 195.6 kB / 0.9631 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005714/1.592, allocations: 81.16 kB / 0.9632 GB, free: 5.117 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 24 (dynamicPressureInflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,source5.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,source4.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,source3.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,source2.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,source1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase,source.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001303/1.593, allocations: 457.9 kB / 0.9636 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.594, allocations: 302 kB / 0.9639 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009363/1.603, allocations: 6.482 MB / 0.9702 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.423e-05/1.604, allocations: 78.58 kB / 0.9703 GB, free: 348 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/1.604, allocations: 4 kB / 0.9703 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.868e-05/1.604, allocations: 15.95 kB / 0.9703 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/1.619, allocations: 10.23 MB / 0.9803 GB, free: 9.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/1.619, allocations: 4 kB / 0.9803 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/1.621, allocations: 340.1 kB / 0.9806 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000877/1.622, allocations: 305.1 kB / 0.9809 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/1.622, allocations: 71.52 kB / 0.981 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007904/1.63, allocations: 9.632 MB / 0.9904 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/1.63, allocations: 7.75 kB / 0.9904 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/1.64, allocations: 5.785 MB / 0.9961 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/1.641, allocations: 489.9 kB / 0.9965 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009394/1.642, allocations: 88.86 kB / 0.9966 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.644, allocations: 66.66 kB / 0.9967 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003996/1.644, allocations: 173.8 kB / 0.9968 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/1.644, allocations: 72.09 kB / 0.9969 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002487/1.647, allocations: 1.648 MB / 0.9985 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/1.647, allocations: 2.625 kB / 0.9985 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.009036/1.656, allocations: 1.806 MB / 1 GB, free: 8.227 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (flowResistance5.inlet.m_flow,flowResistance4.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance1.inlet.m_flow,flowResistance.inlet.m_flow) * Number of discrete variables: 36 ($cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009016/1.665, allocations: 1.792 MB / 1.002 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005931/1.671, allocations: 3.113 MB / 1.005 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.671, allocations: 0 / 1.005 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004144/1.675, allocations: 2.508 MB / 1.008 GB, free: 1.176 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005892/1.681, allocations: 0.9473 MB / 1.008 GB, free: 268 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/1.695, allocations: 7.357 MB / 1.016 GB, free: 8.863 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001777/1.696, allocations: 2.117 MB / 1.018 GB, free: 6.719 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002513/1.699, allocations: 0.9586 MB / 1.019 GB, free: 5.777 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005819/1.699, allocations: 227.4 kB / 1.019 GB, free: 5.555 MB / 0.7637 GB Notification: Performance of SimCode: time 7.42e-07/1.699, allocations: 0 / 1.019 GB, free: 5.555 MB / 0.7637 GB Notification: Performance of Templates: time 0.123/1.822, allocations: 80.06 MB / 1.097 GB, free: 6.254 MB / 0.8419 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches